Skip to content

SVG shapes ​

SVG shapes: the d of arcs, ticks and pies around an element, and of ranges and ticks along a bar, in any group.

ExportWhat it does
createSvgArcPathCreates the d of an arc around the center of an element, in any group: the track of a gauge around its hub.
createSvgArcTicksPathCreates the d of evenly spaced graduations along an arc, around the center of an element in any group: count intervals give count + 1 ticks.
createSvgBarRangePathCreates the d of the part of a bar between two ratios, across its whole thickness, in any group: the fill level of a bar graph (0 to the value) or a threshold zone.
createSvgBarTicksPathCreates the d of evenly spaced graduations along a bar, in any group: count intervals give count + 1 ticks, across the bar from one of its sides.
createSvgPiePathCreates the d of a pie slice joined to the center of an element, in any group: a radar sector, a remaining-time disk, to fill.
getSvgArcPointFinds a point along an arc, in the coordinates of an element of any group: where to put the label of a graduation or a marker.
SvgArcAn arc around the center of an element, for createSvgArcPath and its siblings (0° up, clockwise).
SvgBarA bar gauge laid on the box of an element, for createSvgBarRangePath and createSvgBarTicksPath.

Generated from the JSDoc of the sources.