[KongchangAI]
· 2 min read· 1,043 words

Datasette Charts 0.5a0 Released: Adds Calendar Heatmap, Box Plot, and Activity Chart

Datasette Charts 0.5a0 Released: Adds Calendar Heatmap, Box Plot, and Activity Chart

Datasette Charts 0.5a0 adds three visualization types: calendar heatmap, box plot, and activity chart.

The Datasette Charts plugin has released version 0.5a0, adding three chart types: calendar heatmap, box plot, and "activity duration" chart. The calendar heatmap uses color intensity to show date density for observing annual activity distribution; box plots characterize value distributions via quartiles for quickly assessing skewness and outliers; the activity chart automatically detects start/end date pairs and counts active records over time, suitable for subscription periods and project timelines. All three continue the plugin's lightweight, exploration-oriented design: users select data columns and the plugin infers and renders the appropriate chart. An official Datasette Lite demo is available, and local installation can be done via pip. Version 0.5a0 is an alpha release with APIs and interactions subject to further adjustment.

From Prototype to Release: Three New Chart Types Arrive

The Datasette Charts plugin has received a 0.5a0 update. After extensive prototype validation, developer Simon Willison has added three new chart types to this data visualization tool: calendar heatmap, box plot, and "activity duration" chart. This update significantly expands Datasette's visualization capabilities for time series and statistical distribution scenarios.

This release continues the Datasette ecosystem's consistent lightweight plugin approach—not aiming to be an all-encompassing chart library, but rather providing targeted visualization solutions around the practical needs of data exploration.

rss source: datasette-charts 0.5a0

Three New Chart Types Explained

Calendar Heatmap: See Date Density at a Glance

The calendar heatmap lays out a year's worth of date data as a calendar grid, using color intensity to represent each day's data density. This chart type is ideal for observing release cadence, user activity patterns, or the annual distribution of event frequency.

The official team provides a demo in Datasette Lite showing the release date distribution of versions across the Datasette package ecosystem. From the demo screenshot, the chart stacks by year with a color scale from light blue to deep navy, and the legend marks three density levels: 0, 5, and 10. The chart shows dense activity in 2024 and the first half of 2025, with a noticeable gap in mid-2025—patterns that are difficult to spot at a glance in a standard line chart.

Box Plot: Grasp the Spread of Value Distributions

Box plots characterize the distribution of a numeric field through quartiles, median, minimum, and maximum values. For exploratory analysis that requires quickly assessing skewness, outliers, or differences between groups, box plots offer a compact and information-rich presentation.

In the Datasette context, this means users can compare distributions of numeric columns directly in the table view without exporting data to other tools.

Box plots were introduced by John Tukey in 1977. Their core is depicting a distribution using five statistics: minimum, first quartile (Q1, 25th percentile), median (Q2), third quartile (Q3, 75th percentile), and maximum. The box spans Q1 to Q3—the interquartile range (IQR)—containing the middle 50% of the data; the line inside the box is the median. Whiskers typically extend to the furthest data points within 1.5× IQR, with points beyond marked individually as outliers. Box plots are sensitive to skewness: if the median leans toward one side of the box or the whiskers are asymmetric, it indicates a skewed distribution. Compared to histograms, box plots are more compact and well-suited for side-by-side comparison of multiple groups.

Activity Chart: Automatically Detects Overlapping Time Intervals

The "activity duration" chart has the most distinctive logic of the three. It automatically detects start/end date pairs in the data and calculates the number of records active during different time periods. This chart type is suitable for subscription periods, project timelines, event durations, and similar scenarios—essentially performing count analysis of overlapping time intervals.

The automatic field-pair detection design lowers the barrier to use: users can obtain an activity curve without manually writing aggregation queries.

Counting overlapping time intervals is a classic problem in interval scheduling. A common solution is the sweep line algorithm: split each interval into a start event (+1) and an end event (-1), sort by time, then accumulate sequentially to get the number of active intervals at each moment. The algorithm has O(n log n) time complexity. Practical implementations must also handle edge cases, such as whether an end and start at the same moment count as overlapping, whether endpoints are inclusive, and how to handle missing start or end values. Datasette Charts automatically detects start/end field pairs and performs these calculations, so users don't need to write SQL or code—lowering the barrier for non-programmers to perform time interval analysis.

Design Philosophy: A Plugin Philosophy for Data Exploration

Datasette Charts is not positioned to replace professional BI tools, but to make the visualization step in the data exploration process as smooth as possible. All three new charts follow the same logic: select data columns, and the plugin infers the appropriate chart type and renders it. The calendar heatmap even supports specifying the number of years to display via options (3 years in the demo), showing that the plugin leaves necessary configuration space while staying simple.

The 0.5a0 alpha version number also indicates this remains an experimental release, with API and interaction details subject to further adjustment. For teams relying on Datasette for data publishing and exploration, it's worth trying early and providing feedback.

Datasette is an open-source data publishing tool initiated by Simon Willison that instantly publishes SQLite databases as web interfaces with browsing, search, and API capabilities. Its plugin system allows functionality to be extended through Python packages, and datasette-charts is one of them. Datasette Lite is a version of Datasette compiled entirely to WebAssembly and running in the browser—no server required to load SQLite files and try plugins, making it an ideal demo environment for new chart features. This "lightweight core + plugin ecosystem" model enables Datasette to flexibly combine capabilities for different data exploration needs without bundling a massive chart library.

How to Try It

The official team provides an online Datasette Lite demo where you can try the calendar heatmap without local installation. For local use, install the plugin via datasette install datasette-charts, and the new chart types become available in the table view.

One-line Summary

Datasette Charts 0.5a0 adds three visualization types: calendar heatmap, box plot, and activity chart.

Paragraph Summary

The Datasette Charts plugin has released version 0.5a0, adding three chart types: calendar heatmap, box plot, and "activity duration" chart. The calendar heatmap uses color intensity to show date density, ideal for observing annual activity distribution; the box plot characterizes value distributions through quartiles and other statistics, making it easy to quickly assess skewness and outliers; the activity chart automatically detects start/end date pairs and calculates the number of active records within time periods, suitable for subscription periods, project timelines, and similar scenarios. All three charts continue the plugin's lightweight, exploration-oriented design philosophy—after users select data columns, the plugin infers and renders the appropriate chart. An official Datasette Lite online demo is available, and local installation can be done via pip. Version 0.5a0 is an alpha release, with API and interactions subject to further adjustment.

#Datasette Charts#calendar heatmap#box plot#activity chart#data visualization#Datasette Lite#Simon Willison
Share:

Related articles