Bug #1480

BarChart Legend - Attribute Name does not honor control panl checkbox

Added by Pat Stickney over 2 years ago. Updated over 2 years ago.

Status:OpenStart date:12/02/2014
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:Visualization Interface
Target version:-
Complexity:Medium OIC Priority:No
Required by:

Description

Example: http://demo.oicweave.org/weave.html?file=Major_49_CBSA_Colleges_Universities.weave

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.

History

#1 Updated by Philip Kovac over 2 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.

Also available in: Atom PDF