That looks cool. The animation to make the first bar disappear is beautiful!
Question: can it also do a clear, and can it have labels on the x axis? I am thinking
about having something like this:
On May 6, 2015, at 13:06, Alexandre Bergel
<alexandre.bergel(a)me.com> wrote:
Hi Demian,
I have produced the class RTDynamicStackedGrapher. It should do what you expect.
b := RTDynamicStackedGrapher new.
b numberOfBars: 10.
b minY: -200; maxY: 200.
b y: #yourself.
b barShape color: (Color red alpha: 0.3).
b view addMenu: '+ 1' callback: [ b add: 400 atRandom - 200 ].
b
Here is a short video:
https://dl.dropboxusercontent.com/u/31543901/TMP/RTDynamicStackedGrapher.mov
Cheers,
Alexandre
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel
http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
On May 4, 2015, at 7:34 PM, Demian Schkolnik
<demianschkolnik(a)gmail.com> wrote:
Hi all!
I want to build a dynamic graph on a composer.. Is that possible?
It throws up an error on 'b add:ds', ie. when I want to add the dataset. It
throws a 'MessageNotUnderstood' error. Can't I pass the Dynamic Grapher a
RTStackedDataSet?
Thanks!
buildDynamicGraph:anObjectArray onComposer:aComposer
| b ds |
b := RTDynamicGrapher new.
b view: aComposer view.
ds := RTStackedDataSet new.
ds points: anObjectArray.
ds y: #second.
ds barShape width: 30.
ds histogramWithBarTitle: #first rotation: 0.
b add: ds.
b axisX noLabel; noTick.
b build.
^ b
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
PLEIAD lab - Computer Science Department (DCC) - University of Chile