Skip to content
Advertisement

Tag: pchart

php pchart pie chart problem with 0 value

I have a problem with my pie chart when I have 0 values $MyData->addPoints(array(10,20,20,15,23),”Data”); This works fine and converts to percentages across a pie chart however if any of these values are 0 which could happen as I’m dealing with counts and these are really variables in my script) then everything screws up and the color of the legend don’t

Advertisement