rsx! { if let Some(Some(record)) = &*records.read_unchecked() { { let (label, value): (Vec, Vec) = 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 } } } } }