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

Options doesn't seem to be passed to google charts #111

Closed
rpierreye opened this issue Jul 28, 2014 · 2 comments
Closed

Options doesn't seem to be passed to google charts #111

rpierreye opened this issue Jul 28, 2014 · 2 comments

Comments

@rpierreye
Copy link

From Google Chart docs, it seems like I should be able to pass options like title, legend etc...
However, it doesn't seem like Chartkick is passing the options to gChart. Am i doing something wrong?

line_chart data, { id: "users-chart", height: "500px", title: "my chart", legend: { position: 'bottom' } }

The HTML options work, but nothing else.

@rpierreye
Copy link
Author

Never mind... looking at chartkick.js I figured that I need to pass a library option.

line_chart data, { id: "users-chart", height: "500px", libary: { title: "my chart" } }

@ankane
Copy link
Owner

ankane commented Jul 29, 2014

Cool, glad you solved it.

@lock lock bot locked as resolved and limited conversation to collaborators Dec 29, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants