简体   繁体   English

高图IE9和IE8

[英]highcharts IE9 vs IE8

Hi I have built a highchart 2.1.4 graph. 嗨,我建立了一个highchart 2.1.4图。 the tooltip acts differently in IE9 and IE8. 工具提示在IE9和IE8中的行为有所不同。

IE9

IE8

the code for the tooltip is 工具提示的代码是

formatter: function()
                    {

                            return 'Time: ' +Highcharts.dateFormat('%H:%M:%S', this.x) + '<br/>'+
                            '<b>' + titletootip +': ' +this.y +  '</b>'+'<br/>'+
                            'Change: ' +this.point.config[2] ;

                    }

how do I fix this? 我该如何解决?

thanks. 谢谢。

edit: 编辑:

i have upgraded highcharts to 2.3.1 and also jquery to 1.8.1. 我已经将highcharts升级到2.3.1,还将jquery升级到1.8.1。 Had to fix a small error and now it works in every browser. 不得不修复一个小错误,现在它可以在所有浏览器中使用。 thanks, guys. 多谢你们。

now, I want to make it with colors.. but this is another issue... 现在,我想用颜色制作..但这是另一个问题...

You will need to explicitly set tooltip.useHTML to true 您将需要将tooltip.useHTML显式设置为true

As a confirmation try this jsFiddle in both the browsers and check for consistency 作为确认,请在两个浏览器中均尝试使用此jsFiddle并检查其一致性

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM