Removing the hardcoded limitation of cut = 9 and exposing it as maxSlices. This sets the max for individual slices, all other values will be collapsed. Deriving defcut flag from the minPercent option. If it's set to 0 no attempts to prevent rendering very small slices will be made. Otherwise, piechart will collapse all slices below this threshold. The default is 1.
Adding code to the branch handling single sliced pie chart to enable click through. It looks like a single slice has a cover as a separate object, but multiple slices don't have separate cover, not sure why that is. The cover for the single slice stays on top so it will get the href attr.
…charts on one page its good to have consistent colors across the different charts. The matchColors option assigns the colors based on the order of the values and labels.
…NITY and NEGATIVE_INFINITY status
…appen if data came from a strange source) then every element of the array values must be converted to a number before it's summed in order to avoid res containing NaN and breaking the graph.
… then the while(!r) loop will continue forever. Adding a small check to check for those cases, so that the library doesn't hang the browser.