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.
- Egor asked 10 years ago
- You must login 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!
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>
- Guest answered 10 years ago
- last edited 10 years ago
-
Thank you for the reply! Could you show an example of negative margin, please? Thank in advance!
-
Sure, just updated the answer.
- You must login to post comments
Please login first to submit.