echarts icon indicating copy to clipboard operation
echarts copied to clipboard

MarkPoint的name错误

Open genezx opened this issue 8 years ago • 2 comments

One-line summary [问题简述]

MarkPoint的name错误

Version & Environment [版本及环境]

  • ECharts version [ECharts 版本]: 4.0.0 - 4.0.2
  • Browser version [浏览器类型和版本]: 所有
  • OS Version [操作系统类型和版本]: 所有

Error behaviour [错误结果]

false

Expected behaviour [期望结果]

true

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 [其他信息]

genezx avatar Jan 18 '18 07:01 genezx

好像是 formatter 没调用到

pissang avatar Jan 19 '18 01:01 pissang

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.

stale[bot] avatar Apr 02 '20 01:04 stale[bot]