本文介绍了在升级到jQuery 1.10后,Highcharts不再增加和删除图例中的系列动画和重新调整/重新调整图表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 使用jQuery 1.9,当我点击鼠标后,点击鼠标右键,然后点击鼠标右键,然后点击鼠标右键,对于图例中的项目,相应的系列将被删除,图表将进行动画和重新缩放。 $ b jsfiddle(使用jQuery 1.9): http: $ j $ f $ $ $ b $ 然而,当jquery版本设置为1.10时,这种行为似乎已经破裂。 $ b jsfiddle(使用jQuery 1.10):: http://jsfiddle.net/gh/get/jquery/1.10.0/highslide-software/highcharts.com/tree/master/samples/highcharts/demo/spline-irregular-time/ 我的Chrome控制台不断显示未捕获的TypeError:无法使用'in'运算符搜索游标中的'opacity':default; padding:0; white-space: nowrap; 错误,但我仍然无法弄清楚。有没有人遇到同样的问题?解决方案这是已知的bug,但根据github,它应该在主分支 http://github.highcharts.com/master/highcharts.src.js https:// github .com / highslide-software / highcharts.com / issues / 1881 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? 解决方案 It was known bug, but according to github, it should be fixed in master branch http://github.highcharts.com/master/highcharts.src.jshttps://github.com/highslide-software/highcharts.com/issues/1881 这篇关于在升级到jQuery 1.10后,Highcharts不再增加和删除图例中的系列动画和重新调整/重新调整图表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 11-01 00:16