CartesianGridLineAnnotation draw vertical lines

0 Answers 72 Views
ChartView
yoochul
Top achievements
Rank 1
yoochul asked on 14 Sep 2021, 01:04 AM | edited on 14 Sep 2021, 01:11 AM

I want to draw a custom MajorLinesVisibility XY. 

MajorLinesVisibility Not using XY, instead, when CategoricalAxis' PlotMode is BetweenTicks,

I want to draw vertical lines between items.
Please refer to the referenced image.

 

<telerik:RadCartesianChart x:Name="chart1" Palette="Flower" Margin="10">
            <telerik:RadCartesianChart.HorizontalAxis>
                <!--PlotMode="BetweenTicks"-->
                <telerik:CategoricalAxis  x:Name="catAxis" PlotMode="BetweenTicks"  />
            </telerik:RadCartesianChart.HorizontalAxis>
            <telerik:RadCartesianChart.VerticalAxis>
                <telerik:LinearAxis x:Name="verticalAxis" />
            </telerik:RadCartesianChart.VerticalAxis>

           <telerik:RadCartesianChart.Grid>
                <telerik:CartesianChartGrid MajorLinesVisibility="XY" />
            </telerik:RadCartesianChart.Grid>
            <telerik:RadCartesianChart.Annotations>
                <telerik:CartesianGridLineAnnotation Axis="{Binding ElementName=catAxis}"
                   Value="B"   Stroke="Red"   StrokeThickness="5"       />
            </telerik:RadCartesianChart.Annotations>

No answers yet. Maybe you can help?

Tags
ChartView
Asked by
yoochul
Top achievements
Rank 1
Share this question
or