Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Coldfusion 10 cfchart/ZingChart not accepting pie chart detach property

I am trying to create a pie chart that expands a pie slice when it is clicked as shown in this example. Below is my ColdFusion code which, according to the ZingChart docs, allows a detach property to be set to true that should allow this behavior. It does not seem to be working however. The line-style property that I set works but not the detach property. Any help would be appreciated. Thanks!

<cfset plot = {"line-style":"dotted","detach": "true"}>
<cfchart format="html" title="Sales Report"  plot="#plot#">
    <cfchartseries type="pie">
        <cfchartdata item="2012" value="25">
        <cfchartdata item="2013" value="25">
        <cfchartdata item="2014" value="25">
        <cfchartdata item="2015" value="25">
    </cfchartseries>
</cfchart> 
like image 802
harkirat singh Avatar asked Feb 02 '26 18:02

harkirat singh


1 Answers

Full disclosure, I'm a member of the ZingChart team.

The detached property does not work because the build cfcharts currently uses is not up to date with the build that the detached property was added.

like image 58
nardecky Avatar answered Feb 04 '26 09:02

nardecky



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!