Skip to content

Commit fa15f08

Browse files
committed
added nuc reaction as label
1 parent 4ba2889 commit fa15f08

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/sauce/home.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ pub fn plot_component(props: &PlotProps) -> Html {
5555
for (i, (energy, cross_section)) in cache.energy_values.iter().zip(&cache.cross_section_values).enumerate() {
5656
if cache.checkbox_selected[i] {
5757
let trace = Scatter::new(energy.clone(), cross_section.clone())
58-
.name(&format!("Scatter Plot {}", cache.labels[i]));
58+
.name(&format!("{}", cache.labels[i]));
5959
plot.add_trace(trace);
6060
}
6161
}
@@ -166,7 +166,7 @@ async fn get_values_by_id(id: i32) -> Result<(Vec<f64>, Vec<f64>, String), reqwe
166166
console::log_1(&serde_wasm_bindgen::to_value("downloaded data").unwrap());
167167
console::log_1(&serde_wasm_bindgen::to_value(&downloaded_reaction_data).unwrap());
168168

169-
let label = entry.element.clone();
169+
let label = entry.element.clone() + entry.nucleons.to_string().as_str() + " " + entry.reaction.as_str(); // + " " +entry.library.as_str() +" " + entry.temperature.as_str();
170170
Ok((downloaded_reaction_data.energy_values, downloaded_reaction_data.cross_section_values, label))
171171
}
172172

0 commit comments

Comments
 (0)