MMTMMT Docs
Diagnostics

T447

horizontal histogram targets a non-category panel

T447

Horizontal histograms require keyed category placement. Use a chart panel with axis: axis.category, directly or through a pane. Choices based on inputs are checked after the settings are applied.

Failing example

script "conf"
plot h = plot.histogram(horizontal: true)

Corrected example

script "fixed"
window w = window() { main: chart.panel(axis: axis.category) }
plot h = plot.histogram(horizontal: true, on: w.main)

On this page