Pre loader

Different color of tick label and axis title in 3D Chart

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


Is it possible to set different color to axis ticks and axis title.
In 2D-Chart i did it by changing the style of DefaultTickLabel:

<Style x:Key="NumericAxisForMvvm" TargetType="axis:NumericAxisForMvvm">

  <Setter Property="FontSize" Value="12" />
  <Setter Property="FontFamily" Value="Arial" />
  <Setter Property="FontWeight" Value="Bold" />
  <Setter Property="TickTextBrush" Value="Red" />

  <Setter Property="TickLabelStyle">
      <Style TargetType="s:DefaultTickLabel">

        <Setter Property="FontSize" Value="16" />
        <Setter Property="FontWeight" Value="Normal" />
        <Setter Property="FontFamily" Value="Courier New" />
        <Setter Property="Foreground" Value="Blue" />

        <Setter Property="Template">
            <ControlTemplate TargetType="s:DefaultTickLabel">
              <ContentControl Content="{Binding}"
                              ContentTemplate="{TemplateBinding ContentTemplate}"
                              Foreground="{TemplateBinding Foreground}" 
                              FontFamily="{TemplateBinding FontFamily}"
                              FontSize="{TemplateBinding FontSize}"
                              FontWeight="{TemplateBinding FontWeight}"/>

Same procedure seems doesn’t work for 3D-Charts.
How can i achieve this?
Is that currently possible?

Best Regards

  • You must to post comments

Hello Oleksandr,
maybe I have not described my problem exactly.
What I want to achieve is to set the different color of the tick labels and axis labels of the same axis in the 3D chart.
For example all tick labels blue and all axis labels red (see attached screenshot)

I was able to achieve this in 2D Chart with the style described above.

Is that also possible in 3D charts? I tried it in the same way as with the 2D charts, unfortunately without success.

best regards

  • Silvester Schneidt
    Could someone answer my question? If that is possible, could you provide an example for 3D Chart
  • You must to post comments

Hi Silvester,

Yes, this is possible. Please take a look at the documentation regarding Styling Axis 3D Gridlines and Labels for more info:

You can also take a look at our “Style 3D Chart” example:

Hope this helps.

With best regards,

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.