echarts
echarts copied to clipboard
MarkPoint的name错误
One-line summary [问题简述]
MarkPoint的name错误
Version & Environment [版本及环境]
- ECharts version [ECharts 版本]: 4.0.0 - 4.0.2
- Browser version [浏览器类型和版本]: 所有
- OS Version [操作系统类型和版本]: 所有
Error behaviour [错误结果]

Expected behaviour [期望结果]

ECharts option [ECharts配置项]
option = {
xAxis: {
data: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']
},
yAxis: {},
series: [{
type: 'line',
data:[220, 182, 191, 234, 290, 330, 310],
markPoint: {
data: [
{
name: "p1",
coord: ["Tue",300],
},
{
name: "p2",
coord: ["Thu",200],
},
],
label: {
show: true,
formatter: function (param) {
return param.name;
},
},
},
}]
};
Other comments [其他信息]
好像是 formatter 没调用到
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.