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

0
0

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">
    <Setter.Value>
      <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">
          <Setter.Value>
            <ControlTemplate TargetType="s:DefaultTickLabel">
              <ContentControl Content="{Binding}"
                              ContentTemplate="{TemplateBinding ContentTemplate}"
                              IsTabStop="False" 
                              Foreground="{TemplateBinding Foreground}" 
                              FontFamily="{TemplateBinding FontFamily}"
                              FontSize="{TemplateBinding FontSize}"
                              FontWeight="{TemplateBinding FontWeight}"/>
            </ControlTemplate>
          </Setter.Value>
        </Setter>
      </Style>
    </Setter.Value>
  </Setter>
</Style>

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

Best Regards
Silvester

Version
6.1.1.x
  • You must to post comments
0
0

Hi Silvester,

Yes, this is possible. Please take a look at the documentation regarding Styling Axis 3D Gridlines and Labels for more info:
https://www.scichart.com/documentation/win/current/webframe.html#Styling%20Axis%203D%20Gridlines%20and%20Labels.html

You can also take a look at our “Style 3D Chart” example:
https://www.scichart.com/example/wpf-3d-chart-example-style-3d-chart/

Hope this helps.

With best regards,
Oleksandr

  • You must to post comments
0
0

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

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

Please first to submit.