我正在添加这样的图表
for (let tpName in tpGroupedData) {
this.series = this.chartInstance
.addPointSeries({ pointShape: shapes[shapeIndex], dataPattern: lsjs.DataPatterns.horizontalProgressive, xAxis: createdAxis })
.setPointFillStyle((solidFill) => solidFill.setColor(lsjs.ColorHEX(palette.simpleSet[seriesColorIndex])))
.setName(groupTag.slice(0, groupTag.indexOf('(')) + '( ' + tpName + ' )');
for (let dataItem of tpGroupedData[tpName]) {
this.series.add({ x: Date.parse(dataItem.testDateTime) - dateOrigin, y: dataItem.value })
}
在工具提示上,我还想添加 dataItem 的其他值,而不仅仅是显示 x 和 y 坐标