【发布时间】:2019-07-26 13:37:24
【问题描述】:
我正在构建一个包含一些超小值的高图。我的问题是
当数字为 e-7 时,图表不转换科学 符号转换为数字符号。
这是我的代码。
$(document).ready(function() {
var data = [[1532476800000,9.888550207585507e-7],[1532995200000,9.566888695224366e-7],[1533081600000,9.217248059141058e-7]];
var options = {
chart: {
renderTo: 'container',
type: 'line',
},
title: {
text: 'Fruit Consumption'
},
xAxis:{
type:'datetime'
},
yAxis: {
title: {
text: 'Fruits Amount'
}
},
series: [{}]
};
options.series[0].data = data;
var chart = new Highcharts.Chart(options);
});
如果序列号是 e-6,那么转换没有任何 问题。
以前有人遇到过这个问题吗?
This is the fiddle for the same.
谁能帮帮我?
【问题讨论】:
标签: javascript charts highcharts scientific-notation