我想通过从 csv 文件导入数据来创建一个带有 highcharts 的气泡图,这是我所做的代码:
'$(function () {
$('#container').highcharts({
chart: {
type: 'bubble',
zoomType: 'xy'
},
xAxis: {
allowDecimals: true,
gridLineWidth: 1,
endOnTick: true,
max :2,
min:-2,
tickPixelInterval: 200,
},yAxis: {
gridLineWidth: 1,
endOnTick: true,
max :2,
min: -2,
tickPixelInterval: 150,
},
title: {
text: 'Cycle 2012 Q 4'
},
series: [{
data: [[0.612026169,1.57522991,0.2302]]
}, {
data: [[0.4410667,-0.96442802,0.1662]]
}, {
data: [[-0.280249839,-0.687351853,0.1553]]
}, {
data: [[0.518541583,0.045330936,0.1985]]
}, {
data: [[0.098823319,0.164087324,0.2086]]
}]
});
});'
我不知道从 csv 导入数据如何获得相同的结果?你能帮助我吗?谢谢