tracker issue : CF-3680257

select a category, or use search below
(searches all categories and all time range)
Title:

Using rules in HTML charts does not match legend created

| View in Tracker

Status/Resolution/Reason: Closed/Won't Fix/ThirdParty

Reporter/Name(from Bugbase): jason muriel / jason muriel (capnamerica)

Created: 12/05/2013

Components: Charting/Graphing

Versions: 10.0

Failure Type:

Found In Build/Fixed In Build: Final /

Priority/Frequency: Minor / All users will encounter

Locale/System: English / Win 2008 Server R2 64 bit

Vote Count: 0

Problem Description: If you use rules to change chart features (color as an example) the legend created does NOT change the colors to match the rules. It instead defaults to the colors that would have been used by default. 

Steps to Reproduce: Create a basic vertical barchart (using default colors).
Create a rule to change the background-color based on the label. (using plot of cfchart)
plot = {
"rules": [
				    {"rule":"'%t'=='TEST'",
  			         "background-color":"##372A5D",
				     "background-color-1":"##372A5D",
				     "background-color-2":"##7D65C6"}
]
}


Actual Result: The chart bar colors will change but the corresponding legend created will remain the same. 

Expected Result: The chart bar colors will change and the corresponding legend created will match. 

Any Workarounds:
None that I could find online or reading through documents.

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3680257

Deployment Phase:	Release Candidate

External Customer Info:
External Company:  
External Customer Name: capnamerica
External Customer Email:  
External Test Config: My Hardware and Environment details:



Windows Server 2008 R2

Coldfusion 10: version 10,0,11,285437 

Browser: occurs on all browsers

Attachments:

  1. December 06, 2013 00:00:00: 1_chartPic.jpg

Comments:

I've included a picture of a chart I created using rules. You can clearly see that the reddish bar does not correspond to the legend created. The reddish column corresponds to the 'gold' colored 'zenrise water bottle' instead.
Comment by External U.
13876 | December 05, 2013 02:16:49 PM GMT