From: Daniel Nugent Date: 2005-06-27T06:24:05+09:00 Subject: Re: What do you want to see in a Sparklines Library? Right now I'm outputting 3 different types of sparklines. 2 of them, discrete and smooth, were lifted from Joe's Python code and use exactly the same query parameters as seen here: http://bitworking.org/projects/sparklines/ The third is a bit of a blend between the 2 which you can access if you change the type parameter to "area". Here's an example query running on my dev server (the IP isn't static though, so don't expect it to be up forever): http://68.195.83.222/spark.cgi?height=25&type=area&d=88,84,82,92,82,86,66,82,44,64,66,88,90,80,24,26,14,0,0,26,8,6,6,24,52,66,36,6,10,14,30&min-m=true&max-m=true&last-m=true&min-color=red&max-color=blue&last-color=green&step=5&upper=45 (the code is http://68.195.83.222/spark.rb if you want to grab it) Changing the image output type would be a snap, I could probablly have that working in 10 minutes. Pie charts could definitley be a possibility. RMagick's got some excellent drawing functions that make doing something like that a snap. On 6/26/05, Adam Sanderson wrote: > Well... what does it do right now? > I was looking into writing a nice ruby-centric charting library, then > again I am always looking into doing things I never get around to ;) > > I suppose if you're using RMagick then they can already be writtent to > a variety of formats, which is good. One thing I haven't seen yet > which might be neat would be mini pie charts, along the lines of > sparklines, but to show proportions of various things. > .adam sanderson > > > -- -Dan Nugent