GridChart
12 Sep 20251 minute to read
Provides functionality to render, update, and destroy charts linked to a Grid instance.
Methods
initDialogUI
Initializes the dialog UI for the “Chart” options.
This function attaches a dialog with custom components to the target element within the grid,
using selected records for dynamic data representation.
| Parameter | Type | Description |
|---|---|---|
| args | ChartPopupArgs |
specifies the dialog properties. |
| beforeDestroy (optional) | Function |
– defines the destroy function which is executed before the dialog close. |
Returns Promise
refresh
Updates the chart with new data or settings.
| Parameter | Type | Description |
|---|---|---|
| changes | ChartChanges |
Defines the changes to apply for the chart. |
Returns void
render
Renders a chart using the specified grid selection and chart configuration.
| Parameter | Type | Description |
|---|---|---|
| chartPopupArgs | ChartPopupArgs |
Contains information about the selected grid records and chart type. |
| chartModel | ChartChanges |
Chart configuration model. |
| categorySeries | CategorySeries |
Defines the chart category and series. |
Returns void