SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and iOS Chart & Android Chart Components

Welcome to the SciChart Community Forums!

Please use the forums below to ask questions about SciChart. Take a moment to read our Question asking guidelines on how to ask a good question and our support policy. We also have a tag=SciChart on Stackoverflow.com where you can earn rep for your questions!

Please note: SciChart team will only answer questions from customers with active support subscriptions. Expired support questions will be ignored. If your support status shows incorrectly, contact us and we will be glad to help.

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.