Skip to content

Charts

Drizzle Cube provides a comprehensive set of chart components for data visualization in your analytics dashboards. All charts are designed to work seamlessly with Cube.js-compatible data and provide interactive, responsive visualizations.

Compare values across categories

Bar Chart

Use Case: Best for comparing discrete categories, showing rankings, or displaying changes over time

Display Options:

OptionTypeDescription
showLegendbooleanShow/hide chart legend
showGridbooleanShow/hide grid lines
showTooltipbooleanShow/hide hover tooltips
stackedbooleanStack bars for grouped data

Show trends and changes over time

Line Chart

Use Case: Best for continuous data, trends, time series, and showing relationships between multiple series

Display Options:

OptionTypeDescription
showLegendbooleanShow/hide chart legend
showGridbooleanShow/hide grid lines
showTooltipbooleanShow/hide hover tooltips

Emphasize magnitude of change over time

Area Chart

Use Case: Best for showing cumulative totals, volume changes, or stacked comparisons over time

Display Options:

OptionTypeDescription
showLegendbooleanShow/hide chart legend
showGridbooleanShow/hide grid lines
showTooltipbooleanShow/hide hover tooltips
stackedbooleanStack areas for grouped data

Show proportions of a whole

Pie Chart

Use Case: Best for showing percentage distribution or composition of a total (limit to 5-7 slices)

Display Options:

OptionTypeDescription
showLegendbooleanShow/hide chart legend
showTooltipbooleanShow/hide hover tooltips

Reveal correlations between variables

Scatter Chart

Use Case: Best for identifying patterns, correlations, outliers, and relationships between two measures

Display Options:

OptionTypeDescription
showLegendbooleanShow/hide chart legend
showGridbooleanShow/hide grid lines
showTooltipbooleanShow/hide hover tooltips

Compare multiple metrics across categories

Radar Chart

Use Case: Best for multivariate comparisons, performance metrics, strengths/weaknesses analysis

Display Options:

OptionTypeDescription
showLegendbooleanShow/hide chart legend
showGridbooleanShow/hide grid lines
showTooltipbooleanShow/hide hover tooltips

Circular progress and KPI visualization

Radial Bar Chart

Use Case: Best for showing progress toward goals, KPIs, or comparing percentages in a compact form

Display Options:

OptionTypeDescription
showLegendbooleanShow/hide chart legend
showTooltipbooleanShow/hide hover tooltips

Visualize hierarchical data with nested rectangles

Tree Map Chart

Use Case: Best for showing part-to-whole relationships in hierarchical data, disk usage, budget allocation

Display Options:

OptionTypeDescription
showLegendbooleanShow/hide chart legend
showTooltipbooleanShow/hide hover tooltips

Compare three dimensions of data

Bubble Chart

Use Case: Best for showing relationships between three variables (X, Y, and size), market analysis

Display Options:

OptionTypeDescription
showLegendbooleanShow/hide chart legend
showGridbooleanShow/hide grid lines
showTooltipbooleanShow/hide hover tooltips
minBubbleSizenumberMinimum bubble size
maxBubbleSizenumberMaximum bubble size
bubbleOpacitynumberTransparency of bubbles

GitHub-style activity grid showing temporal patterns

Activity Grid Chart

Use Case: Best for visualizing activity patterns over time, contribution calendars, and temporal heatmaps

Display Options:

OptionTypeDescription
showLabelsbooleanShow/hide date labels
showTooltipbooleanShow/hide hover tooltips
colorIntensitystringIntensity of color coding

Display detailed tabular data

Data Table

Use Case: Best for precise values, detailed analysis, sortable/filterable data exploration

Display Options:

OptionTypeDescription
(No display options)

Display key performance indicators as large numbers

KPI Number

Use Case: Perfect for showing important metrics like revenue, user count, or other key business metrics in a prominent, easy-to-read format

Display Options:

OptionTypeDescription
prefixstringText to display before the number
suffixstringText to display after the number
decimalsnumberNumber of decimal places to display
valueColorIndexnumberColor from dashboard palette for the KPI value

Display key performance indicators as customizable text

KPI Text

Use Case: Perfect for showing metrics with custom formatting, combining multiple values, or displaying contextual KPI information using templates

Display Options:

OptionTypeDescription
templatestringTemplate for displaying text. Use ${value} to insert measure value
decimalsnumberNumber of decimal places to display for numeric values
valueColorIndexnumberColor from dashboard palette for the KPI value text

Display custom markdown content with formatting

Markdown Chart

Use Case: Perfect for adding documentation, notes, instructions, or formatted text to dashboards

Display Options:

OptionTypeDescription
contentstringMarkdown text content
accentColorIndexnumberColor from dashboard palette for headers, bullets, and links
fontSizestringOverall text size (small, medium, large)
alignmentstringHorizontal alignment (left, center, right)