Javascript Plottable.js自定义格式设置程序

Javascript Plottable.js自定义格式设置程序,javascript,plottable,Javascript,Plottable,有人知道在使用时如何实现自定义格式吗。您过去可以将函数传递给Custom()方法来格式化数字,如下所示: let customFormatter = new Plottable.Formatter.Custom(someCustomFunction); let yAxis = new Plottable.Axes.Numeric(this.yScale, 'left').formatter(new Plottable.Formatter.Custom(customFormatter)) 你知道

有人知道在使用时如何实现自定义格式吗。您过去可以将函数传递给
Custom()
方法来格式化数字,如下所示:

let customFormatter = new Plottable.Formatter.Custom(someCustomFunction);
let yAxis = new Plottable.Axes.Numeric(this.yScale, 'left').formatter(new Plottable.Formatter.Custom(customFormatter))
你知道如何在最新版本中做到这一点吗

感谢您的帮助。提前谢谢