Bar

Compare categories with room for readable labels.

Import
@neural-charts/angular/cartesian
Data
column

Live demo

Container width

The chart fits its available space automatically. Choose a width to simulate a different container.

Animation
240ms
Long labelsReadable category names without using labels as identities.00252550507575100100International organic acquisitionInternationalorganicacquisitionReturning customers from direct trafficReturningcustomersfrom direct …Partner recommendations and referralsPartnerrecommendat…and referralsCommunity and social campaignsCommunityand socialcampaignsVisitsVisits

Long labels

Readable category names without using labels as identities.

Original data
SeriesCategory XidxyVisible
This weekInternational organic acquisitionchannel-0channel-084Yes
This weekReturning customers from direct trafficchannel-1channel-161Yes
This weekPartner recommendations and referralschannel-2channel-245Yes
This weekCommunity and social campaignschannel-3channel-328Yes
Previous weekInternational organic acquisitionchannel-0channel-069Yes
Previous weekReturning customers from direct trafficchannel-1channel-154Yes
Previous weekPartner recommendations and referralschannel-2channel-238Yes
Previous weekCommunity and social campaignschannel-3channel-320Yes

Tap a data point or explore it with the pointer or keyboard.

Configurator

Adjust the presentation and interaction of this example.

Chart elements and interaction
Chart toolbar
  1. CSV
  2. PNG
  3. SVG

Interactive examples

Open a chart to explore its data, try its options and copy its code.

When to use it

Use horizontal bars for rankings and longer category labels. Preserve a meaningful order and use text labels alongside colour.

Chart API · Bar

Expand a property to learn when to use it, see its public type, and find examples where applicable.

Data

The property data.type for this family is column.

Bars share the column data contract. Set layout.orientation to horizontal to choose the orientation.

Appearance

Customize presentation while keeping series and point identities stable.

Family options

Axes and grid

Data types and domains determine the scale. Use options.axes to change its presentation.

Legend

Tooltip

Customize the tooltip with code →

Interaction and state

Identify the selection and hidden series by ID.

Animation

Complete options and events reference

Explore the data

Select an observation with the pointer or enter the chart with Tab. Arrow keys navigate the data; Home and End move to the endpoints. Enter or Space selects, and Escape closes the detail.

The data table retains original values, including missing values and hidden series. A repeated label does not merge separate categories. Manual screen reader review remains pending.

Accessibility guide

Example data

Copy the current input object with its original identifiers and values.