Repository navigation
Chart: Update DiscretePointsAggregation Demo Desc. - #36249
arman-boyakhchyan wants to merge 3 commits into
Conversation
There was a problem hiding this comment.
🟡 Changes recommended
The description implies gray maximum-reference bars are visible in Sum mode, but taller overlapping sum bars hide them.
1 open issue
What changed in this PR
Updates the Chart discrete-point aggregation demo description to explain its oil-production data, overlapping bars, and aggregation controls. No runtime code changes.
Changes:
- Replaces generic setup steps with demo-specific explanations of aggregation, tooltips, and available methods.
- Clarifies common aggregation settings and the gray series’ maximum-value override.
| File | Description |
|---|---|
| apps/demos/Demos/Charts/DiscretePointsAggregation/description.md | Rewrites the demo explanation and configuration guidance. |
Review effort: Balanced
|
|
||
| - Individual series | ||
| Assign `true` to the [series](/Documentation/ApiReference/UI_Components/dxChart/Configuration/series/).[aggregation](/Documentation/ApiReference/UI_Components/dxChart/Configuration/series/aggregation/).[enabled](/Documentation/ApiReference/UI_Components/dxChart/Configuration/series/aggregation/#enabled) property. | ||
| This demo displays monthly crude oil production in six US states. The Chart creates a series for each year, so every series contains twelve values per state. Without aggregation, the Chart draws these values as twelve overlapping bars in the same position. Aggregation replaces them with a single bar. |
There was a problem hiding this comment.
Currently, sounds like a bug. Correct me if my edit is wrong.
| This demo displays monthly crude oil production in six US states. The Chart creates a series for each year, so every series contains twelve values per state. Without aggregation, the Chart draws these values as twelve overlapping bars in the same position. Aggregation replaces them with a single bar. | |
| This demo displays monthly crude oil production in six US states. The Chart creates a series for each year, so that every series contains twelve values per state. Without aggregation, the Chart draws these values as twelve stacked bars in the same position. Aggregation replaces them with a single bar. |
There was a problem hiding this comment.
"Overlapping" is the correct word here, "Stacked" bars are a separate concept: https://js.devexpress.com/Documentation/ApiReference/UI_Components/dxChart/Series_Types/StackedBarSeries/
|
|
||
| In this demo, data aggregation is enabled for all series. | ||
| - **Aggregation enabled** | ||
| Clear this checkbox to display source data. All twelve monthly bars overlap and look like a single bar as tall as the highest monthly value. The tooltip displays the month for the bar under the mouse pointer, and this month changes as you move the pointer along the bar. |
There was a problem hiding this comment.
How about this?
| Clear this checkbox to display source data. All twelve monthly bars overlap and look like a single bar as tall as the highest monthly value. The tooltip displays the month for the bar under the mouse pointer, and this month changes as you move the pointer along the bar. | |
| Uncheck this checkbox to display original (source) data as stacked bars. The tooltip displays the bar's month on hover. |
There was a problem hiding this comment.
That is not quite accurate. Each bar you see in this demo is in fact 12 overlapping bars (one for each month of the year). Tooltips are displayed for individual months only (when aggregation is disabled)
| - **Method** | ||
| Select the value that aggregated bars display: average, sum, or minimum. Gray bars in the background display the monthly maximum for comparison when average or minimum is selected. | ||
|
|
||
| You can apply common aggregation settings to all series. Activate [aggregation](/Documentation/ApiReference/UI_Components/dxChart/Configuration/commonSeriesSettings/aggregation/).[enabled](/Documentation/ApiReference/UI_Components/dxChart/Configuration/commonSeriesSettings/aggregation/#enabled) in [commonSeriesSettings](/Documentation/ApiReference/UI_Components/dxChart/Configuration/commonSeriesSettings/) and specify an aggregation [method](/Documentation/ApiReference/UI_Components/dxChart/Configuration/commonSeriesSettings/aggregation/#method). Individual [series](/Documentation/ApiReference/UI_Components/dxChart/Configuration/series/aggregation/) settings override these common settings. In this demo, the gray series always use the *"max"* aggregation method. |
There was a problem hiding this comment.
| You can apply common aggregation settings to all series. Activate [aggregation](/Documentation/ApiReference/UI_Components/dxChart/Configuration/commonSeriesSettings/aggregation/).[enabled](/Documentation/ApiReference/UI_Components/dxChart/Configuration/commonSeriesSettings/aggregation/#enabled) in [commonSeriesSettings](/Documentation/ApiReference/UI_Components/dxChart/Configuration/commonSeriesSettings/) and specify an aggregation [method](/Documentation/ApiReference/UI_Components/dxChart/Configuration/commonSeriesSettings/aggregation/#method). Individual [series](/Documentation/ApiReference/UI_Components/dxChart/Configuration/series/aggregation/) settings override these common settings. In this demo, the gray series always use the *"max"* aggregation method. | |
| You can apply common aggregation settings to all series. Activate [aggregation](/Documentation/ApiReference/UI_Components/dxChart/Configuration/commonSeriesSettings/aggregation/).[enabled](/Documentation/ApiReference/UI_Components/dxChart/Configuration/commonSeriesSettings/aggregation/#enabled) option in [commonSeriesSettings](/Documentation/ApiReference/UI_Components/dxChart/Configuration/commonSeriesSettings/) and specify an aggregation [method](/Documentation/ApiReference/UI_Components/dxChart/Configuration/commonSeriesSettings/aggregation/#method). Individual [series](/Documentation/ApiReference/UI_Components/dxChart/Configuration/series/aggregation/) settings override these common settings. |
There was a problem hiding this comment.
The "gray series" here refers to the background bar, should we not describe it here?
There was a problem hiding this comment.
We've mentioned this in the previous paragraph. I don't think we should repeat the idea.
Co-authored-by: Elena Khamliuk <80813840+khamlyuk@users.noreply.github.com> Signed-off-by: Arman Boyakhchyan <arman.boyakhchyan@devexpress.com>

No description provided.