This commit is contained in:
Simon Gardling
2022-03-03 08:36:38 -05:00
parent ebd2ea14cd
commit 0b29af8515
2 changed files with 4 additions and 4 deletions

View File

@@ -457,9 +457,9 @@ impl epi::App for MathApp {
if let Some(bars_data) = bars {
let (bar_chart, area) = bars_data;
plot_ui.bar_chart(bar_chart.color(Color32::BLUE).width(step));
return digits_precision(area, 8);
digits_precision(area, 8)
} else {
return f64::NAN;
f64::NAN
}
})
.collect();