Pre loader

Axis Title above Axis Ticks


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.

  • You must to post comments

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!

Please, find a code sample below:

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

Please first to submit.

Try SciChart Today

Start a trial and discover why we are the choice
of demanding developers worldwide

Start TrialCase Studies