[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,


-----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


> I really like the new charts, but am struggling a bit to figure out
> the labels for the PlotKit pie charts work. Seeing that there is not
> 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
> 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.
As it turns out, the documentation is wrong and it works fine with a pie

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

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.

Seaside mailing list
Seaside at lists.squeakfoundation.org

More information about the Seaside mailing list