
Charts are powerful tools for presenting data and communicating information effectively. In ActiveCalculator, you can use various types of charts to display values over time, compare categories, or show the composition of a whole. Our platform supports a range of chart types, including line charts for showing trends, bar charts for comparing categories, and pie charts for displaying the composition of a whole.
To add a Charts question to your calculator, follow these steps:
Note: The chart will include placeholder data for the horizontal axis labels and the dataset. Please clear this data before proceeding to build your chart.

Options.

Once you've added the Charts question, you can customize its settings to fit your specific requirements:


ActiveCalculator supports the following chart types:
Choose the chart type that best suits your use case. You can switch between chart types at any time.


Here's an example of a formula you can use to create horizontal labels:
unknown nodeIf you're building a loan calculator and want the labels to display the separate years in the loan term, where the loan term is set by the question QA, this function will output an array/list (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, ..., 360) when the loan term is set to 30 years (totalPayments=30).
totalPayments is another custom variable we created with the formula @loanTerm (loan term in year) * 12.


For comprehensive instructions on using custom variables in your calculations, please visit our detailed guide on custom variables.
In ActiveCalculator, you can create a dataset using custom and built-in functions. The formula outputs will provide you with a list of results. For example:
The combination of the following built-in and custom functions:
unknown nodewill give the output [10, 20, 30, 40, 50, 60], which can be used as data for a chart. The function consists of three parts:
x * 10 will be repeated for each value in the array (2) via the MAP function (1).Here's a more complex example using the above steps for a solar savings calculator:
unknown nodeTo use your dynamic dataset formula and apply it to charts:

Now, in the right sidebar settings panel, under "Datasets":



For more information on building dynamic datasets, check out our Solar Savings Calculator template. This template is quite advanced, as the calculations of the datasets overlap. You need results from one dataset to calculate the other.
To see the Charts question in action, check out the example form we created:
You can find out more about creating a solar savings calculator template here.
The chart types in ActiveCalculator offer several advanced options:


Toggle this option if you want to control whether the Charts question is shown or hidden under certain circumstances. If the result of the visibility formula is TRUE or a number above 0, the question is visible. If the result is FALSE or 0, it's hidden.
For more information on logic settings and show/hide logic, refer to our help article on conditional visibility of calculator input fields.
In the Stacked Bar chart type, you can define groups in the dataset options to stack the bar chart. If you use one group for all datasets, they will be stacked together. If you use two or three groups (e.g., group 1, group 2) across four datasets, with two datasets belonging to group 1 and two belonging to group 2, it will create a clustered stacked bar chart.


You can easily integrate or embed ActiveCalculator's powerful charts and graphs on your website platform, even if it doesn't have a strong chart or graph builder. Simply create your chart or graph within ActiveCalculator and embed it onto your platform by copying and pasting a single line of code. Any updates made to your data will be automatically reflected in your embedded charts and graphs.
ActiveCalculator is powerful enough to handle complex datasets and has the functionality to manipulate the data to get the outcomes you need. You can also create dynamic charts for website forms, like mortgage calculators, where the chart changes based on user input. ActiveCalculator supports various user input methods, such as radio buttons, sliders, dropdown lists, and numerical fields.
Q: How do I clear the placeholder data in a new Charts question? A: Simply delete the pre-filled data in the horizontal axis labels and dataset fields before building your own chart.
Q: Can I use different scales for different datasets? A: Yes, you can enable the "Use right y-axis" option for a specific dataset to display it on a separate scale on the right side of the chart.
Q: How can I create a clustered stacked bar chart? A: In the Stacked Bar chart type, define multiple groups in the dataset options. Assign each dataset to a group, and the chart will display as a clustered stacked bar chart.
Did this answer your question?