Skip to content

Draw single bars

When there is nothing to compare, such as build times per platform for one release, name a single party. pcmp then draws single bars.

title = "COLD BUILD TIME"
unit = "SECONDS"
better = "lower"
subtitle = "SAMPLE DATA, RELEASE PROFILE"
date = "2026-10-11"
suffix = " S"
decimals = 0
notes = ["SAMPLE DATA FOR THIS README: ONE PARTY DRAWS AS SINGLE BARS."]
[[parties]]
name = "RELEASE BUILD"
[[groups]]
name = "LINUX X86_64"
rows = [{ label = "LIBRARY", values = [38] }, { label = "COMMAND", values = [52] }]
[[groups]]
name = "WINDOWS X86_64"
rows = [{ label = "LIBRARY", values = [61] }, { label = "COMMAND", values = [84] }]
[[groups]]
name = "MACOS ARM64"
rows = [{ label = "LIBRARY", values = [29] }, { label = "COMMAND", values = [41] }]

decimals = 0 writes every value as a whole number. By default a value below 100 gets one decimal and one from 100 up gets none.

$ pcmp build.toml
build-bars.png

Single bars: cold build time per platform for one release build, in three groups

--kind bars on data with several parties draws each party alone, named after the party:

$ pcmp speed.toml --kind bars --out charts
charts/speed-bars-parser-v2.png
charts/speed-bars-parser-v1.png

A party’s name becomes lower case with dashes in the file name. A name with no letters or digits, or one that another party already took, is numbered by its place among the parties instead, such as speed-bars-2.png for the second.