Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Highstock: Area chart getExtremes returns 0 for dataMin #985

Closed
xdestiny opened this issue May 30, 2012 · 3 comments
Closed

Highstock: Area chart getExtremes returns 0 for dataMin #985

xdestiny opened this issue May 30, 2012 · 3 comments

Comments

@xdestiny
Copy link

Calculation of the dataMin extreme fails when share data is presented as an area chart. Try changing the type at the bottom of the HighCharts code to line to see the difference: http://jsfiddle.net/AsyaQ/

@TorsteinHonsi
Copy link
Collaborator

This property is used internally to compute the minimum of the axis. Areas have a threshold of 0 by default, so this value is written to the dataMin. Although logically incorrect, we must test thoroughly after changing it.

@TorsteinHonsi
Copy link
Collaborator

Workaround:

Use the series' dataMin property instead: http://jsfiddle.net/highcharts/D8uAt/1/

@datanotion
Copy link

Hello! I know it's been a few years, but is the official fix from Highcharts the above workaround? Or is this going to be fixed eventually? It's a bit misleading for dataMin to always return a zero. Thank you!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants