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

Boxplot not working properly #7

Closed
xde013 opened this issue Jul 8, 2021 · 4 comments
Closed

Boxplot not working properly #7

xde013 opened this issue Jul 8, 2021 · 4 comments
Labels
bug Something isn't working

Comments

@xde013
Copy link

xde013 commented Jul 8, 2021

Chart type boxplot doesn't seem to behave as expected:

  • No tooltips appear
  • Chart is plotted only in first x column (dataset mapping issue?)

To Reproduce
Please refer to this demo -> https://codesandbox.io/s/interesting-haze-i0421

Additional context

  • react
  • chartjs
  • react-chartjs-2

🚩 Chart behaving normally when setting chart option indexAxis to 'y'.

@xde013 xde013 added the bug Something isn't working label Jul 8, 2021
@sgratzl
Copy link
Owner

sgratzl commented Jul 8, 2021

there seems to be some incompatibilities with chart.js 3.4.x if you go back to 3.3 it works as expected.

@TearsDemon
Copy link

As I can see problem in this code on Chart.js: chartjs/Chart.js#9208

@TearsDemon
Copy link

Also I found a workaround for StatsBase

this._transformStats(properties, parsed, (v) => (reset ? base : scale.getPixelForValue(v, index)));

 this._transformStats(properties, parsed, (v) => (reset ? base : scale.getPixelForValue(v, index)));
 properties.height = undefiend;
 super.updateElement(rectangle, index, properties, mode);

@sgratzl
Copy link
Owner

sgratzl commented Aug 7, 2021

should be fixed with https://github.com/sgratzl/chartjs-chart-boxplot/releases/tag/v3.5.0

@sgratzl sgratzl closed this as completed Aug 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants