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

Problems with single value #131

Open
albtom opened this issue Mar 15, 2019 · 4 comments
Open

Problems with single value #131

albtom opened this issue Mar 15, 2019 · 4 comments
Labels

Comments

@albtom
Copy link

albtom commented Mar 15, 2019

Hi

If I have two categoris with a value in a grouped bar chart it works fine. But if I only have one catagory the "category grid" gets corrupted.
I have a demo: https://jsfiddle.net/mwkft46n/
Switch between arrCat1/arrCat2 and arrSeries1/arrSeries2 to see the problem.
With two categories I get two rows in the "category grid", but with a single category I get 1.8 (?) rows...

Kind regards

Tomas

@albtom
Copy link
Author

albtom commented Mar 15, 2019

One more thing: your demos seem to use an older version of HighCharts, by using this url:
http://code.highcharts.com/js/highcharts.js
The current/correct url is
http://code.highcharts.com/highcharts.js

Tomas

@pawelfus
Copy link
Collaborator

Hi @albtom

Thanks for reporting the issue! And letting us know about wrong URL in demos!

Workaround:
Set xAxis.min and xAxis.max, demo: https://jsfiddle.net/BlackLabel/o0m6pw5f/3/

@pawelfus pawelfus added the bug label Mar 15, 2019
@albtom
Copy link
Author

albtom commented Mar 15, 2019

Thanks @pawelfus , that fixed it!
If more than one category xAxis.min should be 0 though.

@pawelfus
Copy link
Collaborator

I think extremes should be set only when the bug shows up - otherwise you don't need that (simple max = null will be fine).

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

No branches or pull requests

2 participants