1234567891011121314 |
- rsx! {
- if let Some(Some(record)) = &*records.read_unchecked() {
- {
- let (label, value): (Vec<String>, Vec<f64>) = record
- .iter()
- .rev()
- .map(|d| (d.model.clone().expect("work"), d.row_total))
- .collect();
- rsx! {
- BarChart { id: "bar-plot".to_string(), x: value, y: label }
- }
- }
- }
- }
|