Methods
createCategoryChart(canvas, data)
Creates a chart containing the categories (category name, combined amount of
transactions belonging to that category) as dataset.
Parameters:
Name | Type | Description |
---|---|---|
canvas |
string | The id of the canvas element which contains the chart. |
data |
array | The input data. |
- Source:
createChart(canvas, data)
Creates a chart in a given canvas to visualize the input data.
Parameters:
Name | Type | Description |
---|---|---|
canvas |
string | The id of the canvas element which contains the chart. |
data |
array | The input data. |
- Source:
createEarnSpendChart(canvas, data)
Creates a chart containing the earnings and spendings per day.
Parameters:
Name | Type | Description |
---|---|---|
canvas |
string | The id of the canvas element which contains the chart. |
data |
array | The input data. |
- Source:
createMonthlySurplusChart(canvas, data)
Creates a chart containing the monthly surpluses for all budgets combined.
Parameters:
Name | Type | Description |
---|---|---|
canvas |
string | The id of the canvas element which contains the chart. |
data |
array | The input data. |
- Source:
createTransactionChart(canvas, data)
Creates a chart containing the transactions (name, amount) as dataset.
Parameters:
Name | Type | Description |
---|---|---|
canvas |
string | The id of the canvas element which contains the chart. |
data |
array | The input data. |
- Source: