The Dynamic Box Plot Chart component visualizes statistical data using box plot diagrams, allowing users to analyze distributions, outliers, and summary statistics. It supports both mock and real data sources, and can be customized visually and functionally for various use cases.
customTooltipTemplate: true will use a custom tooltip component for each box plot item.useMockData
Determines whether the chart displays mock data or fetches real data from a data source. When true, the chart uses predefined mock data for demonstration or development purposes.
Example:
useMockData: true will show sample box plot data instead of live data.
chartConfiguration
Configures the box plot chart’s settings, such as axis, series, and constant lines. This property is required and should match the expected configuration model.
Example:
{
"dataPathExpression": "seriesData",
"constantLinesExpression": "constantLines",
"constantLines": [
{ "label": { "text": "Median" }, "value": 50 }
]
}
dataSourceId
Specifies the ID of the data source from which the chart fetches its data. This should match a configured data source in your system.
Example:
dataSourceId: "salesDataSource"
getEntityCollectionHttpRequestParametersMap
Configures HTTP request parameters for fetching data from the data source. This allows mapping of query, path, or body parameters as needed by the backend API.
Example:
{
"QUERY": { "year": 2025 },
"PATH": {},
"BODY": {}
}
{
"ON_INIT": [{ "action": "log", "params": { "message": "Chart initialized" } }],
"ON_DESTROY": [{ "action": "cleanup" }]
}
[
{ "type": "DynamicBoxPlotChartTooltipTemplateComponent", "props": { "text": "Custom Tooltip" } }
]
displayName
Sets the display name of the component, shown in the structure panel.
Example:
displayName: "Monthly Sales Box Plot"
id
Specifies a unique identifier for the component.
Example:
id: "boxPlotChart1"
The chart expects an array of box plot series data, each with fields for name, high, low, median, q1, and q3.
Example data:
[
{
"name": "Q1",
"high": 100,
"low": 20,
"median": 60,
"q1": 40,
"q3": 80
},
{
"name": "Q2",
"high": 120,
"low": 30,
"median": 70,
"q1": 50,
"q3": 90
}
]
If using mock data, the chart will display a predefined set of such objects.
This manual provides a structured overview of the Dynamic Box Plot Chart component, with each property explained, categorized, and accompanied by usage examples.