简体   繁体   中英

Why does this highchart plot not render in IE or chrome?

You can see the plot in this jsfiddle: http://jsfiddle.net/essennsee/y5HCm/

It renders fine in Firefox but only displays the legend in IE and Chrome.

If I remove the following it works so is there an alternative way to format the labels?:

        labels: {
            formatter: function() {
                return '1e'+Math.log10(this.value);
            }
        }

There's a similar question here that discusses a bug in this implementation of highchart - I updated your fiddle with this code:

labels: {
    formatter: function() {
        return '1e'+ Math.round(Math.pow(10,this.value));
    }
}

From what I understand, if you round numbers up they work and it started working.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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