Skip to content

Mini chart

Description

Mini chart is a component for visualizing a small data set or a single value that needs to be highlighted in the interface to assist the user in quickly reviewing data and understanding how the data has changed on the page.

Types

Mini chart has two types:

Mini chart types
typeAppearance exampleDescription
trendUse to show trend from a list of values.
scoreUse to visualize some value or to indicate if something (in per cents or absolute numbers) is good/bad, high/low, above average, etc.

Trend type

Versions of charts with trend type
Chart typeAppearance exampleDescription
Line chartUse to show overall trend over time for a big data set.
Area chartUse to show overall trend over time for a big data set, but when you need to make trend more visible in the interface.
Bar chartUse to show overall trend over time for a small data set.
Histogram chartUse to show overall trend over time for a big data set.

You can show the highest/lowest point if necessary.

Score type

The choice of one of the charts below depends on how visually prominent the value should be in your interface and how much space is actually available.

Versions of charts with score type
Chart typeAppearance example
Donut chart
Semi donut chart (Gauge)
Line gauge chart

Sizes

The component charts have default sizes, but you can set them to those you need, chart will scale to them. For example:

Usage with text

You can place a value with any font size next to a mini-chart. We recommend making margins multiples of our --intergalactic-scale-indent (4px).

States

Mini chart states
StateAppearance exampleDescription
Default
Null dataIf all values on the chart are zero, then show the trend line on the zero axis. Zero counts as data. 0 ≠ n/a.
No available dataIf there are no available data, then show only the "n/a" text for the value.
Initial data loadingWhen the chart is loading for the first time, show Skeleton instead of the chart.

Released under the MIT License.

Released under the MIT License.