1

有谁知道使用Plottable.js时如何实现自定义格式。您曾经能够将一个函数传递给Custom()方法来格式化您的数字,如下所示:

let customFormatter = new Plottable.Formatter.Custom(someCustomFunction);
let yAxis = new Plottable.Axes.Numeric(this.yScale, 'left').formatter(new Plottable.Formatter.Custom(customFormatter))

知道如何在最新版本中执行此操作吗?

任何帮助表示赞赏。提前致谢!

4

0 回答 0