我定义了一个valueDescriptionFormat:“{point.name} from {point.x:%Y-%m-%d} to {point.x2:%Y-%m-%d},completed {point.completed} percent”,它并没有阅读百分比,只是读取单词completed。解决办法是什么?
yptwkmov1#
使用{point.completed.amount}:
{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/
1条答案
按热度按时间yptwkmov1#
使用
{point.completed.amount}
:配置示例:
Demo:https://jsfiddle.net/BlackLabel/e0q4yw9a/