alternative to charting in ruby. :)
> On 12/10/07, choonkeat <
choonk...@gmail.com> wrote:
>
>
>
> > Beautiful! I've put it into use for my backend stats already!
>
> > Qn: Any chance all the options become a "hash" argument at the end of the
> > initialize methods so we can customize in 1 shot? I find possible booleans
> > easier to understand/discover like that
>
> > lc = GoogleChart::LineChart.new('320x200', "Title" , {
> > is_xy: true, show_legend: false, show_labels: true,
> > })
>
> Good suggestion. Will think of a nice way to include that.
>
> I also wanted to add that you can directly manipulate the hash used to
> generate the URL by
> looking for the params attribute. This is useful if you want features that
> have not been implemented yet.
>
> Qn: Convenient to add a 'yield self if block_given?" at the bottom of each
>
> > initialize method, so that I can use it block style?
>
> > lc = GoogleChart::LineChart.new('320x200', "Title" ) do |c|
> > c.data "Trend 1", [5,4,3,1,3,5,6], '0000ff'