Answered
cfchartseries seriescolor specifications
I am trying to color bars different colors based on their
value but it appears as though I can't use a cfif statement in the
cfchartseries tag. Does anyone haave any ideas on how I can work
around this to color the bars different colors?
I get this error: Invalid token 'c' found on line....
This is what I tried and failed with:
<cfchartseries query="chartdata" type="bar" valuecolumn="drymatter" itemcolumn="paddock"
<cfif chartdata.drymatter GTE 2750>seriescolor="red"
<cfelseif chartdata.drymatter LTE 1100>seriescolor="yellow"
<cfelse>seriescolor="green"
</cfif>>
</cfchartseries>
I get this error: Invalid token 'c' found on line....
This is what I tried and failed with:
<cfchartseries query="chartdata" type="bar" valuecolumn="drymatter" itemcolumn="paddock"
<cfif chartdata.drymatter GTE 2750>seriescolor="red"
<cfelseif chartdata.drymatter LTE 1100>seriescolor="yellow"
<cfelse>seriescolor="green"
</cfif>>
</cfchartseries>