gpui-component/crates
Floyd Wang 0d167f61e5
plot: Add support for stacked chart (#1681)
## Description

- Add `stack` shape.
- Add `ordinal` scale.
- Add plot docs.

<img width="337" height="424" alt="SCR-20251126-puzm"
src="https://github.com/user-attachments/assets/eff9e2d0-c13a-449a-b717-9568e0c2f88d"
/>

## Breaking change
The bar shape `y0` value is now returned for each data item.

```diff
- Bar::new().y0(height)
+ Bar::new().y0(move |_| height)
+ Bar::new().y0(move |d| d.height)
```
2025-11-26 10:24:57 +00:00
..
assets chore: Update to use Rust edition 2024. (#1669) 2025-11-24 14:38:43 +08:00
macros chore: Update to use Rust edition 2024. (#1669) 2025-11-24 14:38:43 +08:00
reqwest_client chore: Update to use Rust edition 2024. (#1669) 2025-11-24 14:38:43 +08:00
story plot: Add support for stacked chart (#1681) 2025-11-26 10:24:57 +00:00
ui plot: Add support for stacked chart (#1681) 2025-11-26 10:24:57 +00:00