- data
The data frame to consider.
- value
The numeric variable to consider.
- label
The labeling variable to consider.
- colorCategory
A D3 categorical color scheme, you can find more
here <https://github.com/d3/d3-scale-chromatic#categorical>. Defaults to 'Paired'
- innerRadius
The size of the inner radius of the pie.
Defaults to 0. Set the inner radius to a higher value to plot
a donut chart.
- outerRadius
The size of the outer radius of the pie.
- padRadius
From the D3 official documentation, The pad radius compute
the fixed linear distance separating adjacent arcs, defined as padRadius * padAngle.
- padAngle
Optional. From the D3 official documentation, the padAngle is used to set the
padding angle between consecutive arcs.
- cornerRadius
From the D3 official documentation, the value of the corner radius for rounded corners.
If the corner radius is greater than zero, the corners of the arc are rounded
using circles of the given radius. Defaults to 0.
- labelFont
The font family of the legend. Defaults to 'sans-serif'.
- title
Optional. The title of the plot.
- titleFontSize
The font size of the plot title. Defaults to 22.
- font
The font family to consider for the titles.
Defaults to "Verdana, Geneva, Tahoma, sans-serif".
- bgcol
The background color of the SVG. Defaults to "white".
- opacity
The color opacity of the pie (from 0 to 1). Defaults to 1.
- labelHeight
The height of the legend. Defaults to 18.
- width
Optional. The width of the SVG output.
- height
Optional. The height of the SVG output.