Pre loader

Chart title style

Welcome to the SciChart Forums!

  • Please read our Question Asking Guidelines for how to format a good question
  • Some reputation is required to post answers. Get up-voted to avoid the spam filter!
  • We welcome community answers and upvotes. Every Q&A improves SciChart for everyone

WPF Forums | JavaScript Forums | Android Forums | iOS Forums

1
0

How can i change default chart title style? like margin,font size etc

  • You must to post comments
1
0

Hi Raghupathy,

Thanks for your inquiry. You can alter the Chart Title FontSize, FontWeight, FontFamily and Foreground using the following code:

<!-- Define styles for the SciChartSurface -->
<Style x:Key="SciChartSurfaceStyle" TargetType="s:SciChartSurface">
    <Setter Property="Foreground" Value="DarkOrchid"/>
    <Setter Property="FontSize" Value="20"/>
    <Setter Property="FontFamily" Value="Arial Black"/>
    <Setter Property="FontWeight" Value="Bold"/>
</Style>

Note that the FontFamily will apply to axis as well. To reverse it for axis, you need to apply this style

    <!-- Define styles for the X and Y Axes -->
    <Style x:Key="AxisStyle" TargetType="s:AxisBase">
        <Setter Property="FontSize" Value="12"/>
        <Setter Property="FontWeight" Value="Normal"/>
        <Setter Property="FontFamily" Value="Segoe UI"/>

It’s not possible currently to set the Margin, Alignment of the Chart Title. We have logged a feature request to improve this, allowing Chart Title to be templated in a similar way to our Axis Titles in the Xaml Styling Example.

Hope this helps!

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.

Try SciChart Today

Start a trial and discover why we are the choice
of demanding developers worldwide

Start TrialCase Studies