addressalign-toparrow-leftarrow-rightbackbellblockcalendarcameraccwcheckchevron-downchevron-leftchevron-rightchevron-small-downchevron-small-leftchevron-small-rightchevron-small-upchevron-upcircle-with-checkcircle-with-crosscircle-with-pluscrossdots-three-verticaleditemptyheartexporteye-with-lineeyefacebookfolderfullheartglobegmailgooglegroupshelp-with-circleimageimagesinstagramFill 1linklocation-pinm-swarmSearchmailmessagesminusmoremuplabelShape 3 + Rectangle 1ShapeoutlookpersonJoin Group on CardStartprice-ribbonShapeShapeShapeShapeImported LayersImported LayersImported Layersshieldstartickettrashtriangle-downtriangle-uptwitteruserwarningyahoo

Re: [jsmn] Google charts html tooltips

From: Baskin T.
Sent on: Wednesday, December 5, 2012 4:13 PM
Well, this reminded a small Google Chart using gem 'gchartrb' I worked out last year. Below is the partial code:

def self.ChartUrl
    # some more code..
for i in 00..1000
st_indexsize << @indexsize[i]
end

lc= GoogleChart::LineChart.new("750x400", "Stress Test Results", false)
lc.data "index size", st_indexsize, 'C0504D'
lc.axis :y, :font_size => 10, :alignment => :center
# lc.axis :x, :labels => st_ctstamp
lc.show_legend = true
lc.shape_marker :diamond, :color => 'C0504D', :data_set_index => 1, :data_point_index => -1, :pixel_size => 7
return lc.to_url
end
end

It simply creates a chart image on a remote server and returns the url. You can set a bunch of options, but I am not sure about html tooltips since this is a static image. 

Hope it helps,

Baskin


On Wed, Dec 5, 2012 at 3:50 PM, James Greene <[address removed]> wrote:
I'm not a Ruby guy, so forgive my ignorance but... did you try any of the other Ruby libraries for Google Charts/Visualization?
e.g.:

Sincerely,
    James Greene




On Wed, Dec 5, 2012 at 3:41 PM, Chris Schumann <[address removed]> wrote:
Hey all,
I'm trying to construct a ruby object that get passed via JSON to Google charts and get full html tooltips.

No incantation I've come up with yet does the job.

Any tips or links would be appreciated.

Thanks,
Chris
--
Sent from my Android phone with K-9 Mail. Please excuse my brevity.



--
Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
This message was sent by Chris Schumann ([address removed]) from JavaScriptMN.
To learn more about Chris Schumann, visit his/her member profile
Set my mailing list to email me As they are sent | In one daily email | Don't send me mailing list messages

Meetup, PO Box 4668 #37895 New York, New York[masked] | [address removed]





--
Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
This message was sent by James Greene ([address removed]) from JavaScriptMN.
To learn more about James Greene, visit his/her member profile
Set my mailing list to email me As they are sent | In one daily email | Don't send me mailing list messages

Meetup, PO Box 4668 #37895 New York, New York[masked] | [address removed]

Our Sponsors

  • Twilio

    Pizza sponsor and a Super simple API for SMS, MMS, Voice/VoIP

  • Olson

    The great people at Olson are providing us the space for our meetings.

  • TrackJS

    Food Sponsor and awesome error reporting

  • ReachLocal

    Video Streaming Sponsor

  • Empulse

    Video Streaming Sponsor

People in this
Meetup are also in:

Sign up

Meetup members, Log in

By clicking "Sign up" or "Sign up using Facebook", you confirm that you accept our Terms of Service & Privacy Policy