Customizing tooltips

Author: taglialaCreated Oct 30, 2013Updated May 5, 2024
Labelsenhancement

Hi,

I'm using chartkick and group_date for a multiple series chart like the one in the readme, let's say:

erb
<%= 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