Inside Out Outside In

CFCHART: Passing Additional Value in URL Other Than the 3 Standard Values

CFCHART documentation states that  $ITEMLABEL$, $VALUE$, and $SERIESLABEL$ can be passed in the url attribute.  Did you know you can also use $(colIndex), which will pass the (zero based ) column index of the item clicked. 



<cfchart 
      tipStyle
="mousedown"  title="Fruit"
       url
="pie.cfm?fruit_name=$ITEMLABEL$&COLINDEX=$(colIndex)"

      font
="arial"
      fontsize
=14
      fontBold
="yes"
      foregroundcolor
="##660066"
      show3D
="yes"
      chartheight
="400"
      chartwidth
="500"
      
>
      
      
<cfchartseries type="pie">
            
<cfchartdata item="Apple 1" value="25">
            
<cfchartdata item="Apple 2" value="25">
            
<cfchartdata item="Orange 1" value="25">
            
<cfchartdata item="Orange 2" value="25">
      
</cfchartseries>
      
                  
                  
</cfchart>

Comments (Comment Moderation is enabled. Your comment will not appear until approved.)
Anuj Gakhar's Gravatar I think you can also use $(rowIndex) if I am not mistaken.
# Posted By Anuj Gakhar | 3/4/08 9:46 AM