look up iif() cf function.
the syntax will be something like:
seriesColor = "#iif(myquery.count gt 5, de('red'), de(blue'))#"
hth
Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/
Sebastian Powell wrote:
> Hi,
>
> I am trying to conditionally color a single bar chart series in <cfchart>,
> depending on a value returned from a source query. As an example of
> logically what i am trying to achieve :
>
> <cfchartseries
> type="bar"
> query="myQuery"
> valueColumn ="count"
> itemColumn = "region"
> paintstyle = "plain"
>
> <cfif #myquery.count# gt 5>
> seriesColor = "red"
> <cfelse>
> seriesColor="blue"
> </cfif
> />
>
> Thanks
>
> Bas
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:314591
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4