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
Calendar Chart cannot show multiple years records as in data set #53
Comments
My first thought might be you need to create two charts, one for each year, but I'm away from my pc at the moment, so I can't say for certain. |
Hi, thanks for your reply. In https://google-developers.appspot.com/chart/interactive/docs/gallery/calendar, the Google Chart API seems can handle multiple year records pretty well. In the case I mentioned in main thread, the 2014/2015 data both exist in the rendered client side code, I am not familiar with the Google Native API but I think there's something blocking the API to process the data of other years. For your reference, following is the rendered code:
|
Hi, I finally figured out what caused the problem. Seems it is an issue of graph sizing. Originally I was using the demo rendering code to generate graph : When I change it to It is worth noting that the passed in dimension array doesn't resize the resulting graph, instead, it crops the graph, which is quite inconsistent to the effect of dimension array act on other graphs (say Piechart) |
I'm glad you figured it out! You could probably add the dimensions to the div in the page, or with css add get the same effect. I should look into having to div stretch to contain the whole chart, instead of cutting it off. |
I manually swapped the record using the demo code shown in here (http://lavacharts.com/#example-calendar). To be exact, I change
to
There should be two records, one from 2014, another from 2015. However, the resulting graph is like this:
Looks like the record of 2015 is totally missing, any ideas on how to resolve?
The text was updated successfully, but these errors were encountered: