这是一个显示问题的jsfiddle:https://jsfiddle.net/ost6g8hb/1/
按钮可以更改数据,但是为什么每次按下按钮都会丢失第一个数据?
13:17:38,723 INFO - [java] Override ignored for property "javacSource"
13:17:38,723 INFO - [java] Override ignored for property "javacTarget"
答案 0 :(得分:1)
您需要禁用firstRowAsNames
数据属性:
chart.update({
data: {
firstRowAsNames: false,
seriesMapping: [{...}],
},
...
});
实时演示: https://jsfiddle.net/BlackLabel/6dq42rtj/
API参考: https://api.highcharts.com/highcharts/data.firstRowAsNames