ObjectProfile / Roassal3

The Roassal Visualization Engine
MIT License
96 stars 52 forks source link

RSAbstractTick crashes when creating a bar plot with only one value #500

Closed jordanmontt closed 1 year ago

jordanmontt commented 1 year ago

When creating a bar plot that has only one value, the ticks are updated like this:

RSAbstractTick>>fromNames: aCollectionOfStrings
    self
        doNotUseNiceLabel;
        numberOfTicks: aCollectionOfStrings size-1.

So, as aCollectionOfStrings size is one, the value is set to 0 which produces an exception in the debugger

Capture d’écran 2023-01-16 à 13 59 47
akevalion commented 1 year ago

I have created a control in fromNames:. But I think this is something that is not totally clear in roassal chart library. A todo for a new chart library based on https://github.com/sambegou122/DLPoster mathplotlib and ggplot