Commit 268fcc0
authored
feat: streamgraph and fit functions on stacked charts (#751)
This commit adds the wiggle and silhouette stacks mode as available in vislib that allow the creation of streamgraph. It is also to fix fit functions for stacked charts. The commit also add the following fixes:
- fit functions are now available also on stacked charts
- the legend extra value is now displayed, on-demand, only on charts with a continuous x-axis
- Adjusts slightly the way fitted data is represented in the case of null values and no fit option specified. It renders an empty area in this case
- for zero-based charts (bar and area charts) the fit option doesn't have any effects
- djusts the clipped ranges for ordinal charts, where the lines where wrongly clipped due to a missing translate call when rendering
BREAKING CHANGE: the first parameter of `PointStyleAccessor` and `BarStyleAccessor` callbacks is changed from `RawDataSeriesDatum` to `DataSeriesDatum`. `stackAsPercentage` prop is replaced by `stackMode` that accept one `StackMode`.
fix #766
fix #715
close #4501 parent 4455281 commit 268fcc0
230 files changed
Lines changed: 7400 additions & 4040 deletions
File tree
- api
- integration/tests
- __image_snapshots__
- src
- chart_types/xy_chart
- domains
- renderer/canvas
- primitives
- rendering
- specs
- state/utils
- __snapshots__
- utils
- __snapshots__
- components/tooltip
- mocks
- series
- specs
- renderers/canvas
- utils
- data_samples
- stories
- area
- bar
- mixed
- streamgraph
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
0 commit comments