Skip to content

Usage within vuepress #231

Answered by simonbrunel
pdnpa asked this question in Q&A
Mar 29, 2021 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Chart.js does not maintain vuepress-plugin-chart, so you should ask your questions to the developer of this vuepress plugin instead. Since I'm also using VuePress for this project, I can help on this request but if you need extra support, please use their repository.

You can import and register Chart.js plugins in the .vuepress/enhanceApp.js file of your documentation:

// .vuepress/enhanceApp.js
import {Chart} from 'chart.js';
import ChartDataLabels from 'chartjs-plugin-datalabels';

export default () => {
  Chart.plugins.register(ChartDataLabels);
};

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@pdnpa
Comment options

Answer selected by simonbrunel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants