[CategoryAxis] Unknown category issue #435
-
Bug: As a workaround: Is it possible to hide the "unknown category" on the shown axis? To Reproduce Environment:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
@alzorin this is very similar to your second question here. The 'unknown category' is the designed behaviour and default label defined in the You may change this via limiting the range to something that is just smaller/larger than your defined range, provide extra user-defined (e.g. "") categories (works only for right/top range), or overwrite the above method with a user-level derived class as also outlined here. P.S. May I ask for which application/domain are you using chart-fx? Is it a private/academic/commercial project? Am asking because it's hard to get a good overview of the different use-cases and user-base via GitHub. |
Beta Was this translation helpful? Give feedback.
@alzorin this is very similar to your second question here.
The 'unknown category' is the designed behaviour and default label defined in the
CategoryAxis
https://github.com/GSI-CS-CO/chart-fx/blob/f72b16aa85f7c50ed17aab3b5c1650a2ffbbcca9/chartfx-chart/src/main/java/de/gsi/chart/axes/spi/CategoryAxis.java#L145-L152
which is triggered if you zoom or set a range outside the defined categories. The rationale behind this is to clearly mark the valid range and to provide an overflow bin for values that do not fit any other category.
You may change this via limiting the range to something that is just smaller/larger than your defined range, provide extra user-defined (e.g. "") categories (works…