Examples
- Basic Usage
- Series
- Highlight and Format
Properties
Required
One entry per column, in order. See NeoChartPoint.
Content
Names for the bars in each column. With names, every column draws one bar per name. A value missing from a point counts as 0, and extra values are left out. Two or more names add a legend. Without names, each column draws as many bars as the point with the most values.
A
NumberFormat from package:intl for the values. The readout shows the full value. The axis shows a compact form of the same format, such as 12K for 12,400. Defaults to NumberFormat.decimalPattern() for the current locale.What a screen reader hears. When null, it hears the first and last column, such as “Mon 12, Fri 15”.
Styling
Mutes every bar except the highest (
.max) or lowest (.min). Hovering or selecting a bar takes over from the highlight. Nothing is highlighted when all values are equal.State
NeoChartPoint
One column of the chart.NeoChartPoint()
One bar.The bar’s value. A negative value draws below the zero line.
NaN and infinite values count as 0.NeoChartPoint.group()
One bar per series. Pair it withseries on the chart.
Enums
NeoChartHighlight
Which barhighlight keeps in color.
max: The highest value.min: The lowest value.
Best Practices
- Keep to four series or fewer. The colors repeat from the fifth series.
- Set
semanticLabelwhen the first and last column do not sum up the chart.
Behavior
- Hover a column, or drag across the columns on touch, to see a readout with the label and each series’ value.
- Tap a bar or its column label to select it. The other bars dim, and the readout stays. Tap it again, or empty space in the chart, to clear the selection. Tap a legend item to select that series.
- Bars grow in from the zero line, and new values animate from the old bars. With reduced motion, bars are drawn at once.
- A parent with a fixed height sets the height. Otherwise the chart is 240 high (
NeoBarChart.fallbackExtent) within the parent’s limits. The chart fills the width it gets. - When column labels would collide, the chart shows every few labels at an even step, starting with the first. The readout still names each column.
- Series colors come from the theme’s
brandandink. - Inside a
NeoSkeleton, the bars become bones.

