This question is locked. New answers and comments are not allowed.
Hi,
I'm wondering if there's way to force the labels of an axis to ticks with certain values, for example force the labels to tick 1.0, 1.5, 2.0, 2.5 and so on?
The chart where I want to use this has an linearaxis with pan and zoom enabled and if you zoom in and pan the labels can be positioned like 4.2, 4.7, 5.2, 5.7 and so on. If you pan a bit more they could be positioned as I want them to. It seems like it depends on the first visible value of the axis how the labels layed out.
Below is the XAML for my chart.
Regards, Clas Ericson
I'm wondering if there's way to force the labels of an axis to ticks with certain values, for example force the labels to tick 1.0, 1.5, 2.0, 2.5 and so on?
The chart where I want to use this has an linearaxis with pan and zoom enabled and if you zoom in and pan the labels can be positioned like 4.2, 4.7, 5.2, 5.7 and so on. If you pan a bit more they could be positioned as I want them to. It seems like it depends on the first visible value of the axis how the labels layed out.
Below is the XAML for my chart.
Regards, Clas Ericson
<
telerik:RadCartesianChart
x:Name
=
"chart"
Grid.Row
=
"2"
Grid.ColumnSpan
=
"2"
HorizontalAlignment
=
"Stretch"
VerticalAlignment
=
"Stretch"
Margin
=
"0,0,0,0"
>
<
telerik:RadCartesianChart.HorizontalAxis
>
<
telerik:LinearAxis
LastLabelVisibility
=
"Visible"
Title
=
"{Binding XAxisTitle}"
LabelTemplate
=
"{StaticResource labelTemplate}"
LabelFormat
=
"#.#"
MajorStep
=
"5"
LabelInterval
=
"5"
/>
</
telerik:RadCartesianChart.HorizontalAxis
>
<
telerik:RadCartesianChart.VerticalAxis
>
<
telerik:LinearAxis
LabelFormat
=
"P1"
Title
=
"{Binding YAxisTitle}"
/>
</
telerik:RadCartesianChart.VerticalAxis
>
<
telerik:RadCartesianChart.Behaviors
>
<
telerik:ChartPanAndZoomBehavior
PanMode
=
"Both"
ZoomMode
=
"Both"
/>
</
telerik:RadCartesianChart.Behaviors
>
<
telerik:RadCartesianChart.Grid
>
<
telerik:CartesianChartGrid
MajorLinesVisibility
=
"Y"
/>
</
telerik:RadCartesianChart.Grid
>
<
chartView:ScatterPointSeries
AllowSelect
=
"False"
ItemsSource
=
"{Binding EmptySerie}"
XValueBinding
=
"XValue"
YValueBinding
=
"YValue"
/>
</
telerik:RadCartesianChart
>