Logo
NeoArc Studio

Chart Block

Add interactive ECharts-powered charts to documentation pages. Supports bar, line, area, donut, gauge, and stacked bar charts with configurable data, palettes, and styling.

The Chart block renders interactive, SVG-based charts directly on content pages. Powered by ECharts, it supports seven chart types, five colour palettes, and manual data entry via a spreadsheet-style grid. Charts render identically in the editor preview, published sites, and PDF exports.

Chart Types

Each chart type is suited to a different data story. Choose the type that best communicates your data's meaning.

Chart TypeBest ForExample Use Case
Vertical BarComparing categories side by sideEntity count per group in a data model
Horizontal BarRanking items, especially with long labelsProperties per entity, sorted by count
LineTrends over time or sequential dataSprint velocity over 12 sprints
AreaCumulative or stacked trendsCumulative test coverage across releases
Donut / PieProportional breakdown of a wholeGovernance classification distribution
Stacked BarComposition within each categoryProperty types per entity (string, number, boolean)
GaugeSingle percentage or KPIEncryption coverage, test pass rate

Example: Vertical Bar Chart

A vertical bar chart comparing entity counts across domain groups. Each bar is coloured individually for visual distinction.

Example: Horizontal Bar Chart

Horizontal bars work well when category labels are long. This example shows the top 10 entities ranked by property count.

Example: Line Chart

Line charts are ideal for showing trends. This example tracks sprint velocity and bug count over time with two series.

Example: Area Chart

Area charts emphasise volume and accumulation. This example shows cumulative test coverage across four releases.

Example: Donut Chart

Donut charts show proportional breakdowns. This example visualises the governance classification distribution across all model properties.

Example: Stacked Bar Chart

Stacked bars show composition within each category. This example breaks down property types per entity.

Example: Gauge Chart

Gauges display a single percentage or KPI. Colour changes automatically: green above 80%, amber between 50-80%, red below 50%.

Colour Palettes

Five palettes are available. The default palette uses the NeoArc brand colours. Each palette is designed for a different visual context.

PaletteCharacterBest For
DefaultIndigo-led, balanced mix of distinct huesGeneral-purpose charts, most documentation
WarmAmber, orange, red, rose tonesEmphasis, alerts, governance and risk data
CoolBlue, cyan, teal, green tonesTechnical metrics, performance data, calm visuals
MonochromeSingle hue (indigo) with lightness variationPrint-friendly output, formal reports, PDF exports
CustomUser-defined hex coloursBrand-specific or client-facing documentation

Palette Comparison

The same data rendered with each built-in palette.

Multi-Series Charts

Bar, line, and area charts support multiple series. Each series gets its own colour from the palette. The legend activates automatically when more than one series is present.

Block Properties

PropertyRequiredDescription
Chart TypeYesOne of: bar-vertical, bar-horizontal, line, area, donut, stacked-bar, gauge
TitleNoChart heading displayed above the chart
LabelsYesCategory labels for the x-axis (or pie segments)
SeriesYesOne or more named data series, each with a values array
Show LegendNoDisplay the legend (default: true, auto-enabled for multi-series)
Show ValuesNoDisplay data values directly on the chart (default: false)
Colour PaletteNoOne of: default, warm, cool, monochrome, custom
Custom ColoursNoArray of hex colour strings (only when palette is 'custom')
X-Axis LabelNoLabel for the horizontal axis
Y-Axis LabelNoLabel for the vertical axis
HeightNoChart height in pixels (default: 350)

When to Use

Best Practices

Related

  • Chart Row Block - display multiple charts in a responsive dashboard row
  • Text + Chart Block - pair narrative text alongside a chart
  • Model Narrative Reports - auto-generated charts from model data