niucang / gchartrb

Automatically exported from code.google.com/p/gchartrb
0 stars 0 forks source link

No support yet for "lfi" sparkline graph type #6

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Here's a sparkline I'd like to generate for my application:
http://chart.apis.google.com/chart?cht=lfi&chs=300x15&chd=s:0qy119yudYQR&chco=00
8000

gchartrb doesn't support the lfi chart type yet, so I have to hack it with
regexping the url.

Original issue reported on code.google.com by D.Scott....@gmail.com on 23 Jan 2008 at 9:24

GoogleCodeExporter commented 8 years ago
I am aware  of the lfi chart type. But I was wondering if it is a good idea to 
support it right away, since it has not been documented.

But let me consider it since you have made a request.

Another alternate way to generate a sparklines chart is given here http://
blog.deepak.jois.name/2007/12/plotting-sparklines-chart-using.html

Thanks.

Original comment by deepak.j...@gmail.com on 24 Jan 2008 at 12:08

GoogleCodeExporter commented 8 years ago
I actually tried the way described in the blog post first, but it actually 
_doesn't work_ for image sizes below 
~30 pixels high, making it sort of useless for true sparklines. A big chunk of 
the graph is cut off.

Compare:
<img src="http://chart.apis.google.com/chart?
chd=s:wxwwwwsyhmoqyywwwxxwsooqXvvsov92swwwwwwwht2lquywxwwwwymuosswwwwwwxwwwww2lq
qw
wwwwwwxxwww&cht=lfi&chs=80x15&chco=999999">

<img src="http://chart.apis.google.com/chart?
chd=s:wxwwwwsyhmoqyywwwxxwsooqXvvsov92swwwwwwwht2lquywxwwwwymuosswwwwwwxwwwww2lq
qw
wwwwwwxxwww&chxt=x,y&chxl=0:||1:|&cht=lc&chs=80x15&chco=999999&chxs=0,000000,10,
0,_|1,00000
0,10,0,_">

Original comment by D.Scott....@gmail.com on 24 Jan 2008 at 12:17

GoogleCodeExporter commented 8 years ago
Ok. I will give a shot at implementing it this week.

Thanks for your feedback :).

Deepak

Original comment by deepak.j...@gmail.com on 24 Jan 2008 at 12:20

GoogleCodeExporter commented 8 years ago
Thanks for your responsiveness :)

Original comment by D.Scott....@gmail.com on 24 Jan 2008 at 12:22

GoogleCodeExporter commented 8 years ago
This feature is now committed to trunk, as experimental support for Financial 
Line 
Chart.

I should be making a release in a day or two, after considering if I can 
squeeze in 
a couple of minor features.

Original comment by deepak.j...@gmail.com on 27 Jan 2008 at 1:31