michelson / lazy_high_charts

Make highcharts a la ruby , works in rails 5.X / 4.X / 3.X, and other ruby web frameworks

Home Page:http://www.suipit.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to make multiple names, with multiple data in Spine chart.

IvRRimum opened this issue · comments

commented

So i Create Spine chart.

f.series(:name=>'Incorrect',:data=> [10, 2, 3, 1, 4] )

I want to add labels to each data.
Ex.
Now i see:
Incorrect: 10

What i want to see:
Incorrect: 10
My custom Data: 123
etc.

Thanks!

Do you mean when you put your mouse over a point?

f.tooltip(:headerFormat => "<b>{series.name}: {point.x}<"br">My custom Data: 123", :pointFormat => "{point.x} [x-units] , {point.y} [y-units]")'

Is that what you're looking for?