Pacioli

A statically typed unit-aware matrix language

View project on GitHub

Bar Chart

The bar chart web component displays a vector or a list of key value pairs as a bar chart.

The pacioli-bar-chart Component

The pacioli-bar-chart element adds a Pacioli bar chart to a web page.

<pacioli-bar-chart definition="..."></pacioli-bar-chart>

The value can be

  • a vector
  • a list of (string, number) pairs

Common Attritubes

definition
Name of the value or function to display
width
Width of the pacioli component.
height
Height of the pacioli component.
margin
Margin used around charts. For example margin="10,10,10,10"
decimals
Number of decimals for numbers. Default is 2.
zero
String to display for zero values
raw
Ignore number of decimals and display numbers with relevant digits.
exponential
Display numbers in exopnential format.

Bar Chart Attritubes

caption
A title for the chart
unit
Unit of measurement to display the value in. Must be compatible with the value's unit.
xlabel
Label on the x-axis
ylabel
Label on the y-axis
ylower
Start of the y-axis range
yupper
End of the y-axis range
padding
Distance between the bars