Carbon Design System (2024)

Legends summarize the distinguishing visual properties such as colors or textureused in the visualization. A legend or key helps the user build the necessaryassociations to make sense of the chart.

Note: This guidance is a work in progress. To see our roadmap, make featurerequests, or contribute, please go to carbon-chartsGitHub repository.

  • Usage
  • Position
  • Interactions

Usage

When possible, avoid using a legend and label data representations directly.Legends rely on visual association, which can make a chart more difficult tounderstand.

Your chart doesn’t need a legend if it only presents one data category. Onlyuse a legend if you can’t safely assume there will be enough space to applylabels directly.

Use clear language and avoid acronyms in legends. This also applies totitles and axis labels.

Carbon Design System (1)

Remove legends to simplify the chart when only one data category is needed oronly one color is used.

Carbon Design System (2)

In-chart labels are ideal for charts with predictable data and ample emptyspace.

Color and texture

Chart legends use color as the default distinguishing property for data sets andvalues. Texture can be used instead of, or in addition to, color to make yourchart accessible for users with visual impairment.

Position

The legends are positioned at the

bottom

Copy to clipboard

of a chart by default. Depending onthe page’s layout and context, you may choose to position the legends at the

top

Copy to clipboard

, under the chart title,

left

Copy to clipboard

or

right

Copy to clipboard

of a chart with respect to thegraph frame.

Bottom (default) and top

Position the legend at the bottom or top of a chart in situations where space isscarce, such as a dashboard.

Carbon Design System (4)

Carbon Design System (5)

Left

Position the legend to the left of the chart when better type alignment isneeded. Be sure the surrounding elements of the chart are not too closelyclustered.

Carbon Design System (6)

Right

Position the legend to the right of the chart when space is plentiful, or whenyou would like to provide the maximum context. In mobile, the legend couldrevert to a stack.

Carbon Design System (7)

Overlay (geospatial only)

In geospatial charts, legends can be overlayed on top of a graph frame as longas the legend has a background opacity of 80% of the chart’s background color.Since geospatial charts can vary drastically in appearance, the legend can beplaced on either side of the chart, top- or bottom-aligned, whatever bestaccommodates the content.

To demonstrate the legend’s background opacity, we chose to place the legend atthe top left in the chart below. See the Master data visualization design filefor more detail about geospatial legends.

Carbon Design System (8)

Interactions

Hover to highlight

Hovering over the legend of one category lowers the opacity of all othercategories in the chart to 30 percent.

Carbon Design System (9)

Click to isolate

Clicking on the legend of one category isolates the information, hiding allother categories. The legend gets a checkmark on click, switching to a selectedstate.

Carbon Design System (10)

Carbon Design System (11)

When all categories are selected, checkmarks in legends disappear and the legendresets to its default state.

Carbon Design System (12)

Hidden legends

Please note that hiding legends is discouraged in data visualizations unlessonly one category of data is displayed. This design is for mobile displays whereoffering legends at a glance is less essential. In general, hiding legendsreduces the clarity of the visualization and is inaccessible.

Carbon Design System (13)

When legends are hidden, a “View legends” button is added so users can surfacethe legend on tap.

Carbon Design System (14)

When clicking on “View legends”, a modal with a list of legends appears withoptions to toggle each data category on and off.

Legend overflow

Up to two lines of legends are displayed by default. Clicking on View moreexpands the legend area to show all legends. A legend should not be taller than30 percent of the chart’s height.

Carbon Design System (15)

Carbon Design System (16)

When legends exceed 30 percent of the chart, overflow the content and scrollvertically.

Carbon Design System (17)

Carbon Design System (18)

Carbon Design System (2024)
Top Articles
Manchester City and Manchester United: The Story Behind Manchester’s Two Teams [2024 ]
Surfshark vs NordVPN: co jest lepsze w 2024 roku? - Surfshark
Cranes For Sale in United States| IronPlanet
Average Jonas Wife
Frederick County Craigslist
Ret Paladin Phase 2 Bis Wotlk
Craigslist Parsippany Nj Rooms For Rent
Comcast Xfinity Outage in Kipton, Ohio
Toyota gebraucht kaufen in tacoma_ - AutoScout24
Emmalangevin Fanhouse Leak
Osrs But Damage
Deshret's Spirit
Jessica Renee Johnson Update 2023
Purple Crip Strain Leafly
Craigslist Cars Nwi
2021 Lexus IS for sale - Richardson, TX - craigslist
Slope Tyrones Unblocked Games
History of Osceola County
Khiara Keating: Manchester City and England goalkeeper convinced WSL silverware is on the horizon
Missed Connections Dayton Ohio
Lcwc 911 Live Incident List Live Status
Race Karts For Sale Near Me
Full Standard Operating Guideline Manual | Springfield, MO
Katie Sigmond Hot Pics
Free Personals Like Craigslist Nh
Anonib Oviedo
Rgb Bird Flop
Bfri Forum
Gideon Nicole Riddley Read Online Free
Haley Gifts :: Stardew Valley
John F Slater Funeral Home Brentwood
Acadis Portal Missouri
Tirage Rapid Georgia
The Transformation Of Vanessa Ray From Childhood To Blue Bloods - Looper
Ksu Sturgis Library
Pepsi Collaboration
Atlanta Musicians Craigslist
Miracle Shoes Ff6
Emily Tosta Butt
Craigslist Odessa Midland Texas
Sarahbustani Boobs
Courses In Touch
Craigslist Com St Cloud Mn
Iupui Course Search
Interminable Rooms
3500 Orchard Place
Gonzalo Lira Net Worth
Abigail Cordova Murder
Game Like Tales Of Androgyny
Nfhs Network On Direct Tv
Ocean County Mugshots
Anthony Weary Obituary Erie Pa
Latest Posts
Article information

Author: Wyatt Volkman LLD

Last Updated:

Views: 5960

Rating: 4.6 / 5 (46 voted)

Reviews: 93% of readers found this page helpful

Author information

Name: Wyatt Volkman LLD

Birthday: 1992-02-16

Address: Suite 851 78549 Lubowitz Well, Wardside, TX 98080-8615

Phone: +67618977178100

Job: Manufacturing Director

Hobby: Running, Mountaineering, Inline skating, Writing, Baton twirling, Computer programming, Stone skipping

Introduction: My name is Wyatt Volkman LLD, I am a handsome, rich, comfortable, lively, zealous, graceful, gifted person who loves writing and wants to share my knowledge and understanding with you.