apache / echarts

Apache ECharts is a powerful, interactive charting and data visualization library for browser
https://echarts.apache.org
Apache License 2.0
60.21k stars 19.61k forks source link

The symboloffset of echarts5 is invalid #15499

Closed Jef-Z closed 3 years ago

Jef-Z commented 3 years ago

The symboloffset of echarts5 is invalid, and echarts4 can be used normally. Code example:

option = {
  xAxis: [
    {
      type: 'category',
      data: ['2018-01', '2018-02', '2018-03'],
    },
  ],
  yAxis: [
    {
      type: 'value',
      scale: true,
    },
  ],
  series: [
    {
      name: '满意度',
      type: 'bar',
      data: [
        { value: 73, ranking: 23 },
        { value: 69, ranking: 24 },
        { value: 78, ranking: 12 },
      ],
      markPoint: {
        symbol: 'path://M512 512m-512 0a512 512 0 1 0 1024 0 512 512 0 1 0-1024 0Z',
        symbolOffset: [0, '-100%'],
        data: [{ coord: [0, 73, 23] }, { coord: [1, 69, 24] }, { coord: [2, 78, 12] }],
        itemStyle: {
          normal: {
            label: {
              show: true,
              textBorderWidth: 0,
              textBorderColor: '#f00',
              shadowColor: '#f00',
              color: '#fff',
              formatter: function (params) {
                return params.data.coord[2] + '名';
              },
            },
          },
        },
      },
    },
  ],
};

Please run with echarts5 and echarts4.

echarts-bot[bot] commented 3 years ago

This issue is not created using issue template so I'm going to close it. 🙊 Sorry for this, but it helps save our maintainers' time so that more developers get helped. Feel free to create another issue using the issue template.

If you think you have already made your point clear without the template, or your problem cannot be covered by it, you may re-open this issue again.

这个 issue 未使用 issue 模板 创建,所以我将关闭此 issue。 为此带来的麻烦我深表歉意,但是请理解这是为了节约社区维护者的时间,以更高效地服务社区的开发者群体。 如果您愿意,请使用 issue 模板重新创建 issue。

如果您认为虽然没有使用模板,但您已经提供了复现问题的充分描述,或者您的问题无法使用模板表达,也可以重新 open 这个 issue。