Skip to content

Commit

Permalink
fixed gallery with wrong smoothness
Browse files Browse the repository at this point in the history
  • Loading branch information
LukaOber authored and yuankunzhang committed Oct 7, 2024
1 parent 5d2bef8 commit 4997501
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion gallery/src/line/area_pieces.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ pub fn chart() -> Chart {
)
.series(
Line::new()
.smooth(0.6)
.smooth(true)
.symbol(Symbol::None)
.line_style(LineStyle::new().width(5).color("#5470C6"))
.area_style(AreaStyle::new())
Expand Down
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)
.connect_nulls(true)
.data(vec![
Some(300),
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 4997501

Please sign in to comment.