Horizontal Bar Chart

A horizontal bar chart ideal for ranked lists and comparisons with long category labels. Supply category-value pairs via JSON.

Template details

  • chart
  • bar
  • horizontal
  • ranking
  • comparison
  • d3

When to use this template

A horizontal bar chart excels at visually comparing the magnitudes of different categories and quickly identifying the top or bottom performers in a ranked list. Analysts use it to highlight relative differences and order when category labels are lengthy or when the primary goal is to show how items stack up against each other.

  • Categorical data with associated quantitative values.
  • Datasets where each item belongs to a single, distinct category.
  • Moderate number of categories (e.g., 5-20) for clear readability.
  • Category labels that are descriptive and may vary in length.
  • Data where the primary insight is the ranking or comparison of values.
  • Values representing counts, percentages, or other measurable quantities.

Browse all Koan templates