-
-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chart: add initial support for combined charts
Feature request #19
- Loading branch information
Showing
10 changed files
with
288 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
// Copyright 2022-2024, John McNamara, [email protected] | ||
|
||
use crate::common; | ||
use rust_xlsxwriter::{Chart, ChartEmptyCells, ChartSeries, ChartType, Workbook, XlsxError}; | ||
use rust_xlsxwriter::{Chart, ChartSeries, ChartType, Workbook, XlsxError}; | ||
|
||
// Create rust_xlsxwriter file to compare against Excel file. | ||
fn create_new_xlsx_file(filename: &str) -> Result<(), XlsxError> { | ||
|
@@ -31,8 +31,6 @@ fn create_new_xlsx_file(filename: &str) -> Result<(), XlsxError> { | |
// Set the chart axis ids to match the random values in the Excel file. | ||
chart.set_axis_ids(45705856, 45843584); | ||
|
||
chart.show_empty_cells_as(ChartEmptyCells::Gaps); | ||
|
||
worksheet.insert_chart(8, 4, &chart)?; | ||
|
||
workbook.save(filename)?; | ||
|
Oops, something went wrong.