Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
Dynamic (or interactive) charts have the ability to change when you change the scope of data. In other words, dynamic charts can automatically reflect changes when the data source is changed. To trigger the change in the data source, you can use the filtering option of Excel tables or a control such as a ComboBox or dropdown list.
This article demonstrates the usage of Aspose.Cells for .NET APIs to create dynamic charts using both of the aforementioned approaches.
ListObjects provide built‑in functionality to sort and filter the data upon user interaction. Both sorting and filtering options are provided through the drop‑down lists that are automatically added to the header row of the ListObject. Due to these features (sorting and filtering), the ListObject seems to be the perfect candidate to serve as the data source for a dynamic chart because when sorting or filtering is changed, the representation of data in the chart will be changed to reflect the current state of the ListObject.
To keep the demonstration simple to understand, we will create the Workbook from scratch and move forward step by step as outlined below.
If you do not wish to use the ListObject as a data source for the dynamic chart, another option is to use Excel functions (or formulas) to create a dynamic range of data, along with a control (such as a ComboBox) to trigger the change in data. In this scenario, we will use the VLOOKUP function to fetch the appropriate values based on the selection of the ComboBox. When the selection is changed, the VLOOKUP function will refresh the cell value. If a range of cells is using the VLOOKUP function, the whole range can be refreshed upon user interaction; therefore, it can be used as a source for the dynamic chart.
To keep the demonstration simple to understand, we will create the Workbook from scratch and move forward step by step as outlined below.
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.