Pacioli

A statically typed unit-aware matrix language

View project on GitHub

Line Chart

The line chart web component plots a value as a line.

The pacioli-line-chart Component

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

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

Common

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.

Line Chart

caption
A title for the chart
unit
Unit of measurement to display the value in. Must be compatible with the value's unit.
xunit
Unit of measurement in the x-direction. Overrides unit.
yunit
Unit of measurement in the y-direction. Overrides unit.
label
Label on the y-axis
xlabel
Label on the x-axis
ylower
Start of the y-axis range
yupper
End of the y-axis range
rotate
Rotate the labels on the x-axis
smooth
Smoothen the line
norm
If present a horizontal line at the given line is drawn
xticks
Ticks on the x-axis
yticks
Ticks on the y-axis