Descontinuous LineSeries

4 posts, 0 answers
  1. Gustavo
    Gustavo avatar
    23 posts
    Member since:
    Apr 2012

    Posted 24 Jul 2012 Link to this post

    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
  2. Rosko
    Admin
    Rosko avatar
    137 posts

    Posted 27 Jul 2012 Link to this post

    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.

  3. DevCraft banner
  4. Gustavo
    Gustavo avatar
    23 posts
    Member since:
    Apr 2012

    Posted 27 Jul 2012 Link to this post

    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
  5. Rosko
    Admin
    Rosko avatar
    137 posts

    Posted 01 Aug 2012 Link to this post

    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.

Back to Top