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
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.
Hello JayWP7,
I have been looking into your requirement and the reply that Luis has given you and it is correct. The snippet he has provided, in this scenario is not used for multiple series, but rather provides a second Y axis which can show the second set of labels you want. This is done as one Y axis cannot appear on two places – “on both sides if the chart”. However I do see why you are not getting the second axis and the labels. I suppose you have a single series for testing and since a single series can be bound to one x and one y axis, your second Axis is left with nowhere to get the ItemsSource information needed for calculating its range and its labels.
In this case I can suggest you bind your second axis’s MinimumValue and MaximumValue properties to the corresponding ones in the first axis. I have created a sample project for you to refer to (DataChart_labels.zip).
Please let me know if you require any further assistance on the matter.
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
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.