This is a migrated thread and some comments may be shown as answers.

How to draw a vertical line on X axis data point

1 Answer 315 Views
Chart for XAML
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Taffere
Top achievements
Rank 1
Taffere asked on 18 Jun 2013, 05:23 AM
 I am trying to draw a vertical line on each categories data point to its value(Line series) but I don't know how to achieve this. Can you help me how to achieve this. Below is a code snippet. I want to draw solid vertical line for each horizontal x axis. 

<telerikChart:RadCartesianChart PaletteName="DefaultDark" Margin="0,0,5,0" Height="180">
                            <telerikChart:RadCartesianChart.DataContext>
                                <vm:MainViewModel/>
                            </telerikChart:RadCartesianChart.DataContext>
                            
                            <telerikChart:RadCartesianChart.VerticalAxis>
                                <telerikChart:LinearAxis LabelFitMode="MultiLine"/>
                            </telerikChart:RadCartesianChart.VerticalAxis>
                            <telerikChart:RadCartesianChart.HorizontalAxis>
                                <telerikChart:CategoricalAxis />
                            </telerikChart:RadCartesianChart.HorizontalAxis>
                            <telerikChart:RadCartesianChart.Grid>
                                <telerikChart:CartesianChartGrid MajorLinesVisibility="X" />
                            </telerikChart:RadCartesianChart.Grid>
                            <telerikChart:SplineSeries ItemsSource="{Binding BarSource}" Stroke="Blue" ShowLabels="True"  >
                                <telerikChart:SplineSeries.CategoryBinding>
                                    <telerikChart:PropertyNameDataPointBinding PropertyName="Category"></telerikChart:PropertyNameDataPointBinding>
                                </telerikChart:SplineSeries.CategoryBinding>
                                <telerikChart:SplineSeries.ValueBinding>
                                    <telerikChart:PropertyNameDataPointBinding PropertyName="Value"></telerikChart:PropertyNameDataPointBinding>
                                </telerikChart:SplineSeries.ValueBinding>
                            </telerikChart:SplineSeries>

1 Answer, 1 is accepted

Sort by
0
Ivaylo Gergov
Telerik team
answered on 18 Jun 2013, 02:59 PM
Hello Taffere,

Thank you for your interest.

At this point, RadChart does not support such scenario. Still, you can take a look at the GridLine Annotation feature that seems the closest to your desired functionality and see if this works for you.

Let me know if I can assist you further.

 

Regards,
Ivaylo Gergov
Telerik
Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
Tags
Chart for XAML
Asked by
Taffere
Top achievements
Rank 1
Answers by
Ivaylo Gergov
Telerik team
Share this question
or