Customizing tooltips
Nobody has claimed this yet.
- Dominant language
- Ruby
- Stars
- 6.5k
- Forks
- 562
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
I'm using chartkick and group_date for a multiple series chart like the one in the readme, let's say:
<%= line_chart @users.map{|user| {:name => user.name, :data => user.orders.group_by_week(:created_at).average(:price)}
} %>
Is there a way to customize the tooltip via chartkick? (In the above example, I need to change date format and round price to the second decimal)
TIA
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the README's multiple-series line_chart example and trace how tooltip options are passed through chartkick to its chart engines. Determine a consistent way to format dates and round prices, then verify the behavior for the example's grouped data across the supported chart integrations.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ruby
- Domain
- data-visualization
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100