The Barcomponent is available in the nivo
HTTP rendering API.
The API generates a SVG and return a path to this SVG
which can then be easily embedded.
The api accepts almost the same properties as the regular component, in json, however it's not interactive and you cannot use code in properties (functions).
Please note that the demo API server is installed on heroku using a free plan, so it might be unavailable from times to times.
no response available
Chart data.
'id'Key to use to index the data.
'value']Keys to use to determine each serie.
'stacked'How to group bars.
'vertical'How to display bars.
value scale configuration.
index scale configuration.
falseReverse bars, starts on top instead of bottom for vertical layout and right instead of left for horizontal one.
'auto'Minimum value.
'auto'Maximum value.
Optional formatter for values.
0.1Padding between each bar (ratio).
0Padding between grouped/stacked bars.
Chart width for non-responsive component.
Chart default width for responsive component.
Chart height for non-responsive component.
Chart default height for responsive component.
Debounce width/height updates for responsive component.
A callback for when responsive component is resized.
'Depends on device'Adjust pixel ratio, useful for HiDPI screens.
Chart margin.
Ref to the chart's container. Used on this page to generate/download the chart's image via html-to-image.