tracker issue : CF-4201779

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

cfchart using stylized JSON "series" "background-color" does not work

| View in Tracker

Status/Resolution/Reason: To Track//PRNeedInfo

Reporter/Name(from Bugbase): Yuliang Ruan / ()

Created: 03/29/2018

Components: Charting/Graphing

Versions: 2016

Failure Type: Incorrectly functioning

Found In Build/Fixed In Build: 2016.0.05.303689 C:/ColdFusion2016/cfusion/lib/updates/chf20160005.jar /

Priority/Frequency: Normal / All users will encounter

Locale/System: ALL / Win 2012 Server x64

Vote Count: 0

Problem Description:
when you apply a custom color palette in the style JSON for the chart's series, it does not apply to the chart.  

Steps to Reproduce:
styles.json:
{
  "graphset" : [
    {
      "series" : [
        {
          "background-color" : "#CC0000"
        },
        {
          "background-color" : "#00CC00"
        },
        {
          "background-color" : "#0000CC"
        }
      ]
    }
  ]
}

test.cfm:
<cfchart format='html' style="test.json">
	<cfchartseries type="bar">
		<cfchartdata item="1" value="1" />
		<cfchartdata item="2" value="2" />
		<cfchartdata item="3" value="3" />
	</cfchartseries>
	<cfchartseries type="bar">
		<cfchartdata item="1" value="2" />
		<cfchartdata item="2" value="3" />
		<cfchartdata item="3" value="4" />
	</cfchartseries>
	<cfchartseries type="bar">
		<cfchartdata item="1" value="4" />
		<cfchartdata item="2" value="5" />
		<cfchartdata item="3" value="6" />
	</cfchartseries>
</cfchart>


Actual Result:
chartseries uses colors: lightblue, darkblue, gold.     html shows 

Expected Result:
chartseries uses colors: red, green, blue

Any Workarounds:
none.

Attachments:

Comments:

This has apparently not worked in earlier versions too. @Yuliang, can you confirm it worked earlier?
Comment by Vamseekrishna N.
27519 | April 10, 2018 10:56:07 AM GMT