Skip to content
svandecappelle edited this page Apr 9, 2014 · 4 revisions

Introducion

Options

Base options:

  • diameter: [default: computed] The diameter of each cicles of the donut. (be care with multiple dimentions donuts)
  • innerDiameter: [default: computed] The diameter of the inner circle of the donut.
  • thickness: [default: computed] The width of each circles of the donut.
  • padding : [default: 20] padding between the donut and plot edges, legend, etc.
  • sliceMargin: [default: 0] angular spacing between donut slices in degrees.
  • ringMargin: [default: computed] pixel distance between rings, or multiple series in a donut plot.
  • fill: [default: true] whether to fill the slices of the donut.
  • shadowOffset: [default: 2] offset of the shadow from the slice and offset of each succesive stroke of the shadow from the last.
  • shadowAlpha: [default: 0.07] transparency of the shadow
  • shadowDepth: [default: 5] number of strokes to apply to the shadow,
  • highlightMouseOver: [default true] highlight slice when moused over.
  • highlightMouseDown: [default false] True to highlight when a mouse button is pressed over a slice.
  • highlightColors: [default computed (by colors given)] an array of colors to use when highlighting a slice.
  • dataLabels: [default: 'percent'] Either 'label', 'value', 'percent' or an array of labels to place on the pie slices.
  • showDataCategoryOnHover:
  • dataLabelFormatString: [default: If none, '%s' is used for "label" and for arrays, '%d' for value and '%d%%' for percentage]Format string for data labels.
  • dataLabelThreshold: [default: 3] Threshhold in percentage (0 - 100) of pie area, below which no label will be displayed.
  • dataLabelPositionFactor: [default: 0.4] A Multiplier (0-1) of the pie radius which controls position of label on slice. Increasing will slide label toward edge of pie, decreasing will slide label toward center of pie.
  • dataLabelNudge: [default: 0] Number of pixels to slide the label away from (+) or toward (-) the center of the pie.
  • startAngle: [default: 0] Angle to start drawing donut in degrees.
  • tickRenderer: [default: $.jqplot.DonutTickRenderer] rendering ticks. (cannot be overriden)

v2 options:

  • showDataLabels: show data labels on slices.
  • showDataCategoryOnHover: [default: false] If true then display a tooltip on mouse over. The data displayed in tooltip is the category of the point. for example: serie1 ["/", 12] -> prints "/" on tooltip.