I drew a bar diagram for my benchmarks in Graph-ET on Pharo. Does anybody know how to add the labels to x-axis? I want to write the name of the benchmark under the each of bars.
Graph-ET x-axis labels
243 Views Asked by Natalia At
2
There are 2 best solutions below
0

In GraphET2 (which uses Roassal2) building charts like the one you wanted is way easier!
| chart |
chart := GET2Bar data: ($a to: $z).
chart
y: #asInteger;
title: 'Chart about my life';
titleColor: Color red.
chart yAxis title: 'Happiness'.
chart xAxis addModelLabels:[:v | |s| s:= v asString. s,s,s,s. ];
verticalLabelsInverted;
title: 'Passing days'.
chart open.
Check it out here!
I hope it helps :)
Open a workspace, and type the following: