Custom visualizations are a Beta feature.This means we have limited documentation and support. We may also change the way these options work in the future.

Known limitations

These new Vega-lite powered charts offer enhanced flexibility and a broader range of visualizations, but there are important limitations to be aware of, particularly concerning interactivity and dashboard integration like:
  • Drill-Down Functionality: The ability to drill into metrics by grouping them with dimensions (e.g., “Drill by”) is not available in Custom Charts.
  • View Underlying Data: Users cannot click on data points within Custom Charts to view the underlying records that compose those data points.
  • Cross-Filtering: Interactive filtering across dashboard tiles by selecting elements within a chart (also known as cross-filtering) is not supported in Custom Charts.

Quickstart

The steps to create a custom chart are as follows:
1

Gather your data

Return the data you need for your chart as normal using the Lightdash UI to select relevant dimensions and metrics.
2

Switch to custom chart

Head to the chart configuration options, in the drop down, you should see an option for custom charts as long as it has been enabled.
3

Write your config

Select a template to load a sample configuration for the chart selected, or grab an example.
Tip: LLMs are great at updating Vega Lite configs
Below are some example chart config templates that we got working in Lightdash, along with some tips on when to use each chart type.

Vega templates

Bar chart

You can already do this with presets in Lightdash, but it’s a simple example you should be able to get working quickly. This chart works best with simple string or date dimensions and a numeric metric

Sankey-style bar chart

Use this chart when you want to show how parts of a whole change across categories or time and you want to visualize how individual segments flow from one stage to the next. It’s perfect for things like user cohorts, funnel stages, or survey responses over time. Any scenario where it’s helpful to track how groups move or shift between steps.

Heatmaps

This chart works best with string or date dimensions and a numeric metric as color. The config below will output a heatmap with the standard Vega-Lite settings that looks like this:

Bubble Plots

Bubble plots build on top of standard scatter plot visualizations, by allowing you to adjust the size of a given point based on the output of a field. Here’s one looking at some Healthcare data. This chart works best with string or date dimensions and a numeric metric for the y-axis and another numeric metric for the size. The config below will output a bubble plot with the standard Vega-Lite settings, like this:

Funnel charts

Funnel charts are ideal for visualizing a flow or process where the quantity decreases step-by-step, such as sales pipelines, conversion rates, or order processes. Each stage is represented as a bar whose width reflects the corresponding value. This chart works best when you have a categorical dimension (like a status or step name) and a numeric metric (such as order amount or count) to measure at each step. This chart works best with a string dimension (like status or step name) and a numeric metric (such as order amount or count) to measure at each step.
TIP: If you add extra dimensions, the funnel chart will not render correctly.
This is just a sample of the template. Funnel chart configurations are a bit more complex than other charts, so we recommend loading the template directly in Lightdash instead of copying this code manually. The template will automatically map your data fields into the configuration. The config below will output a funnel chart with the standard Vega-Lite settings that looks like this: Custom funnel chart

Waterfall charts

Waterfall charts are used to show how an initial value is affected by a series of positive and negative changes over time or across different categories. They are perfect for visualizing how different factors contribute to a total, like revenue changes, customer growth, or budget breakdowns. Each bar represents a step: increases are shown in one color (e.g. green), decreases in another (e.g. red), and the final total in a third (e.g. blue).
  • This chart works best with string or date dimensions for the x-axis (like a year or stage) and two numeric metrics for the y-axis: one representing the starting point and the other representing the ending point. The difference between these two values defines the height and direction (increase or decrease) of each bar.
  • Additionally, you could use a string dimension to color the bars.
The config below will output a waterfall chart with the standard Vega-Lite settings, like this: Custom Waterfall

Map charts

Map charts are perfect for visualizing data that has geographic coordinates, such as customer locations, sales regions, or shipment routes. They combine a background map (usually countries, states, or regions) with your data points overlaid as markers. This chart works best when you have latitude and longitude fields or a TopoJSON lookup with some ID or unique lookup name to plot the points on the map, and a numeric metric to adjust the size of each point or color gradient (like total sales or number of customers).

World map country bubbles

In this example, the base world map is drawn using a TopoJSON file of countries, and data points are plotted as circles, with their size based on the total order amount. The config below will output a map chart with the standard Vega-Lite settings, like this: Custom Map Chart

USA counties choropleth

To load additional maps, you can specify a full URL on the data layer, and adjust the projection if needed, for example, below is the code for a county-level map of the United States. The config below will output a map chart like this: Custom map USA

Trellis area chart

Trellis Area charts (also called small multiples or faceted area charts) are used to compare trends across multiple categories over time, with each category shown in its own mini chart. They’re perfect for spotting patterns, outliers, or seasonality within individual segments, like: product lines, user groups, or marketing channels, without crowding everything into a single chart. Trellis Area charts are especially helpful when you want to emphasize the shape of trends rather than exact values. The code below will give you a trellis area chart like this: Custom trellis area chart

More examples

You can find more examples on the Vega lite official website.