SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and now iOS Charting & 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.

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.