AI authored to showcase ironpad capabilities.
Plot 📊ironpad includes a built-in Plot helper that makes it easy to create charts. Under the hood it uses the plotters crate, but you don't need to set up backends or boilerplate — just call Plot::line, Plot::bar, or Plot::scatter.
All charts render as SVG with a dark theme that matches ironpad's UI.
Use Plot::bar with (&str, f64) pairs. Great for categorical data.
Use Plot::scatter for visualizing point distributions. You can also customize the chart size with .size(width, height).
Since Plot produces an Svg, you can combine it with data output using tuples. The data flows to the next cell, and the chart displays alongside it.
Plot supports two opt-in features for richer charts:
.tooltips(true) — adds hover tooltips to each data point (rendered as SVG <title> elements)..point_labels(true) — draws the numeric value directly on each point or bar.Both are off by default. Try hovering over the scatter points below, or reading the values on the bar chart!