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

how draw line dotted ?

2 Answers 99 Views
General Discussion
This is a migrated thread and some comments may be shown as answers.
Diego
Top achievements
Rank 1
Diego asked on 10 May 2018, 08:42 PM

I draw solid lines

I want dotted lines

my code from control is 

 

telerik:RadCartesianChart Name="rccFloor" PaletteName="DefaultLight">
                    <telerik:RadCartesianChart.HorizontalAxis>
                        <telerik:DateTimeContinuousAxis LabelFitMode="Rotate" LabelFormat="{}{0:dd MMM}" >
                        </telerik:DateTimeContinuousAxis>
                    </telerik:RadCartesianChart.HorizontalAxis>
                    <telerik:RadCartesianChart.VerticalAxis>
                        <telerik:LinearAxis/>
                    </telerik:RadCartesianChart.VerticalAxis>
                    <telerik:RadCartesianChart.Behaviors>
                        <telerik:ChartTrackBallBehavior  InfoMode="Multiple"/>
                    </telerik:RadCartesianChart.Behaviors>
                    <telerik:RadCartesianChart.Annotations>
                        <telerik:CartesianGridLineAnnotation Name="rglaFloor"
            Axis="{Binding ElementName=rccFloor, Path=VerticalAxis}" 
            Value="154" Stroke="LightGreen"  StrokeThickness="3"/>
                    </telerik:RadCartesianChart.Annotations>
                </telerik:RadCartesianChart>

 

and i add line in my graph with this code

LineSeries lineSeries = new LineSeries();
            lineSeries.Name = "grafico" + year.ToString();
            lineSeries.LegendTitle = year.ToString();
            lineSeries.ItemsSource = historyList;
            lineSeries.CategoryBinding = new PropertyNameDataPointBinding() { PropertyName = "Date" };
            lineSeries.ValueBinding = new PropertyNameDataPointBinding() { PropertyName = "Simulado" };
            lineSeries.DisplayName = year.ToString();

 

this.rccFloor.Series.Add(lineSeries);

 

how draw line dotted with that code ??

Thangs

 

 

 

 

 

2 Answers, 1 is accepted

Sort by
0
Nasko
Telerik team
answered on 15 May 2018, 07:43 AM
Hello Diego,

In order to achieve the desired visualization of the Chart's data you need to use the PointSeries - that type of Series represent the DataPoints as Ellipses. Please, check the following article from our help documentation that provides some more detailed information:
https://docs.telerik.com/devtools/universal-windows-platform/controls/radchart/cartesianchart/series/categorical-series/categorical-pointseries

Hope this helps.

Regards,
Nasko
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
peter
Top achievements
Rank 1
answered on 09 Apr 2019, 09:37 AM

hey nasko,

thanks for your solution. i was having the same question and your solution was helpful for me.

Tags
General Discussion
Asked by
Diego
Top achievements
Rank 1
Answers by
Nasko
Telerik team
peter
Top achievements
Rank 1
Share this question
or