Skip to content
This repository has been archived by the owner on Jan 2, 2018. It is now read-only.

bug fix (?) for googlecharts #37

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

markus
Copy link

@markus markus commented Jun 8, 2011

Hi! I don't understand what I was doing but my change is only one character and it fixes a bug for me in the case when I have 3 labels on the x-axis. Please take a look at my commit.

@aderyabin
Copy link
Collaborator

Can you show changes on examples?

@markus
Copy link
Author

markus commented Jun 9, 2011

With this code:
Gchart.line(:data => [[nil, 500, 425], [425, 600, nil]], :axis_with_labels => ['x'], :axis_labels => [[1, 2, 3]])
I expect a chart where the labels 1, 2 and 3 are evenly spaced on the x-axis.

@markus
Copy link
Author

markus commented Jun 9, 2011

I pushed a test for it, but I don't know if my test makes sense because I think there are many ways to get evenly spaced labels.

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

Successfully merging this pull request may close these issues.

3 participants