Chart Block

published

Data visualization block supporting bar, line, pie, and area charts

Fields

ChartBlock
Data visualization block with multiple chart types
chartTypeselectRequiredThe type of chart to render. Options: bar, line, pie, area.
datajsonRequiredThe chart data in JSON format. Structure varies by chart type — see examples below.
titletext🌐 LocalizedChart title displayed above the visualization.
descriptiontext🌐 LocalizedA brief description or caption displayed below the chart title. Automatically translated to all 6 locales.
showLegendbooleanWhether to display a legend identifying data series. Defaults to true.

Chart Types

Bar Chart

Best for comparing quantities across categories (e.g., member states by region, budget allocation by department).

Line Chart

Best for showing trends over time (e.g., broadband adoption rates over 10 years, annual conference attendance).

Pie Chart

Best for showing parts of a whole (e.g., percentage of global spectrum allocation by service type). Use only when you have a small number of categories (5 or fewer).

Area Chart

Similar to line charts but with a filled area beneath the line. Good for visualizing cumulative values or comparing volumes over time.

The data field requires valid JSON. If your chart is not rendering, check that the JSON is properly formatted. Work with your web team if you need help structuring the data for a specific visualization.

Always add a title and description to your charts. The description is translated automatically and helps readers in all languages understand what the data represents. Keep the legend enabled (showLegend defaults to true) unless the chart has only one data series.