Skip to content

BarChart ​

Wolfram's own BarChart, held inert -- the expression is what a worksheet or REPL draws, not something this library computes (see @enumeratio/formats/src/graphics.ts).

Wolfram LanguageBarChart
BarChart(...)Wolfram's own BarChart, held inert -- the expression is what a worksheet or REPL draws, not something this library computes (see @enumeratio/formats/src/graphics.ts).
Typed signatures
TypePackageApplies
(any*) -> anyformatsalways

Domain: Graphics·Drawn as Graphics

Examples

Basic #

A value list with category labels and a title

live ↗
InBarChart([12,19,7,15,10],(Labels,[Mon,Tue,Wed,Thu,Fri]),(Label,Daily commits))\mathrm{BarChart}(\bigl\lbrack12, 19, 7, 15, 10\bigr\rbrack, (\mathrm{Labels},\bigl\lbrack\text{Mon}, \text{Tue}, \text{Wed}, \text{Thu}, \text{Fri}\bigr\rbrack), (\mathrm{Label},\text{Daily commits}))OutBarChart([12,19,7,15,10],(Labels,[Mon,Tue,Wed,Thu,Fri]),(Label,Daily commits))\mathrm{BarChart}(\bigl\lbrack12, 19, 7, 15, 10\bigr\rbrack, (\mathrm{Labels},\bigl\lbrack\text{Mon}, \text{Tue}, \text{Wed}, \text{Thu}, \text{Fri}\bigr\rbrack), (\mathrm{Label},\text{Daily commits}))

Negative values dip below the baseline

live ↗
InBarChart([3,−2,5,−1,4])\mathrm{BarChart}(\bigl\lbrack3, -2, 5, -1, 4\bigr\rbrack)OutBarChart([3,−2,5,−1,4])\mathrm{BarChart}(\bigl\lbrack3, -2, 5, -1, 4\bigr\rbrack)
About
Examples2
CrosswalkWolfram Language