ankane / ankane/chartkick

Customizing tooltips

Open
#46 21 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.