[Seaside] [ANN] PlotKit 0.8 for Seaside
Mart-Mari Breedt
breedt_m at aircom.co.za
Wed Apr 26 05:22:49 UTC 2006
Hallo Philippe,
Thanks for all your effort. I am going to check this out right now.
Kind regards,
Mart-Mari
-----Original Message-----
From: Philippe Marschall [mailto:philippe.marschall at gmail.com]
Sent: 25 April 2006 09:26 nm
To: The Squeak Enterprise Aubergines Server - general discussion.
Subject: Re: [Seaside] [ANN] PlotKit 0.8 for Seaside
Hi
> I really like the new charts, but am struggling a bit to figure out
how
> the labels for the PlotKit pie charts work. Seeing that there is not
an
> xTicks: accessor for the pie chart layout, one would assume that the
> labels can be set in the dataset. But using a dataset like the one
below
> cause's nothing to be displayed, while passing numeric labels seems to
> work fine.
>
> dataset := PKDataset new
> name: 'data1';
> addX: 'A' y: 1;
> addX: 'B' y: 2;
> addX: 'C' y: 3;
> addX: 'D' y: 4;
> yourself
You are right, #xTicks: would do the trick, but it's not there. The
reason I didn't put it in the pie layout options is that the
documentation says it's only available on line and bar layouts.
http://media.liquidx.net/js/plotkit-doc/PlotKit.Layout.html
As it turns out, the documentation is wrong and it works fine with a pie
layout.
I published a new version (PlotKit-pmm.4) that adds #xTicks: to all
layout options, and updated the included demo to set the labels. I
also included a patch from the PlotKit mailinglist that allows to
disable filling and stroking for line charts.
A dataset is really just a collection of points and a string. If you
don't find the API a paragon of OOP then I agree. It's just a very
close mapping of the existing PlotKit API. This makes life for me much
easier.
If nothing is displayed this in general means that there was a
JavaScript exception. Firefox and Extensions (Javascript Console,
FireBug, Javascript Debugger) help in these cases.
Cheers
Philippe
_______________________________________________
Seaside mailing list
Seaside at lists.squeakfoundation.org
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
More information about the Seaside
mailing list