Skip to content

Commit

Permalink
fixed gallery examples with wrong smoothness
Browse files Browse the repository at this point in the history
  • Loading branch information
LukaOber committed Oct 3, 2024
1 parent 35da065 commit 11f81d5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion gallery/src/line/distribution_of_electricity.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
10 changes: 5 additions & 5 deletions gallery/src/line/gradient_stacked_area.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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(
Expand All @@ -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(
Expand All @@ -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(
Expand All @@ -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]),
)
}
2 changes: 1 addition & 1 deletion gallery/src/line/smoothed_line.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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]),
)
}

0 comments on commit 11f81d5

Please sign in to comment.