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

Bar chart is rendered too wide when chart data is a list of nulls and has only one non-null value #48

Closed
Kayleigh5 opened this issue Jan 23, 2019 · 1 comment

Comments

@Kayleigh5
Copy link

When the data for the chart has the following structure, the bar chart is rendered too wide:

screen shot 2019-01-23 at 10 17 31
screen shot 2019-01-23 at 10 19 28

But when I replace one null value with 0, the bar chart is rendered correctly:

screen shot 2019-01-23 at 10 21 26
screen shot 2019-01-23 at 10 22 40

@FERNman
Copy link
Owner

FERNman commented Feb 4, 2019

I've looked into it and can verify that this is an issue. It has nothing to do with how many of the data entries are null and how many are 0, this depends on your screen size and the number of entries.

I can't really tell you what's causing this issue, however, I strongly believe that it's a problem with GoogleCharts itself rather than AngularGoogleCharts.

If you managed to figure it out, I'd love to hear the reason!

@FERNman FERNman closed this as completed Mar 1, 2019
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