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
50
Tick marks for XamDataChart
posted

I see there are ways to add tick marks to the y or x axis for the XamWebChart, but I am unable to find a way to add tick marks to the y or x axis for the XamDataChart.  Is there a way to do this?

Parents
No Data
Reply
  • 4666
    Verified Answer
    posted

    Hi Amurra,

    You need to set a label for axis, where you want to have a tickmarks. Label is a DataTemplate that will be displayed instead the default label:

    <ig:NumericYAxis Name="dcAxisYHourly" Style="{StaticResource NumericYAxisStyle}">

                                    <ig:NumericYAxis.LabelSettings>

                                        <ig:AxisLabelSettings FontSize="10" Extent="40" TextAlignment="Right" Padding="0 0 5 0" Foreground="#666666" />

                                    </ig:NumericYAxis.LabelSettings>

                                    <ig:NumericYAxis.Label>

                                        <DataTemplate>

                                            <Border Background="Yellow" Width="40" Height="3"/>

                                        </DataTemplate>

                                    </ig:NumericYAxis.Label>

    </ig:NumericYAxis>

Children