This should be fairly simple, but it is eluding me at the moment, how do I show the same label settings for the Y-axis on both sides
Hi,
There is a sample in our Sample Browser solution showing this feature, you can see it in the MultipleAxes.xaml file.
The idea is to declare two Y axes and give to the axis label different location, for example:
<ig:XamDataChart.Axes> <ig:CategoryXAxis x:Name="xmDateXAxis" ItemsSource="{Binding}" Label="{}{Date:dd MMM}"> <ig:CategoryXAxis.LabelSettings> <ig:AxisLabelSettings Location="OutsideBottom" Extent="40" VerticalAlignment="Center" /> </ig:CategoryXAxis.LabelSettings> </ig:CategoryXAxis> <ig:NumericYAxis x:Name="xmPriceYAxis"> <ig:NumericYAxis.LabelSettings> <ig:AxisLabelSettings Location="OutsideLeft" Extent="40" /> </ig:NumericYAxis.LabelSettings> </ig:NumericYAxis> <ig:NumericYAxis x:Name="xmVolumeYAxis" Strip="Transparent" MajorStroke="Transparent"> <ig:NumericYAxis.LabelSettings> <ig:AxisLabelSettings Location="OutsideRight" Extent="40" /> </ig:NumericYAxis.LabelSettings> </ig:NumericYAxis> </ig:XamDataChart.Axes>
I hope this helps.
- Luis.
I've seen and understand this, but this is for displaying multiple series in a chart, I'm only trying to display one series and have labels on both sides of the chart. I am only able to set one axis to a series. I just want to take the xmPriceYAxis from your example an set the location for it to display on the OutsideLeft and the OutsideRight
Hello,
I am just checking the progress of this issue and was wondering if you managed to achieve your goal or if you need any further assistance on the matter.