RadLinearSparkLine Bug in being spread across the TimeBar

2 posts, 0 answers
  1. Essex Energy
    Essex Energy avatar
    1 posts
    Member since:
    Oct 2012

    Posted 20 May 2016 Link to this post

    We have a TimeBar that is used to show corresponding data in RadChart.

    There is a LinearSparkLine being used inside the TimeBar. And this SparkLine seems to spread across the TimeBar for the selected dates even when there is no data for particular times in the.

    In the attached screenshots, the Bindings have data only from 8PM of 31st October 2015, but the SparkLine seems to show data even for that time Interval.

    I tried setting the Min and Max XValue of the SparkLine, and that also did not do workout.

    Is there any way to set the SparkLine to show data only within particular intervals of the TimeBar?

  2. Petar Marchev
    Petar Marchev avatar
    1024 posts

    Posted 25 May 2016 Link to this post


    I think that the only thing you are missing is to set the AutoRange property to false. However, I think that you should rework your project and not use RadChart and sparklines.

    1. We have two charting solutions - old RadChart and new RadChartView. The RadChartView is actually a set of controls (RadCartesianChart, RadPieChart, RadPolarChart, ChartDataSource). The new control has a much better performance, better zooming abilities, it resolves many of the limitations that the old RadChart has, it is very easy to set up and is very flexible.

    2. While usually using a sparkline with a timebar makes sense, in your case I think you will find it easier if you have a RadCartesianChart under the timebar. We have an SDK demo that demonstrates exactly this. This way you will not have the need to work with sparklines in one control and line series in the other. You will be working with line series in both controls.

    Petar Marchev
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Back to Top