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

Zooming X Axis Stock Chart

2 Answers 53 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
Rick
Top achievements
Rank 1
answered on 24 Aug 2016, 09:54 AM
Images
0
Rick
Top achievements
Rank 1
answered on 24 Aug 2016, 09:55 AM
Tags
Chart (HTML5)
Asked by
Rick
Top achievements
Rank 1
Answers by
Rick
Top achievements
Rank 1
Share this question
or