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

Zooming X Axis Stock Chart

2 Answers 36 Views
Chart (HTML5)
This is a migrated thread and some comments may be shown as answers.
Rick
Top achievements
Rank 1
Rick asked on 24 Aug 2016, 09:53 AM

I have an odd problem on the zooming on Stock Chart, the X Axis becomes corrupt.

When I zoom it sorts itself out.

If just plot the points with a default Layout it is OK unzoomed.

I am doing this for both types:

var xAxis = chart.PlotArea.XAxis;

xAxis.Step = Convert.ToDecimal(xAxis.Items.Count * 0.10);
xAxis.BaseUnitStep = Convert.ToInt32(xAxis.Step);
xAxis.BaseUnit = DateTimeBaseUnit.Minutes;
xAxis.EnableBaseUnitStepAuto = false;

Please see attached images.

2 Answers, 1 is accepted

Sort by
0
Danail Vasilev
Telerik team
answered on 29 Aug 2016, 10:11 AM
Hello Rick,

How do you zoom the stock chart? Note that the explicit zoom functionality (i.e., shown here HtmlChart - Pan and Zoom) doesn't work with the stock chart.

Regards,
Danail Vasilev
Telerik by Progress
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
0
James
Top achievements
Rank 1
answered on 30 Aug 2016, 10:25 AM

Hi Danail

A support ticket has been raised as the images I have attached to this are not present.

https://www.telerik.com/account/support-tickets/view-ticket?threadid=1059547

I am the developer on this but the account has been setup by my manager who is not a developer.

 

Rick

Tags
Chart (HTML5)
Asked by
Rick
Top achievements
Rank 1
Answers by
Danail Vasilev
Telerik team
James
Top achievements
Rank 1
Share this question
or