All charts/Bars
Profit and loss
Negative values hang below the baseline.
1 The data _data/profit.json json
[
{ "quarter": "Q1 '23", "result": 42 },
{ "quarter": "Q2 '23", "result": 18 },
{ "quarter": "Q3 '23", "result": -25 },
{ "quarter": "Q4 '23", "result": -11 },
{ "quarter": "Q1 '24", "result": 15 },
{ "quarter": "Q2 '24", "result": 37 },
{ "quarter": "Q3 '24", "result": 56 }
]
2 The chart tag bars/profit.pad pad
{chart 'column', data='profit', label='quarter', value='result', title='Result per quarter, in thousands', width=640, height=340}
3 The result inline SVG · no JavaScript