highcharts 甘特让屏幕阅读器读取完成值的百分比

tpgth1q7  于 9个月前  发布在  Highcharts
关注(0)|答案(1)|浏览(72)

我定义了一个valueDescriptionFormat:“{point.name} from {point.x:%Y-%m-%d} to {point.x2:%Y-%m-%d},completed {point.completed} percent”,它并没有阅读百分比,只是读取单词completed。解决办法是什么?

yptwkmov

yptwkmov1#

使用{point.completed.amount}

配置示例:

accessibility: {
    point: {
      valueDescriptionFormat: "{point.name} from {point.x:%Y-%m-%d} to {point.x2:%Y-%m-%d}, completed {(multiply point.completed.amount 100)}%"
    }
  },

Demo:https://jsfiddle.net/BlackLabel/e0q4yw9a/

相关问题