GaugeChart
Default
Title
The title
prop will render text under the chart value.
Note: You may need to make the chart larger to accommodate the title using the chartDiameter
prop.
Show drop shadow
The showDropShadow
prop will render a container around the chart with a drop-shadow.
Legend
The showLegend
prop will render a legend below the chart.
Note: If you need more customization around the layout of the legend you can build one with the ChartLegend
components.
Custom label
The valueLabel
prop can be used to render a custom label instead of the numeric value.
Custom colors and ranges
The colorRanges
prop allows you to customize the colors and ranges of the chart.
Note: The upperbound
and lowerbound
values in the prop overlap for math purposes, but the displayed uppperbound
will be minus one.
Ranges with labels
A label
can be provided in each range passed to the colorRanges
prop. This label will be rendered instead of the numeric value.
Show ticks
When color ranges are provided, the showTicks
prop will render ticks on the chart to indicate the boundaries between ranges.
Show marker
A circular marker can be displayed at the end of the colored line with the showMarker
prop.