adessoSE / wicked-charts

Beautiful and interactive javascript charts for Java-based web applications.
Apache License 2.0
91 stars 48 forks source link

[BUG] Zoom on Y axis doesn't work when min/max values are set #44

Closed mcarrolle closed 9 years ago

mcarrolle commented 9 years ago

I make a chart with a min and max value on Yaxis (see gist: https://gist.github.com/mcarrolle/3c50ddac5ac508000121).

When I am doing a Y zoom on the first marker of the chart, i can't see the two points with value 20.5 and 20.3, and the scale of Y axis never change.

The same chart options works fine on a pure highchart.js test: http://jsfiddle.net/mcarrolle/shhusfno

Do you have any idea on how to handle this usecase ?

thombergs commented 9 years ago

This seems to be an issue with version 3.0.2 of Highcharts which is the default that Wicked Charts use.

If you call the following code in the init method of your Wicket application, it should work:

JavaScriptResourceRegistry.getInstance().setHighchartsReference("http://code.highcharts.com/highcharts.js");

Then, the current Highcharts javascript file will be loaded by Wicked Charts. Use at your own risk, though, since the current Wicked Charts version has not been thoroughly tested against Highcharts 4.