Intro
Foundations
Components
AvatarBadgeButtonCalloutColorbarDimmerExpanderFilterInputSelectSliderTableTagToggle

Colorbar

A colorbar useful for labeling graphics, maps, and any other places where we use colormaps.

There are several options for styling, including making it horizontal, using discrete values, and setting the width and height.

You can also add a label (with optional units) and limit values, in either vertical or horizontal orientation. These are typically used for figure or map legends.

Label units
0
10
Label units
0
10

If you provide a setClim prop, the colorbar becomes modifiable, allowing you to click and drag the numbers to change the limits of the color scale.

Label units
Label units

A couple other style configurations are possible. For example, here's a version that moves the color limits to the bottom with adjustability, increases their size, removes the label, and fills the width.

EMAIL
hello@carbonplan.org
NEWSLETTER
Subscribe
CarbonPlan is a registered nonprofit public benefit corporation in California with 501(c)(3) status.
(c) 2024 CARBONPLAN
READ OUR TERMS
X,Y: 0000,0000
4a30554