Highcharts no longer animates and readjusts/rescales chart upon addition and removal of series in legend after upgrading to jQuery 1.10

南楼画角 提交于 2019-12-02 12:19:27

问题


After upgrading to jQuery version 1.10, Highcharts no longer animates and readjusts/rescales chart upon addition and removal of series in legend.

With jQuery 1.9, when I click on an item in the legend, the corresponding series will be removed and the chart will animate and rescale. See the link below for the demo chart as provided by Highcharts.

jsfiddle (using jQuery 1.9): http://jsfiddle.net/gh/get/jquery/1.9.1/highslide-software/highcharts.com/tree/master/samples/highcharts/demo/line-labels/

However, when the jquery version is set to 1.10, this behavior seems to have broken. See the link below for the same chart but using jQuery 1.10.

jsfiddle (using jQuery 1.10): http://jsfiddle.net/gh/get/jquery/1.10.0/highslide-software/highcharts.com/tree/master/samples/highcharts/demo/spline-irregular-time/

My Chrome console keeps showing Uncaught TypeError: Cannot use 'in' operator to search for 'opacity' in cursor:default;padding:0;white-space:nowrap; error but I still can't figure it out. Has anyone encountered the same problem?


回答1:


It was known bug, but according to github, it should be fixed in master branch http://github.highcharts.com/master/highcharts.src.js

https://github.com/highslide-software/highcharts.com/issues/1881



来源:https://stackoverflow.com/questions/16826963/highcharts-no-longer-animates-and-readjusts-rescales-chart-upon-addition-and-rem

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!