Skip to content

Donut Renderer

Tobias Paczian edited this page Mar 29, 2018 · 2 revisions

image

Creates a donut-chart image.

options

  • size - Size of the graph in pixel. Default is 500
  • rimWidth - Width of an individual rim. Default 50
  • rimPadding - Padding between two rims. Default is 1
  • title - Title of the graph. Default is ``null`
  • titleFontSize - Font size in pixell of the title. Default is 15
  • showTotal - Boolean whether to show the total number in the title. Default is true
  • data - List of lists of numbers. Each list represents one rim of the donut from outside to inside. The numbers define the wedges of the rims.

Clone this wiki locally