for the XamDataChart, what if I need to add more than one YAXis, like one for pressure (left side), one for temperature (right side). How to achieve this? also add the description of the YAXis (pressure or temperature)?
Thanks,
Joan
The label="{}" is applied to the numbers on the Axis, like 1000psi, 1100psi, 1200psi... but I need one to describe what the value means like for one YAxis, shows "Pressure Value (psi) ".
Hello Joan,
I have been looking into your issue. For the first YAxis you set the property Label of the axis. For the second YAxis you can set the Label property, then from LabelSettings to set the location to the desired position as follows:
<ig:NumericYAxis x:Name="xmYRightAxis" StrokeThickness="10" Label="-{}"
MajorStroke="DarkBlue" MajorStrokeThickness="2"
Stroke="Red">
<ig:NumericYAxis.LayoutTransform>
<RotateTransform
Angle="180"/>
</ig:NumericYAxis.LayoutTransform>
<ig:NumericYAxis.LabelSettings>
<ig:AxisLabelSettings Location="OutsideRight" Foreground="DodgerBlue"/>
</ig:NumericYAxis.LabelSettings>
</ig:NumericYAxis>
Please do not hesitate to let me know if you have any further questions.
Thank you for the sample. It's really helpful. but how to add a label for the YAXis? where to position it?
Thank you for your post. I have been looking into it and have created a small sample for you, named SecondaryYAxis. In the sample there are two LineSeries and for each of them there is a separate YAxis. For your second requirement I create a small legend describing the two series, place on the outside right position of the xamDataChart. Please refer to the attached sample and feel free to let me know if you require any further assistance on the mater.