Yana K.
Yana K.

Reputation: 2270

Highchart zooming bug?

I have a scenario where a point does not render in zoomed-in mode. Wondering if it's a highchart bug or something I can do.

JSFiddle is here -- try zooming on the first point of series B (y value of 99.297). The chart zooms in but it seems like the focus is not in the right place

http://jsfiddle.net/HqMye/

Scatter chart with xy zoom; x axis is type datetime; series rendered in the scatterchart are as follows:

 var zoomSeries = [{
     name: "Series A",
     data: [
         [Date.parse("2013-05-16T11:01:25-04:00"), 99.75],
         [Date.parse("2013-05-14T10:18:41-04:00"), 99.5]
     ]
 }, {
     name: "Series B",
     data: [
         [Date.parse("2013-05-16T10:58:34-04:00"), 99.489],
         [Date.parse("2013-05-14T10:13:32-04:00"), 99.297]
     ]
 }];

Upvotes: 1

Views: 1904

Answers (2)

Sebastian Bochan
Sebastian Bochan

Reputation: 37578

Your data should be sorted ascending by x.

Upvotes: 1

yevkim
yevkim

Reputation: 11

Not sure if it is Highcharts bug.

You can fix this by adding min to yAxis. http://jsfiddle.net/yevkim/ujj2f/ for example:

yAxis: {
   min:99.2
}

Upvotes: 0

Related Questions