Shape

Shape

new Shape()

Source:

A Shape is a data point representation in a graph. This is also used as a point in the legend

Methods

getShapeElement(svgProps, includeViewBoxopt) → {HTMLElement}

Source:

Returns the shape element. Shape element is an svg element containing a path element. The consumer can customize the classNames and styles for the svg and path elements accordingly using the function parameters.

Parameters:
Name Type Attributes Default Description
svgProps object

SVG element attributes loaded by the consumer. This is required parameter for creating a non-generic svg

includeViewBox boolean <optional>
false

Include viewBox in the SVG element or otherwise. False by default

Returns:

an svg element

Type
HTMLElement