Created attachment 732566 [details] Show labels (X Axis) checkbox does not work Description of problem: When congifuring options for KPI panels, that use "Bar chart" or "Line chart" to display data, there is checkbox option "Show labels (X Axis)". However this checkbox does not work - X Axis labels are displayed both when the checkbox is checked AND when the checkbox is unchecked. This problem seems to manifest only when NVD3 library is used to render charts. Version-Release number of selected component (if applicable): How reproducible: OS: Fedora 18 Browser: both Firefox 19, Google Chrome 26 Steps to Reproduce: 1. Download dashboard-builder from github and run quickstart demo as described in the "Quickstart" section cd dashboard-builder/scripts ./buildandrun_h2.sh 2. Browse to http://localhost:8080/dashbuilder/ and login with root/root 3. Using administration menu at the top navigate to Workspace: Showcase, Page: Sales opportunities 4. Congifure for example the KPI panel with bar chart "Opportunities by employee" using "Options" > "Edit content" (click the gearwheel icon in the top-right corner of the panel) - this opens "Panel Edition" modal dialog. 5. Uncheck the checkbox "Show labels (X Axis)" (the change is configuration shoul already manifest itself in the configuration window, as it does for other configuration options but it isn't) and close the configuration window using "x" Actual results: The X Axis labels ARE DISPLAYED, even though the should NOT be visible. When going back to panel's "Options" > "Edit content" the unchecked state is saved OK. The option just doesn't have any effect on the visibility of X Axis labels. Expected results: The X Axis labels should be hidden, when user unchecks the "Show labels (X Axis)" checkbox. Additional info: This problem seems to be present only when charts are rendered using NVD3 library - for Open Flash Chart it seems to be working correctly (X axis labels are hidden/displayed based on the checkbox state). There seems to be the same problem with the NVD3 based "Line chart" (X axis labels are displayed always). For Pie Charts this seems to work OK.
Fixed. Github commit: https://github.com/droolsjbpm/dashboard-builder/commit/eea0707c5943c081f1b3bdb4c0decced3c2b97a2
QA: Problem is solved now. X-axis labels are now shown/hidden correctly based on KPI panel configuration. Verified with dashbuilder build DR5 deployed on EAP 6.1 GA