CFCHART with value = 0

Discussion in 'Programming' started by tbarr60, May 10, 2007.

  1. #1
    I was working on some reports that included a pie chart. The requester changed the way numbers would be grouped so now I had a few variables that were getting a value of zero. In some cases this caused the chart to be drawn out as a pie but then the biggest section eclipsed the others so I ended up with an orange ball. The slices appeared and then disappeared. This was in Flash, if I did JPG it just appeared as a pie with no slices.

    I added a CFIF (value greater than 0) within the CFLOOP that created my CFCHARTDATA pairs and the eclipsing went away. I assume I can convince the requester to accept that 0 isn't worth charting.

    Is this a known issue with CFCHART? Are there better workarounds?
     
    tbarr60, May 10, 2007 IP