chartjs-plugin-annotation

Annotations are not displayed in Chart.js

主宰稳场 提交于 2021-01-29 08:58:08
问题 I'm sorry for my poor English. I'm trying to display a horizontal line in a graph using vue-chartjs and chartjs-plugin-annotation. The graph appears and the options are applied, but the horizontal line does not appear because the settings in the annotation are not working. If anyone knows how to fix this, please let me know. The version and code is as follows Chart.js v2.9.4 chartjs-plugin-annotation v0.5.7 Chart.js import { Bar } from 'vue-chartjs' import chartjsPluginAnnotation from

Correct config location of chartjs-plugin-annotation with ng2-charts?

五迷三道 提交于 2020-12-13 03:12:36
问题 I'm using ng2-charts to draw a bar chart in my Angular application. At some point I had to add static lines to my charts, and I decided to use chartjs-plugin-annotation . Connecting these two libraries together is not well documented, but after some googling I was eventually able to get it working. Here is a minimalistic demo. Yet while it works well on stackblitz, the IDE on my local machine complains that annotation is not expected by ChartOptions interface: public barChartOptions:

Correct config location of chartjs-plugin-annotation with ng2-charts?

一个人想着一个人 提交于 2020-12-13 03:11:22
问题 I'm using ng2-charts to draw a bar chart in my Angular application. At some point I had to add static lines to my charts, and I decided to use chartjs-plugin-annotation . Connecting these two libraries together is not well documented, but after some googling I was eventually able to get it working. Here is a minimalistic demo. Yet while it works well on stackblitz, the IDE on my local machine complains that annotation is not expected by ChartOptions interface: public barChartOptions:

Correct config location of chartjs-plugin-annotation with ng2-charts?

旧巷老猫 提交于 2020-12-13 03:11:13
问题 I'm using ng2-charts to draw a bar chart in my Angular application. At some point I had to add static lines to my charts, and I decided to use chartjs-plugin-annotation . Connecting these two libraries together is not well documented, but after some googling I was eventually able to get it working. Here is a minimalistic demo. Yet while it works well on stackblitz, the IDE on my local machine complains that annotation is not expected by ChartOptions interface: public barChartOptions: