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

Getting TypeError when using v. 1.1.3+ #21

Open
EsbenLorenzen opened this issue Sep 10, 2019 · 2 comments
Open

Getting TypeError when using v. 1.1.3+ #21

EsbenLorenzen opened this issue Sep 10, 2019 · 2 comments

Comments

@EsbenLorenzen
Copy link

When loading a chart with crosshair enabled, I am recieving the following TypeError:

TypeError: chart.crosshair is undefined chartjs-plugin-crosshair.js:395:11
    beforeTooltipDraw https://cdn.jsdelivr.net/npm/chartjs-plugin-crosshair@1.1.3/dist/chartjs-plugin-crosshair.js:395
    notify https://cdn.jsdelivr.net/npm/chart.js@2.8.0/dist/Chart.min.js:7
    _drawTooltip https://cdn.jsdelivr.net/npm/chart.js@2.8.0/dist/Chart.min.js:7
    draw https://cdn.jsdelivr.net/npm/chart.js@2.8.0/dist/Chart.min.js:7
    render https://cdn.jsdelivr.net/npm/chart.js@2.8.0/dist/Chart.min.js:7
    callback https://cdn.jsdelivr.net/npm/chart.js@2.8.0/dist/Chart.min.js:7
    advance https://cdn.jsdelivr.net/npm/chart.js@2.8.0/dist/Chart.min.js:7
    startDigest https://cdn.jsdelivr.net/npm/chart.js@2.8.0/dist/Chart.min.js:7
    request https://cdn.jsdelivr.net/npm/chart.js@2.8.0/dist/Chart.min.js:7

This only happens when using version 1.1.3 or 1.1.4 via CDN.
Version 1.1.2 works as expected:

<script src="https://cdn.jsdelivr.net/npm/chartjs-plugin-crosshair@1.1.2/dist/chartjs-plugin-crosshair.js"></script>

I have not tried loading from local file.

Bug or mistake on my end?

Following setup:

  • jQuery 3.4.1
  • Bootstrap.js 4.3.1
  • Chart.js 2.8.0
@EsbenLorenzen
Copy link
Author

EsbenLorenzen commented Sep 10, 2019

EDIT: I am getting the same error on version 1.1.2

Version 1.1.1 is working fine.

@johnny5th
Copy link

I'm also having problems with 1.1.2+
Downgrading to 1.1.1 works as well.

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

No branches or pull requests

2 participants