2

I am new to highcharts with ruby on rails. Is there any tutorial or any idea how to fetch data from database ( SQLYog Community) and display it as chart ( Highchart) using Rails ??

Rashmi
  • 629
  • 1
  • 11
  • 35
  • 2
    Someone posted an interesting [videocast](http://railscasts.com/episodes/223-charts) on this in a [separate question about highcharts](http://stackoverflow.com/questions/5031253/how-to-create-arrays-for-highchart) – NT3RP Mar 08 '11 at 23:46
  • Thanks !! And sorry for late reply ! :) – Rashmi Mar 16 '11 at 08:08

2 Answers2

3

Yes you can. You just have to return json object. You can google 'highcharts json' for more information.

Example:

Reload chart data via JSON with Highcharts

Community
  • 1
  • 1
Michael Nguyen
  • 1,691
  • 2
  • 18
  • 33
0

I highly recommend the RailsCasts video tutorial for this.

This is a great tutorial on getting Highcharts up and running with Rails.

It will walk you through installing Highcharts and jQuery and getting your models and views set up to render charts nicely.

Once you have the basics up and running you should look through Highcharts sample code in their demos.

Zsolt Botykai
  • 50,406
  • 14
  • 85
  • 110
Bruce P. Henry
  • 412
  • 1
  • 4
  • 14
  • Great, I just discovered that I duplicated the link in the very first response (which of course obfuscated the link so it was hard to tell a priori). Sigh... – Bruce P. Henry Feb 17 '12 at 19:10