Skip to content

Commit

Permalink
fixing more xlsx crate issues
Browse files Browse the repository at this point in the history
  • Loading branch information
shantharanga committed Sep 3, 2024
1 parent 3cd5bcd commit d8d94ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ impl Results {
.set_align(FormatAlignment::CenterAcross);

// Create a line chart
let mut chart = workbook.add_chart(ChartType::Line);
let mut chart = workbook.unwrap().add_chart(ChartType::Line);

// Set chart title
chart.add_title("Entropy");
Expand All @@ -269,7 +269,7 @@ impl Results {
// Add series to the line chart
chart.add_series(None, Some(
format!("=positions!$D$2:$D${0}", position_iter.len()).as_str())
);
).unwrap();

// Insert the chart
positions_sheet.insert_chart(1, 10, &chart).unwrap();
Expand Down

0 comments on commit d8d94ae

Please sign in to comment.