1
0
mirror of https://github.com/QtExcel/QXlsx.git synced 2025-01-16 04:42:53 +08:00
Jay Two 2018-09-06 16:25:08 +09:00
parent 64c5d086c2
commit ed8dce1114

View File

@ -46,6 +46,12 @@ int chart()
bar3DChart->setChartType(Chart::CT_Bar3D);
bar3DChart->addSeries(CellRange("A1:C9"));
/*
- Excel files created with this routine will have problems with Microsoft Excel. (Excel 2013/2016)
- Excel files created with this routine will be well in Google spreadsheets. (Setember 2018)
- Excel files created with this routine will be well in LibreOffice. (ver.6.1)
- Issue is reported from SangPilPark(github)
Chart *lineChart = xlsx.insertChart(43, 3, QSize(300, 300));
lineChart->setChartType(Chart::CT_Line);
lineChart->addSeries(CellRange("A1:C9"));
@ -62,6 +68,8 @@ int chart()
area3DChart->setChartType(Chart::CT_Area3D);
area3DChart->addSeries(CellRange("A1:C9"));
//*/
Chart *scatterChart = xlsx.insertChart(83, 3, QSize(300, 300));
scatterChart->setChartType(Chart::CT_Scatter);
//Will generate three lines.