Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add checks to prevent plugin activation #71

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Iworb
Copy link

@Iworb Iworb commented Apr 2, 2021

Well, at my bad I have many charts at my page and I headed up with this issue: Line chart doesn't work with Pie chart if this plugin is registered. That's happened because Pie chart trying to access some options which are undefined.

This PR adds some additional checks to prevent access undefined options and make this plugin works with any chart with defines not empty property chart.config.options.scales.xAxes. Otherwise any event's will be ignored.

@Sinu5oid Sinu5oid mentioned this pull request Jul 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant