gpui-component/crates/ui/src/chart
Floyd Wang 78dccd4d79
plot: Apply linear scale based on the direction of given range (#1219)
## Breaking Change
- Apply linear scale based on the direction of given range.

```diff
- ScaleLinear::new(vec![1., 2., 3.], vec![0., 100.])
+ ScaleLinear::new(vec![1., 2., 3.], vec![100., 0.])
```

Currently, you can draw the linear scale from minimum to maximum or from
maximum to minimum; it depends on the direction of the range.
2025-09-08 15:56:58 +08:00
..
area_chart.rs plot: Apply linear scale based on the direction of given range (#1219) 2025-09-08 15:56:58 +08:00
bar_chart.rs plot: Apply linear scale based on the direction of given range (#1219) 2025-09-08 15:56:58 +08:00
line_chart.rs plot: Apply linear scale based on the direction of given range (#1219) 2025-09-08 15:56:58 +08:00
mod.rs chart: Introduce chart (#878) 2025-06-04 19:22:11 +08:00
pie_chart.rs plot: Use f32 instead of f64 (#1052) 2025-07-08 16:24:59 +08:00