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

bug fix (?) for googlecharts#37

Open
markus wants to merge 3 commits into
mattetti:masterfrom
markus:master
Open

bug fix (?) for googlecharts#37
markus wants to merge 3 commits into
mattetti:masterfrom
markus:master

Conversation

@markus

@markus markus commented Jun 8, 2011

Copy link
Copy Markdown

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
Copy Markdown
Collaborator

Can you show changes on examples?

@markus

markus commented Jun 9, 2011

Copy link
Copy Markdown
Author

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

markus commented Jun 9, 2011

Copy link
Copy Markdown
Author

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