Bug 949438 - The labels for X Axis in Bar and Line charts are displayed no matter what is set with "Show labels (X Axis)" checkbox
Summary: The labels for X Axis in Bar and Line charts are displayed no matter what is ...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss BPMS Platform 6
Classification: Retired
Component: BAM
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: 6.0.0
Assignee: David Gutierrez
QA Contact: Jan Hrcek
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-04-08 07:59 UTC by Jan Hrcek
Modified: 2014-08-06 20:13 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Cause: "Show/Hide X labels" feature not implemented for the NVD3 renderer. Consequence: Show/Hide checkbox not working. Fix: Implement such feature. Result: Feature working for both OFC2 and NVD3.
Clone Of:
Environment:
Last Closed: 2014-08-06 20:13:45 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Show labels (X Axis) checkbox does not work (447.40 KB, image/png)
2013-04-08 07:59 UTC, Jan Hrcek
no flags Details

Description Jan Hrcek 2013-04-08 07:59:39 UTC
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.

Comment 2 Jan Hrcek 2013-06-10 05:29:41 UTC
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


Note You need to log in before you can comment on or make changes to this bug.