agrobbin / highcharts-js-rails

Easily configure a Highcharts JS chart for use in a Rails application
MIT License
16 stars 8 forks source link

Added support for named datapoints (hashes) in series data #2

Closed tanelj closed 11 years ago

tanelj commented 12 years ago

I have add support for named datapoints (hashes) in series data as described in Highcharts API http://api.highcharts.com/highcharts#series.data as 3rd method:

Example:

chart = Highcharts.new
chart.series([
  :data => [
    {name: 'Point 1', color: '#00FF00', y: 0}, 
    {name: 'Point 2', color: '#FF00FF', y: 5}
  ]
])
agrobbin commented 11 years ago

Thanks for this @tanelj! Sorry it took so long to get this merged in.

tanelj commented 11 years ago

Thank you!