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

Support for Google Charts DataTable Roles #40

Closed
shinnc opened this issue Oct 9, 2013 · 7 comments
Closed

Support for Google Charts DataTable Roles #40

shinnc opened this issue Oct 9, 2013 · 7 comments

Comments

@shinnc
Copy link

shinnc commented Oct 9, 2013

Does chartkick currently support the Google Charts DataTable Roles?

@ankane
Copy link
Owner

ankane commented Oct 9, 2013

No, which roles are you interested in?

@shinnc
Copy link
Author

shinnc commented Oct 9, 2013

I'm interested in the customizable tooltip, here's my attempt: shinnc@0a03399

It works for me now but I wish there's an official implementation :)

@ankane
Copy link
Owner

ankane commented Oct 9, 2013

What's the code to call it look like?

@shinnc
Copy link
Author

shinnc commented Oct 9, 2013

data = [ ["foo", 1, "tooltip for foo"], ["bar", 2, "tooltip for bar"] ]
column_chart data, library: { tooltip: true }

Ideally it should be

data = Task.group_by_day_of_week(:created_at).count
column_chart(data, role: {  tooltip: ["tooltip for A", "tooltip for B"], other_roles_here... })

@ankane
Copy link
Owner

ankane commented Mar 24, 2014

Closing in favor of #46

@ankane ankane closed this as completed Mar 24, 2014
@rfsbraz
Copy link

rfsbraz commented Jul 22, 2014

Will this be merged into the main branch?

@ankane
Copy link
Owner

ankane commented Jul 23, 2014

This won't, but will gladly accept a pull request for a slightly different format:

column_chart [{label: "Hello", value: 1, tooltip: "World"}, ...]

@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

3 participants