Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 949438

Summary: The labels for X Axis in Bar and Line charts are displayed no matter what is set with "Show labels (X Axis)" checkbox
Product: [Retired] JBoss BPMS Platform 6 Reporter: Jan Hrcek <jhrcek>
Component: BAMAssignee: David Gutierrez <dgutierr>
Status: CLOSED CURRENTRELEASE QA Contact: Jan Hrcek <jhrcek>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.0.0CC: rrajasek, rzhang
Target Milestone: ---   
Target Release: 6.0.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
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.
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-08-06 20:13:45 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Show labels (X Axis) checkbox does not work none

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