我使用Chart.js库创建图形及其'chartjs-plugin-datalabels.js'插件。我的问题是如何更改图形上值的颜色,因为我无法使用CSS样式,因为它以图像形式呈现
尝试使用库patternomaly。
patternomaly
示例:https://jsfiddle.net/0stLnxrj/
文档:https://www.chartjs.org/docs/latest/general/colors.html