RadialGauge

This component is used to create a radial gauge.

Demo

Find a Demoarrow-up-right here

Installation

import { RadialGauge } from 'uxp/components';

Signature

const RadialGauge: React.FunctionComponent<IGaugeProps>

Examples

<RadialGauge
     value={10}
     min={0}
     max={100}
 />
<RadialGauge
     value={10}
     min={0}
     max={100}
     label={() => <>Equipment Heat</>}
     legend={true}
     gradient={true}
     thickness={20}
     largeTick={5}
     smallTick={2}
     colors={[
         {color: 'cyan', stopAt: 12.5},
         {color: 'green', stopAt: 70},
         {color: 'orange', stopAt: 87.5},
         {color: 'red', stopAt: 100},
     ]}

 />

Properties

Name
Type
Mandatory
Default Value
Example Value

min

number

Yes

-

-

max

number

Yes

-

-

value

number

Yes

-

-

colors

Array<{ color: string, stopAt: number }>

No

-

-

label

() => JSX.Element

No

-

-

legend

boolean

No

-

-

tickColor

string

No

-

-

className

string

No

-

-

styles

React.CSSProperties

No

-

-

gradient

boolean

No

-

-

thickness

number

No

-

-

largeTick

number

No

-

-

smallTick

number

No

-

-

backgroundColor

string

No

-

-

labelColor

string

No

-

-

needleColor

string

No

-

-

Last updated