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

0
0

Good day everybody!
I have got a problem. I need to place axis title above axis ticks. But I can’t find any method to do it. Could you help me?
Thank in advance.

Images
  • You must to post comments
1
0

Hi Egor,

If really want to place a title over labels, you could try setting a negative margin for it inside a title template. Please, take a look at this article for more info how to template axes titles. Also it is demonstrated in the XAML Styling example . Hope this helps!

UPDATE:
Please, find a code sample below:

           <Style x:Key="AxisTitleStyle" TargetType="s:AxisTitle">
            <Setter Property="Margin" Value="-100,0,0,0" />
        </Style>
...
        <s:SciChartSurface.YAxis>
            <s:NumericAxis AxisTitle="Axis Title" TitleStyle="{StaticResource AxisTitleStyle}"/>
        </s:SciChartSurface.YAxis>
  • Egor
    Thank you for the reply! Could you show an example of negative margin, please? Thank in advance!
    • Guest
    • 4 years ago
    Sure, just updated the answer.
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.