-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
| b |
b := RTTimeLineBuilder new.
"The lowest value will be red, the highest will be green"
b colors: {Color red . Color green}.
"Width of the bar"
b shape current width: 15.
"Total height of the diagram"
b height: 80.
"Number of values to be displayed before scrolling to the right"
b numberOfValues: 20.
"Small button for test purpose"
b view canvas addMenu: 'Add' callback: [ b add: 30 atRandom ].
b open
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
A screenshot:
And a small video that shows the example:
It took me about 5 mn to do this. This is easily extensible…
For now, this is separated from GraphET. Probably it would make sense to move it from Roassal to GraphET.
Cheers,
Alexandre
On Apr 25, 2014, at 1:14 AM, Serge Stinckwich <
serge.stinckwich@gmail.com> wrote:
Hi all,
I would like to plot real-time sensor data that comes from an arduino board.
Is there something to do that in GraphET or any idea to implement it ?
Thank you.
--
Serge Stinckwich
UCBN & UMI UMMISCO 209 (IRD/UPMC)
Every DSL ends up being Smalltalk
http://www.doesnotunderstand.org/
_______________________________________________
Moose-dev mailing list
Moose-dev@iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel
http://www.bergel.eu^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.