pharo-graphics / Roassal

The Roassal Visualization Engine
MIT License
14 stars 8 forks source link

Feature add relative y axis label values #58

Closed jordanmontt closed 4 months ago

jordanmontt commented 4 months ago

Added relative labels for the y axis for RSHistogram. Pair programmed with @akevalion

For example, let's take this data as an example.

#(0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 2 10 10 10 10).

The number 0 appears 14 times which represents 70% of total occurrences.

In the default histogram, the one in the left, the number 14 appears as the label for the y-axis. When using the relative labels, the number 70 (the percentage) appears instead (the image in the right).

Capture d’écran 2024-03-05 à 16 20 15