javascript - Why the chart js annotation is not working properly?
问题描述
chart js annotation is not working this is my codes this is the output
解决方案
试试这个:(来自:https ://github.com/chartjs/chartjs-plugin-annotation )
{
plugins: {
annotation: {
annotations: [{
id: 'a-line-1',
type: 'line',
mode: 'horizontal',
scaleID: 'y-axis-0',
value: '25',
borderColor: 'red',
borderWidth: 2,
}]
}
}
}
或检查此工作,例如:
推荐阅读
- python - Keras:如何计算多标签分类的准确率?
- azure-devops - Visual Studio Team Services 工作项字段 - 规则限制
- arrays - 在具有条件的子组中查找重复项
- sqlite - SQLite中的整数主键与rowid
- scala - Spark 中 groupBy 的替代方案
- matlab - 将结果重新组合成一个数组
- java - 如何实现支持并行 TestSuite 执行和动态命名报告生成的 ExtentReports
- matlab - MATLAB 中 load_untouch_nii 给出的 img 矩阵中的值的格式是什么?
- excel - VBA:文件夹路径列表,返回excel文件路径列表,然后编辑excel
- c# - 在 C# 7.2 中,我可以在委托、接口或抽象类中使用“in”参数吗?