echarts icon indicating copy to clipboard operation
echarts copied to clipboard

[Bug] The label displays custom values. The following code can be displayed normally on the web, but it fails to display custom values on the WeChat mini program. Why is this

Open yiman58 opened this issue 1 year ago • 1 comments

Version

5.0.0

Link to Minimal Reproduction

custom label

Steps to Reproduce

option = 
  {
        color: ['#1969F1'],
        tooltip: {
          trigger: 'axis',
        },
        grid: {
          left: 20,
          right: 20,
          top: 16,
          bottom: 24,
          // containLabel: true,
        },
        xAxis: {
          type: 'value',
          min: -2,
          max: 2,
          axisLabel: {
            show: false,
          },
        },
        yAxis: {
          show: false,
          type: 'category',
        },
        series: {
          areaStyle: {
            opacity: 0.8,
            color: 'rgba(25, 105, 241, 0.4)',
          },
          smooth: 0.6,
          type: 'line',
          label: {
            show: true,
            position: 'left',
            formatter: '{@tb}',
          },
          // data: data
          //   .map((item, idx) => ({
          //     value: emotionalLevelMapNum[item],
          //     tb: tb[idx],
          //   }))
          //   .reverse(),
        },
        dataset: {
          dimensions: ['product', 'value', 'tb'],
          source: [
            {
              product: '找店到店',
              value: 2,
              tb: '-3%',
            },
            {
              product: '排队等位',
              value: -2,
              tb: '-3%',
            },
            {
              product: '等待出餐',
              value: 2,
              tb: '-3%',
            },
            {
              product: '点餐下单',
              value: -2,
              tb: '-3%',
            },
            {
              product: '就餐用餐',
              value: -1,
              tb: '-3%',
            },
            {
              product: '结账离店',
              value: 1,
              tb: '-3%',
            },
          ],
        },
      
};

Current Behavior

Expected Behavior

I hope it can display normally on the WeChat mini program

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

No response

yiman58 avatar Feb 03 '24 07:02 yiman58

Can you provide a repo for reproduction?

plainheart avatar Feb 04 '24 01:02 plainheart