This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Specification | |
// | |
// id: each chart requires its own unique ID | |
// chart-type: Just set to 'donut' | |
// data-chart-max: The number of items in the set being charted | |
// data-chart-segments: { index : [starting point of segment, # of units in segment, color]} | |
// data-chart-text: The text to appear within the donut hole | |
// data-chart-caption: the text to appear beneath the chart | |
// data-chart-initial-rotate: The initial angle from which the donut populates the chart |