Bar Chart

A bar chart is a graphical representation that displays and compares discrete data categories using rectangular bars. Each bar's length or height is proportional to the frequency or value of its corresponding category, allowing users to identify which groups are the highest or most common and compare them with others.

Specifications

Bar chart design specifications
Bar chart design specifications

Anatomy

Bar chart anatomy
  1. 1.
    Title - This is a DxcHeading level=2 component
  2. 2.
    Filter - This is a DxcSelect component
  3. 3.
    Graph
  4. 4.
    Legend

Design tokens

Color

We have carefully selected various shades from our color palette to be used in data visualization. Accessibility has been a key consideration in this selection, ensuring that these colors are distinguishable for all users.

Bar chart color palette
Categorical colorCore tokenValue
color-categorical-01color-purple-500#A46EDE
color-categorical-02color-blue-600#0095FF
color-categorical-03color-green-700#24A148
color-categorical-04color-red-500#FE344F
color-categorical-05color-yellow-800#947705
color-categorical-06color-orange-700#C26C0A
color-categorical-07color-purple-600#7D2FD0
color-categorical-08color-blue-800#0067B3
color-categorical-09color-green-900#135325
color-categorical-10color-red-700#D0011B
color-categorical-11color-yellow-900#624F04
color-categorical-12color-orange-800#915108