I am creating a stacked, multiple series bar chart.  Each series item 
potentially has 7 values.  I wanted to know if this was the most efficient way 
to create this chart, and also if there is a way to create a legend with the 7 
colors showing up only once with the correct text description beside each 
color.  Here is the cfchart code with only 3 of the values for each item:

<CFCHART chartwidth="600"
        chartheight="500" 
        labelformat="percent"
        format="jpg"
        seriesplacement="stacked">
        <CFCHARTSERIES seriescolor="##0000FF" type="bar" serieslabel="yes">
            <CFCHARTDATA item="Less than 1/4 mile" 
value="#(arriveWalkDist1/distance1num)#">
        </CFCHARTSERIES>
        <CFCHARTSERIES seriescolor="##FF0000" type="bar" serieslabel="yes">
            <CFCHARTDATA item="Less than 1/4 mile" 
value="#(arriveBikeDist1/distance1num)#">
        </CFCHARTSERIES>
        <CFCHARTSERIES seriescolor="##008000" type="bar" serieslabel="yes">
            <CFCHARTDATA item="Less than 1/4 mile" 
value="#(arriveSchBusDist1/distance1num)#">
        </CFCHARTSERIES>
        <!--- ***************************************************** --->
        <CFCHARTSERIES seriescolor="##0000FF" type="bar" serieslabel="yes">
            <CFCHARTDATA item="1/4 to 1/2 mile" 
value="#(arriveWalkDist2/distance2num)#">
        </CFCHARTSERIES>
        <CFCHARTSERIES seriescolor="##FF0000" type="bar" serieslabel="yes">
            <CFCHARTDATA item="1/4 to 1/2 mile" 
value="#(arriveBikeDist2/distance2num)#">
        </CFCHARTSERIES>
        <CFCHARTSERIES seriescolor="##008000" type="bar" serieslabel="yes">
            <CFCHARTDATA item="1/4 to 1/2 mile" 
value="#(arriveSchBusDist2/distance2num)#">
        </CFCHARTSERIES>
                <!--- ***************************************************** --->
        <CFCHARTSERIES seriescolor="##0000CC" type="bar" serieslabel="yes">
            <CFCHARTDATA item="1/2 to 1 mile" 
value="#(arriveWalkDist3/distance3num)#">
        </CFCHARTSERIES>
        <CFCHARTSERIES seriescolor="##FF0000" type="bar" serieslabel="yes">
            <CFCHARTDATA item="1/2 to 1 mile" 
value="#(arriveBikeDist3/distance3num)#">
        </CFCHARTSERIES>
        <CFCHARTSERIES seriescolor="##008000" type="bar" serieslabel="yes">
            <CFCHARTDATA item="1/2 to 1 mile" 
value="#(arriveSchBusDist3/distance3num)#">
        </CFCHARTSERIES>
</CFCHART>



      

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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-newbie/message.cfm/messageid:4031
Subscription: http://www.houseoffusion.com/groups/cf-newbie/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15
  • cfchart Richard Lytle
    • cfchart Richard Lytle

Reply via email to