Skip to content

Globally register plugins #38

@IronCrystal

Description

@IronCrystal

I am attempting to use coreui-vue-chartjs with custom plugins, such as the annotation plugin https://github.com/chartjs/chartjs-plugin-annotation

This plugin does not support inline plugin registration and must be globally registered.

I'm not sure how to access the instance of ChartJS that CChart component is using.

This does not seem to be working on my end:

import Chart  from 'chart.js/auto';
import annotationPlugin from 'chartjs-plugin-annotation';

Chart.register(annotationPlugin);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions