sfchart scrollbar position
Hi, support team
Now I'm developing App about financial chart. PrimaryAxis type is Date like the following.
<chart:DateTimeCategoryAxis x:Name="xAxis" LabelFormat="MM/dd" ShowTrackBallInfo="True"
EnableScrollBar="True" ZoomFactor="0.5" EnableScrollBarResizing="True"
Data (stock price by daily) is big, old data is left end and the last data is right end.
User want to see the last data at right after of come up App.
My idea is to move scrollbar position to right end by code.
But I have no idea how to do it.
Or is there any other ideas?
Best regards,
Junji Sumi
SIGN IN To post a reply.
3 Replies
1 reply marked as answer
YP
Yuvaraj Palanisamy
Syncfusion Team
October 5, 2020 10:30 AM UTC
Greeting from Syncfusion.
# Solution 1:
We have analyzed your query and we would like to inform you that the requirement “Used want to see the last data” is achieved by using AutoScrollingDelta and AutoScrollingMode properties in chart axis. AutoScrollingDelta is used to ensure the specified range of data which is always visible in the chart.
|
primaryAxis.AutoScrollingDelta = 4;
primaryAxis.AutoScrollingMode = ChartAutoScrollingMode.End;
|
For more details please refer the below link
# Solution 2:
We can also achieve this by using ZoomFactor and ZoomPosition property of the chart axis. ZoomPosition is used to position the visible range of axis based on ZoomFactor. And the ZoomPosition range from 0 to 1.
|
primaryAxis.ZoomFactor = 0.5;
primaryAxis.ZoomPosition = 0.5;
|
Please refer the below link for more details
Regards,
Yuvaraj
Marked as answer
JS
Junji Sumi
October 6, 2020 07:11 AM UTC
Hi Yuvaraj,
Thank you for quick response.
Yes, I checked its works.
Yes, I checked its works.
Good support!
Junji Sumi
SM
Saravanan Madheswaran
Syncfusion Team
October 7, 2020 06:32 AM UTC
Hi Junji,
We are glad that the reported problem resolved at your end. If you need any further assistance, please don't hesitate to contact us.
Regards,
Saravanan.
SIGN IN To post a reply.
- 3 Replies
- 3 Participants
- Marked answer
-
JS Junji Sumi
- Oct 4, 2020 04:37 AM UTC
- Oct 7, 2020 06:32 AM UTC