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

Descontinuous LineSeries

3 Answers 103 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Gustavo
Top achievements
Rank 1
Gustavo asked on 24 Jul 2012, 05:21 PM
Hi Telerik Team,

I'm developing a RadCartesianChart with DateTimeContinuousAxis application, and I'm trying to develop an application as the one attached. It's a descontinuous LineSeries, that when the lineseries ends, starts a ScatterPointSeries, and when the ScatterPointSeries ends the LineSeries starts again.

Thanks,
Gustavo

3 Answers, 1 is accepted

Sort by
0
Rosko
Telerik team
answered on 27 Jul 2012, 08:25 AM
Hello Gustavo,

ScatterPointSerries cannot be used with DateTimeContinuousAxis. What you can do for the point-like series in the middle is to use a line series, set a point template for it and set the stroke property to transparent.

<telerik:LineSeries Stroke="Transparent">
   <telerik:LineSeries.PointTemplate>
      <DataTemplate>
         <Ellipse Fill="Red" Height="5" Width="5"/>
      </DataTemplate>
   </telerik:LineSeries.PointTemplate>
</telerik:LineSeries>


All the best,
Rosko
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Gustavo
Top achievements
Rank 1
answered on 27 Jul 2012, 12:38 PM
Thanks for the reply Rosko.

But there is a way to apply this DataTemplate just at a part of the series?
Or to do this I will need to create two LineSeries, one with the DataTemplate and the other keeps default.

Thanks,
Gustavo
0
Rosko
Telerik team
answered on 01 Aug 2012, 07:40 AM
Hello Gustavo,

There is a way to have a different DataTemplate for different sections of the series, but the DateTemplate is related to the point mark of the line, not the color of the line itself. So, in your scenario, you will need to have separate series. Default series with a colored line and for the descontinuous part series with transparent color of the line and a DataTemplate for the point marks.

All the best,
Rosko
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
ChartView
Asked by
Gustavo
Top achievements
Rank 1
Answers by
Rosko
Telerik team
Gustavo
Top achievements
Rank 1
Share this question
or