Vertical Bar

Vertical Bar charts compare different items or the same item over time.

Vertical Bar

Guidelines

Use When

  • Representing information compared against other information, such as with a point-in-time Return Chart.
  • Representing information compared against itself over time, such as with quarterly returns.

Don′t Use When

Visual Language

  • Never use colors other than those defined in the visualization palette.
  • Always use the relevant color orders and meanings from the visualization palette.
  • When there is the possibility of negative values within a chart, use vertical grey bands to align bars with their corresponding x-axis labels.
  • When using long X-axis labels that cannot be shortened, consider enabling X-axis label wrapping and truncation by setting wrapXAxisLabels: true with the chart configuration.

Legend

  • At chart container widths of 600px or less, the internal padding between elements tightens. This is the default width for this behavior to occur, the width can be adjusted by setting the breakpoint parameter.
  • When the legend is at the top and contains more items than fit in the available space, the full legend is accessible within a Popover triggered by an Icon-Only Button.
The Icon-Only Button provides access to the full legend within a Popover.
  • The Popover containing the full legend includes logic to prevent it from overlapping the chart unless there is no space available to the right of, or above, the data visualization.
The Popover containing the full legend has three potential positions based on the space available to the right of, and above, the chart.

Responsiveness

  • Vertical bar charts will resize to fill the available space. Avoid using them at widths below 200px and heights below 150px to prevent axis value/label collision and clipping.
  • Set the breakpoint parameter to control the width of the chart container (in pixels) at which the X-axis shows only the first and last X-axis value. By default, it is set to 600.
  • When displaying discrete categories teams should limit the number of categories and/or the length of labels to ensure adequate space.

Editorial

  • Use the “Abbreviated” Y-Axis Label ,y1abbreviation, for things like currency abbreviations or other short labels, up to a maximum of 10 characters. Anything longer than that should use the “Full” Y-Axis Label, y1AxisLabel.
  • Include single characters, such as a “$”, at the beginning of the maximum Y-axis value. However, a “%” sign after the value should be moved to the “Abbreviated” Y-Axis label, y1abbreviation, to avoid offsetting the alignment of the Y-Axis text.
  • Strive for short, succinct axis labels and legend items that clearly describe the data.
  • Include the unit or increment in axis labels.

Code Reference

Necessary code documentation can be found in the MBC repository.

©2019 Morningstar, Inc. All rights reserved. Terms of Use