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

Tooltips custom doesn't work #34

Closed
roman-golubov opened this issue Jul 18, 2022 · 2 comments
Closed

Tooltips custom doesn't work #34

roman-golubov opened this issue Jul 18, 2022 · 2 comments
Labels
question Further information is requested

Comments

@roman-golubov
Copy link

roman-golubov commented Jul 18, 2022

I'm having the following question...
After moving from @datavisyn/chartjs-chart-box-and-violin-plot
Tooltips doesn't work. We are using custom function for tooltips render.

Correct result before update was this
p7ks5zwim7tw8909wfyxl5w1vcaeo3

Screenshots / Sketches
Screenshot 2022-07-18 at 14 44 09

@roman-golubov roman-golubov added the question Further information is requested label Jul 18, 2022
@sgratzl
Copy link
Owner

sgratzl commented Jul 18, 2022

can you provide an example containing the following:

  • a bar chart in which the custom tooltip work - to avoid that it due to the chart.js 3 upgrade
  • a boxplot version using the same custom tooltip in which it doesn't work

@roman-golubov
Copy link
Author

roman-golubov commented Jul 18, 2022

I'm using Vue js.
The solution was to import chart js plugin via Tree shaking
Chart.js 3 is tree-shakeable - reference

import { Chart, Tooltip, CategoryScale, LinearScale } from 'chart.js';
import { BoxPlotChart } from '@sgratzl/chartjs-chart-boxplot';
Chart.register(
  BoxPlotChart,
  Tooltip,
  CategoryScale,
  LinearScale
);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants