BarChart Legend - Attribute Name does not honor control panl checkbox
If I save the session with the "Show legend attribute name" checked then close. Re-open and the attribute name is visible but the checkbox is not checked anymore.
If I save the session with the "Show legend attribute name" unchecked then close. Re-open and the attribute name is again visible and the checkbox is still not checked.
#1 Updated by Philip Kovac almost 3 years ago
- Complexity changed from Low to Medium
The BarChartLegendTool and ColorBinLegendTool both need refactoring here; there is no actual boolean for "display attribute name," it is implicit in the margin configuration of the internal BarChartLegendPlotter/ColorBinLegendPlotter. A zero (0) top margin size disables the display of the label.
There is a lot of duplicated code between BarChartLegendTool and ColorBinLegendTool, these should be combined minimize redundancy.
While this bug is fixable without refactoring these two tools, it highlights design problems in these tools, and it's probably better that we take this opportunity to fix these.