Thanks for using syncfusion product.
Currently, we do not have support for scroll bars. It will be implemented in our upcoming release. However, as you need to display last five miutes of data, you can use ZoomPosition and ZoomFactor property available in DateTimeAxis.
· ZoomPosition – Determines the start position of the data. Value must be between 0 and 1.
· ZoomFactor – Determines the range to be displayed from actual range. Value must be between 0 and 1.
Following code demonstrates this,
//Since only last 5 minutes data needs to be showed, delat is 5 minutes.
private TimeSpan delta = TimeSpan.FromMinutes(5);
Following method sets ZoomPosition and ZoomFactor,
private void SetZoomFactorAndPosition()
if ((maximum - minimum) <= delta)
ZoomPosition = 0;
ZoomFactor = 1;
double totalMilliseconds = (maximum - minimum).TotalMilliseconds;
double factor = delta.TotalMilliseconds;
ZoomFactor = factor / totalMilliseconds;
ZoomPosition = 1 - ZoomFactor;
The above method shows only last five minutes of data and then using mouse you can pan and see the previous data.
We have also prepared sample for your reference. In this sample, data will be updated for every second and for each update above method will be called to set the ZoomPosition and ZoomFactor,
I can't download the sample you posted as an answer. How may I get that?
And since we're 6 months later now, do you've an update on the scrolling capability?
I've to visualize 1-5 years of candle data which means a lot of date, how can that achieved with virtualization or something like that?
Thanks for using Syncfusion products.
We would like to inform you that we have implemented the scrollbar feature. We can achieve your requirement by Setting EnableScrollBar="True" as per the below code snippet.
<chart:DateTimeAxis EnableScrollBar="True" ></chart:DateTimeAxis>
We have prepared a sample based on this and you can find the sample under the following location:
Please let us know if you have any queries.
Muneesh Kumar G.