我有这张图表,并且在代码中做了一些更改,以便仅显示要点:
chart: {
// type: 'spline',
zoomType: 'x, y',
panning: true,
parKey: 'shift'
},
title: {
text: 'Area de Grafica'
},
xAxis: {
categories: ['']
},
yAxis: {
title:{
text: ''
}
},
tooltip:{
crosshairs: [true,true],
formatter: function() {
return this.x + ', ' + this.y;
}
},
series: [{
name: 'grafica tabla de valores',
data: [[val1, val2], [val3, val4], [val5, val6], [val7, val8], [val9, val10], [val11, val12], [val13, val14], [val15, val16], [val17, val18], [val19, val20]],
lineWidth: 0,
marker: {
enabled: true,
radius: 5,
fillColor: 'Red',
symbol: 'url(assets/imgs/sun.png)' //'diamond', 'square',
//lineWidth: 2,
//lineColor: 'Black',
//fillColor: 'white'
}
}],
states: {
hover: {
lineWidthPlus: 0
}
},
exporting: {
showTable: true
},
});
当我运行该应用程序时,它可以运行,但是当我将鼠标光标移至图形区域时,您会看到一行。
我正在尝试类似'showLines'的方法,但是它不起作用:(