0
votes

Is there any way to show the formatted data instead of the raw data in the generated description? (aria-label, accessibility)

Here is an example:

option = {
  aria: {
    enabled: true,
  },
  title: {
    text: '某站点用户访问来源',
    left: 'center'
  },
  series: [
    {
      label: { formatter: '{d}%'},
      name: '访问来源',
      type: 'pie',
      data: [
        { value: 335, name: '直接访问' },
        { value: 310, name: '邮件营销' },
        { value: 234, name: '联盟广告' },
        { value: 135, name: '视频广告' },
        { value: 1548, name: '搜索引擎' }
      ]
    }
  ]
};

This is how the chart looks like: pie chart with formatted data and the generated description: generated aria-label

Link to the echarts editor:

https://echarts.apache.org/examples/en/editor.html?c=doc-example%2Faria-pie&code=PYBwLglsB2AEC8sDeAoWsCGAnCGBcya6sAptBgEYA2JAJgWFgK4kA0RAvu-pGDQamKwwJAB5gCAckAL5oE2vQJ0OgCldA7EaB-6MB3qYFNzQAl2k7sRoAzCbEkBjMiKyTO-gM4kcJOwQDaRdIKGwqlElQFYQ2AsAFsMMCspJFoOAFJJLg9iclCSKQ0dPWSeAE8QdNMQCBJs71haCPxYd3LPWAA3DCoWAgBmNoBWVlhUwslAF7dAUuMNSVgkuuRG5tbYNoBGAAYevqlAOoTAN7lAUhDAAFSxibqkaZbCgCY2gBYVjDSpQBUAwH23QH89QCkVff1yo6aTgnmu69upkAY5GARIzXu8csQvjNCvNOhcABwA_qAHBNAES-gFR9QBzJvtIQBdZIcIgEjgAbiAA