From 11f81d5bc0ce6862371c96645232f0f9e4b2ee4f Mon Sep 17 00:00:00 2001 From: LukaOber Date: Thu, 3 Oct 2024 12:19:27 +0200 Subject: [PATCH] fixed gallery examples with wrong smoothness --- gallery/src/line/distribution_of_electricity.rs | 2 +- gallery/src/line/gradient_stacked_area.rs | 10 +++++----- gallery/src/line/smoothed_line.rs | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/gallery/src/line/distribution_of_electricity.rs b/gallery/src/line/distribution_of_electricity.rs index 1bdbafa..9fe05be 100644 --- a/gallery/src/line/distribution_of_electricity.rs +++ b/gallery/src/line/distribution_of_electricity.rs @@ -51,7 +51,7 @@ pub fn chart() -> Chart { .series( Line::new() .name("Electricity") - .smooth(0.5) + .smooth(true) .data(vec![ 300, 280, 250, 260, 270, 300, 550, 500, 400, 390, 380, 390, 400, 500, 600, 750, 800, 700, 600, 400, diff --git a/gallery/src/line/gradient_stacked_area.rs b/gallery/src/line/gradient_stacked_area.rs index cbf15c3..ad90574 100644 --- a/gallery/src/line/gradient_stacked_area.rs +++ b/gallery/src/line/gradient_stacked_area.rs @@ -61,7 +61,7 @@ pub fn chart() -> Chart { }) .opacity(0.8), ) - .smooth(0.5) + .smooth(true) .data(vec![140, 232, 101, 264, 90, 340, 250]), ) .series( @@ -84,7 +84,7 @@ pub fn chart() -> Chart { }) .opacity(0.8), ) - .smooth(0.5) + .smooth(true) .data(vec![120, 282, 111, 234, 220, 340, 310]), ) .series( @@ -107,7 +107,7 @@ pub fn chart() -> Chart { }) .opacity(0.8), ) - .smooth(0.5) + .smooth(true) .data(vec![320, 132, 201, 334, 190, 130, 220]), ) .series( @@ -130,7 +130,7 @@ pub fn chart() -> Chart { }) .opacity(0.8), ) - .smooth(0.5) + .smooth(true) .data(vec![220, 402, 231, 134, 190, 230, 120]), ) .series( @@ -153,7 +153,7 @@ pub fn chart() -> Chart { }) .opacity(0.8), ) - .smooth(0.5) + .smooth(true) .data(vec![220, 302, 181, 234, 210, 290, 150]), ) } diff --git a/gallery/src/line/smoothed_line.rs b/gallery/src/line/smoothed_line.rs index e23cf8e..e173d7b 100644 --- a/gallery/src/line/smoothed_line.rs +++ b/gallery/src/line/smoothed_line.rs @@ -10,7 +10,7 @@ pub fn chart() -> Chart { .y_axis(Axis::new().type_(AxisType::Value)) .series( Line::new() - .smooth(0.5) + .smooth(true) .data(vec![820, 932, 901, 934, 1290, 1330, 1320]), ) }