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

StockChart Continuous Line as Zoom & Pan

1 Answer 52 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Brett
Top achievements
Rank 1
Brett asked on 27 Jun 2014, 04:05 PM
Hello,

I have been trying to figure out  solution that will work with my data. A StockChart has been working very well for right now but my data can be inconsistant with the days. Sometimes there will be two points hours apart, sometimes there will be two points days apart. As result of this, as you zoom into the StockChart, there won't always be data points for a day(s). The current view of this is that the line chart creates a gap from the edge of the graph to the first data point of that specific view. I wish for the line to be continuous at all points even if there is no data. In other words, it is a stepped line chart, and I want the value to maintain until it is changed, so that there is always a line as you continue to zoom. Is there a setting to achieve this?

1 Answer, 1 is accepted

Sort by
0
Iliana Dyankova
Telerik team
answered on 01 Jul 2014, 11:49 AM
Hello Brett,

I believe setting the series.missingValues option to "interpolate" should help to achieve the expected result:  
.Series(series =>{
   series.Line(s => s.Low).MissingValues(ChartLineMissingValues.Interpolate);
})

Regards,
Iliana Nikolova
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Chart
Asked by
Brett
Top achievements
Rank 1
Answers by
Iliana Dyankova
Telerik team
Share this question
or