mattetti / googlecharts

Ruby Google Chart API
http://mattetti.github.com/googlecharts/
MIT License
699 stars 108 forks source link

set_range_markers doesn't include support for lines #6

Open ghazel opened 15 years ago

ghazel commented 15 years ago

Line styles use chm= for shape markers:

http://code.google.com/apis/chart/styles.html#line_styles

googlecharts currently only uses it for range markers, so there's no way to use it for lines.

rab commented 13 years ago

You can specify them "directly" like this:

:new_markers => ['B,092F42,0,0,0',           # fill under line
                 "o,A1AF24,0,-1:-1:1,15,0",  # Green circle on last point at 15px
                 "o,FFFFFF,0,-1:-1:1,8,0.1", # white disc on last point at 8px
                 ].join('|'),

There ought to be a better way, but this was the quickest when I had the same issue and dived into the code.

-Rob

Note: I'm using 1.6.0 and haven't looked at the version the original issue was opened for.