- 05 Feb 2026
- 3 Minutes to read
- Print
- DarkLight
- PDF
Deck.gl Charts
- Updated on 05 Feb 2026
- 3 Minutes to read
- Print
- DarkLight
- PDF
deck.gl is a powerful WebGL-powered data visualization library. It allows complex visualizations to be constructed by composing existing layers, and makes it easy to package and share new visualizations as reusable layers. Preset offers 10 deck.gl charts in its chart picker.

deck.gl integration with Preset is primarily maintained by open source Superset. You are welcomed to contribute to updates to deck.gl integration.
Customizing and Extending deck.gl Charts
deck.gl provides various chart layers, each with its own set of props and customization options. Read on to learn about customization or can explore the deck.gl documentation for further information about controls.
Custom Tooltips
Customize the appearance and content of tooltips on deck.gl map visualizations using Handlebars templates. This feature allows you to create rich, styled tooltips that display exactly the information you need.
Supported Chart Types
Custom tooltips are available on all deck.gl chart types:
- deck.gl 3D Hexagon
- deck.gl Arc
- deck.gl Contour
- deck.gl Geojson
- deck.gl Grid
- deck.gl Heatmap
- deck.gl Path
- deck.gl Polygon
- deck.gl Scatterplot
- deck.gl Screen Grid
Configuring Custom Tooltips
- Open your deck.gl chart in the Chart Builder
- In the Query section, locate the Tooltip contents field
- Add the columns and/or metrics you want to display in your tooltip
- Once you add content, you’ll see them in the Customize tooltips template field.
- Modify your tooltip using Handlebars syntax to customize the display
- Click Update chart to preview your changes
Template Syntax
Custom tooltips use Handlebars templating. Reference your columns and metrics using double curly braces:
<div style="padding: 10px;">
<strong>{{ column_name }}</strong>: {{ metric_name }}
</div>
Example: For a scatterplot with STREET as a column and occupancy as a metric:
<div style="background: #2c3e50; color: white; padding: 12px; border-radius: 4px;">
<h4 style="margin: 0 0 8px 0;">{{ STREET }}</h4>
<p style="margin: 0;">Occupancy: {{ occupancy }}</p>
</div>
.png)
Styling Your Tooltips
You can use inline CSS styles within your template to customize the appearance:
<div style="
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
padding: 16px;
border-radius: 8px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
font-family: system-ui, sans-serif;
">
<div style="font-size: 18px; font-weight: bold; margin-bottom: 8px;">
{{ location_name }}
</div>
<div style="font-size: 14px;">
Value: {{ metric_value }}
</div>
</div>
Aggregated Data in Grid-Based Charts
Grid, Screengrid, and Heatmap charts aggregate multiple data points into each cell. When you add a column to Tooltip contents, the template auto-generates with a limit helper:
{{ limit occupancy 10 }}
Note: Because each cell may contain many data points, the tooltip shows only a sample of values, not the full aggregated total.
Color Scheme Controls
Configure how colors are applied to your deck.gl visualizations based on your data. You can choose from fixed colors, palettes, or custom breakpoints to control how metric values map to colors on your map.
Supported Chart Types
Fixed color, Categorical palette, and Color breakpoints:
- deck.gl Grid
- deck.gl 3D Hexagon
- deck.gl Scatterplot
- deck.gl Polygon
Fixed color and Categorical palette:
- deck.gl Screengrid
- deck.gl Arc
- deck.gl Heatmap
Color Scheme Types
When editing a deck.gl chart, the Color Scheme Type dropdown offers up to three options depending on the chart type:
- Fixed color: A single color applied to all data points. Useful for simple visualizations where color differentiation isn't needed.
- Categorical palette: Distinct colors assigned to categorical dimension values. Select a dimension column to color data points by category.
- Color breakpoints: Custom color ranges at specific thresholds you define. This gives you precise control over which colors appear at which values.
Configuring Color Breakpoints
- Open your deck.gl chart in Explore
- In the chart controls, locate Color Scheme Type
- Select Color breakpoints
- Click + Add Breakpoint to define your first threshold
- For each breakpoint, configure:
- Min Value: The lower bound of the range
- Max Value: The upper bound of the range
- Color: The color to apply for values in this range
- Add additional breakpoints as needed
- Click Update chart to apply your changes
.png)
Example: Population Density Map
To visualize population density with three distinct color bands:
- Add a breakpoint: Min
0, Max100, Color green → Low density areas - Add a breakpoint: Min
100, Max500, Color yellow → Medium density areas - Add a breakpoint: Min
500, Max10000, Color red → High density areas
.png)