PAD Charts
All charts/Bars

From revenue to profit

waterfall: each step floats from where the one before ended.

1 The chart tag and its data bars/waterfall.pad pad
{chart 'waterfall', label='step', value='amount', total='Profit', title='From revenue to profit, in thousands', width=640, height=340}
  step,amount
  Revenue,420
  Cost of sales,-180
  Salaries,-120
  Rent,-24
  Tax,-35
  Subsidy,12
{/chart}
2 The result inline SVG · no JavaScript
From revenue to profit, in thousands Revenue: +420; Cost of sales: -180; Salaries: -120; Rent: -24; Tax: -35; Subsidy: +12; Profit: 73 0 100 200 300 400 500 Revenue: +420 +420 Revenue Cost of sales: -180 -180 Salaries: -120 -120 Salaries Rent: -24 -24 Tax: -35 -35 Tax Subsidy: +12 +12 Profit: 73 73 Profit