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

RadLinearSparkLine Bug in being spread across the TimeBar

1 Answer 39 Views
TimeBar
This is a migrated thread and some comments may be shown as answers.
Essex Energy
Top achievements
Rank 1
Essex Energy asked on 20 May 2016, 01:43 PM

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?

1 Answer, 1 is accepted

Sort by
0
Petar Marchev
Telerik team
answered on 25 May 2016, 08:29 AM
Hi,

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.

Regards,
Petar Marchev
Telerik
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Tags
TimeBar
Asked by
Essex Energy
Top achievements
Rank 1
Answers by
Petar Marchev
Telerik team
Share this question
or