Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
146099 | Jul 19,2019 01:07 PM UTC | Jul 19,2019 01:57 PM UTC | WPF | 1 |
![]() |
Tags: SfChart |
Using HorizontalLineAnnotation and ShowAxisLabel (and showline =false ) I can set an axis label (im using it to show the last value of a price chart). But is there any way that I could have
the label appear to the right of the chart, rather than on the left? (but I want to keep the axis on the left).
<chart:SfChart Margin="10">
<chart:SfChart.SecondaryAxis>
<chart:NumericalAxis Minimum="0" Maximum="50">
</chart:NumericalAxis>
</chart:SfChart.SecondaryAxis>
<chart:SfChart.Annotations>
<chart:HorizontalLineAnnotation Y1="12"
ShowAxisLabel="True" YAxisName="yAxis"/>
</chart:SfChart.Annotations>
<chart:LineSeries XBindingPath="XValue"
Label="Series"
YBindingPath="YValue"
ItemsSource="{Binding Data}">
<chart:LineSeries.YAxis>
<chart:NumericalAxis OpposedPosition="True"
Minimum="0" Maximum="50" ShowGridLines="False"
Visibility="Hidden"
x:Name="yAxis"/>
</chart:LineSeries.YAxis>
</chart:LineSeries>
</chart:SfChart>
|
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.