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:

http://pastie.org/4164150


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:

http://pastie.org/4164177


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

http://pastie.org/4164185


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

On Wednesday, June 27, 2012 10:16:50 AM UTC-7, [email protected] wrote:
>
> 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.
>
> On Saturday, June 23, 2012 11:50:29 AM UTC-7, Mike wrote:
>>
>> 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:
>> http://www.highcharts.com/documentation/how-to-use 
>>
>> Thanks,
>>
>> Mike
>>
>

-- 
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/hobousers?hl=en.

Reply via email to