Returns the currently stored numeric values as a new array. Values are represented as decimal percentages in the range of 0.0 - 1.0, inclusive.
Optional
init: PartialDeep<BarGraph> & { parentIcon?: DynamicIcon }Adds value
to current array along with the current bar drawing style and
shifts out old values if necessary based on available size and bar width.
Fractional percentage, 0.0 - 1.0. The given value is clamped to this range.
Clears all stored values.
Evaluates string value to a number, divides by 100 and calls (@link addValue} with the result.
Draws the bar graph onto ctx
using rect
dimensions positioning the graph and scaling the height of the bars.
Width of each bar section, in pixels.
Maximum width, in pixels, into which the bars need to fit (or height if an orientation option is added). Typically this is the size of the icon/image being drawn. Values that would cause the graph to draw beyond this extent are removed from the stored values array.
Draws a values series as a basic vertical bar graph onto a canvas context.