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: