
Live result on the frontend
Video walkthrough
How the example is built, in under two minutes. English audio and subtitles.
What it calculates
A visitor enters the amount, the interest rate and the term. The workbook returns:
- Monthly payment, total repaid and total interest — plus the share of interest.
- Line chart — how the outstanding balance goes down year after year.
- Stacked bar chart — how each year's payments are divided between principal and interest.
How it’s built
There is no PHP code. The Spreadsheet screen holds the workbook, three input mappings (cells B3 to B5) and four output mappings (cells B7 to B10).
Both charts use Spreadsheet cells as data source, so they point straight at the yearly table: labels in Loan!A14:A43 and values in columns B, C and D. They are read after the workbook has been recalculated.
The table reserves 30 rows. For shorter loans the remaining cells are empty, and Calc Builder ignores empty cells at the end of a range: the chart gets exactly one point per year.
Charts require the Calc Builder version that includes the Charts screen.

The charts as your visitors see them.

The Charts screen: type, data source, labels and data series of each chart.

The Exit Layout: each ##chart_name## tag marks where a chart is drawn.

The Spreadsheet screen: the workbook and the moment in which it is calculated.

Input mapping: each variable is written into a cell before the workbook recalculates.

The input form, styled with the Form Layout.
Want this exact example on your own site?
Download the file above, then in your Joomla admin open Components › CalcBuilder › Import and upload it — it’s the same file you’d get from that component’s own Export button, charts included.
The Excel workbook travels inside the export file, so the import also restores it together with its cell mappings. The separate download is there if you want to open or edit it.

CalcBuilder example · Charts · Intermediate