Hello Alex,
- What #labels: is for exactly?
It changes the label string in y axis. By default it is #yourself. For
example, you can do:
| diagram |
diagram := ESDiagramRenderer new.
(diagram verticalBarDiagram)
y: [:each | each];
labels: [ :each | each value asString, '%' ];
identifier: #yourself;
defaultColor: Color blue;
valueAxis;
width: 500;
rotatedLabels: false;
models: (1 to: 21).
^ diagram open
[image: image.png]
- How can I get the label on the vertical axis as float (with 2 decimal),
but not fractions.
You can use #labels: for that. For example:
| diagram |
diagram := ESDiagramRenderer new.
(diagram lineDiagram)
y: [:each | each];
labels: [ :each | each value asTruncatedFloat ];
defaultColor: Color blue;
valueAxis;
width: 500;
rotatedLabels: true;
models: (1 to: 13) / 16.
diagram open
[image: image.png]
On Thu, Dec 8, 2011 at 4:50 PM, Alexandre Bergel <alexan
dre.bergel(a)me.com>wroteote:
Hi!
Based on some example (e.g., below), I inferred that #valueAxis set on
labels for the vertical axis. The one on the horizontal axis are set by
#identifier:
What #labels: is for exactly?
| diagram |
diagram := ESDiagramRenderer new.
(diagram verticalBarDiagram)
y: [:each | each];
labels: #yourself;
identifier: #yourself;
defaultColor: Color blue;
valueAxis;
width: 500;
rotatedLabels: false;
models: (1 to: 21).
^ diagram open
I have produced the following curve. How can I get the label on the
vertical axis as float (with 2 decimal), but not fractions.
I will use your answers to comment some of the method in EyeSee.
Cheers,
Alexandre
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel
http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
--
Andre Hora