Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
145
Label Settings on both sides of the Chart
posted

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

Parents
No Data
Reply
  • 35
    posted

    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.

Children