PAD Charts
All charts/Line

A share price over a year

Twelve months of a stock, from a YAML file.

1 The data _data/shares.yaml yaml
# The closing price on the last trading day of each month
- month: Jan
  price: 182.40
- month: Feb
  price: 176.10
- month: Mar
  price: 190.85
- month: Apr
  price: 205.30
- month: May
  price: 198.75
- month: Jun
  price: 214.20
- month: Jul
  price: 229.65
- month: Aug
  price: 221.10
- month: Sep
  price: 236.40
- month: Oct
  price: 248.95
- month: Nov
  price: 243.30
- month: Dec
  price: 261.80
2 The chart tag line/shares.pad pad
{chart 'line', data='shares', label='month', value='price', title='Closing price per month', width=640, height=340}
3 The result inline SVG · no JavaScript
Closing price per month Jan: 182.4; Feb: 176.1; Mar: 190.85; Apr: 205.3; May: 198.75; Jun: 214.2; Jul: 229.65; Aug: 221.1; Sep: 236.4; Oct: 248.95; Nov: 243.3; Dec: 261.8 0 100 200 300 Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec Jan: 182.4 Feb: 176.1 Mar: 190.85 Apr: 205.3 May: 198.75 Jun: 214.2 Jul: 229.65 Aug: 221.1 Sep: 236.4 Oct: 248.95 Nov: 243.3 Dec: 261.8