Graphs are essential in any finance or property-related report, or any website article that introduces various payment schedules. Because we required an effective means for our clients to showcase simple graphs on their website, and because we required a suitable means of generating custom graphs for use in our customer Venus Report (in addition to those that contextual graphs that will be submitted to your website via our article submission program), we built a very simple-to-use API to return the most common financial graphs as images. This article introduces the basic API, usage via shortcode, and the Elementor plugin.
A number of amortized graphs provide monthly or fortnightly breakdowns into an image so they can be easily used in your online promotional material (such as website articles). An example is as follows:
Available graphs are as follows:
- Principle line graph
- Interest line graph
- Principle & interest line graph
- Loan balance line graph
- Cumulative interest line graph
- Principle & interest stacked bar graph
- Principle & interest amortisation table
The graphs support any rate, period, additional repayments, and frequency. A full list of API parameters are as follows:
The standard endpoint is:
Standard response looks like this:
Clients can include the graph into a WordPress post or page with attributes equivalent to the API parameters. So, if you wanted to include the principal and interest line graph as shown above you would use the following shortcode:
[loancalc gt="pilg" a="400000" i="3" y="30"].
The API makes the request, imports the image into your WordPress library, and each subsequent request for the image will reference your local image.
If you're a client, or you're using our standalone Elementor plugin, inserting a graph into your post or page is exceedingly simple. Simply drag the widget into your page, fill in the required fields, and you're done. The image is imported into your WordPress installation and referenced for all page views.
Pictured: In those cases where you're using Elementor to build a page, the graph is created via a simple drag-and-drop process. You select the graph, populate the values, and the graph is rendered to your page.
The Mortgage Graph widget is included as a standard tool alongside dozens of others in our client website plugin. It's a simple feature but one that may come in useful when creating your own article content.