Anyone gotten Highcharts to work?

81 views
Skip to first unread message

Mike

unread,
Jun 23, 2012, 2:50:29 PM6/23/12
to hobo...@googlegroups.com
Has anyone gotten Highcharts to work with Hobo?  I think it is running into conflicts with Hobo's prototype usage and custom jquery implementation....

It seems to be well regarded for charting - see http://railscasts.com/episodes/223-charts

I installed Hobo's JQuery, and changed the examples away from the $...still no luck.

See more details:

Thanks,

Mike

paulj...@gmail.com

unread,
Jun 27, 2012, 1:16:50 PM6/27/12
to hobo...@googlegroups.com
I have it working in an app.

It was some time ago - between 6 mos and a year.

I don't remember all the steps, but I know it is possible.

I do remember I started with lazy-highcharts for installation help, but I don't use lazy's data formatter - I built that manually.

I am planning to do it again in the next couple of weeks. I will write up my steps and post them.

paulj...@gmail.com

unread,
Jun 28, 2012, 2:57:00 AM6/28/12
to hobo...@googlegroups.com
OK, I have done this again. I am sure there are many ways to improve this, especially my hacky way of building the JSON data string, but this is what I did, and it works:

1. Download Highcharts, unzip, and move highcharts.js into public/javascripts

2. Download jquery-1.7.2.min.js into publc/javascripts

3. In the page where the graph will appear, include the two scripts by inserting these lines at the top of the DRYML file:

<append-scripts:>
<javascript name="jquery-1.7.2.min.js"/>
<javascript name="highcharts.js"/>
</append-scripts:>

4. Build a tag for the graph. Here's sample graph with dummy literal data:


If you call this tag on the page where the scripts are included, a pie chart should appear. 

5. Here is a more complicated sample drawing from real data. 

a. First the tag definition:


b. The method that builds the data series. This is a pretty complicated example, but I hope it gets the idea across.


Hope that helps someone. I will do my best to answer questions. 

Owen Dall

unread,
Jun 28, 2012, 6:57:43 AM6/28/12
to hobo...@googlegroups.com
Thanks much for sharing this with everyone!

Cheers.

Owen

--
You received this message because you are subscribed to the Google Groups "Hobo Users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/hobousers/-/A8yMZHf8WpMJ.

To post to this group, send email to hobo...@googlegroups.com.
To unsubscribe from this group, send email to hobousers+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/hobousers?hl=en.



--

 

Owen Dall

Vice President | Chief Technology Officer

Barquin International 

www.barquin.com

Office: 202.296.7147 | Mobile: tel:410.991.0811

Fax: 202.296.8903 | email: od...@barquin.com


Reply all
Reply to author
Forward
0 new messages