Build 4.5.0.42 of xlsgen introduces a new chart : overlay line chart.
Overlay line chart exampleThe overlay line chart makes it possible to, as the name implies, overlay more than one time series one on top of another.
What's of interest is that whenever a data series spans across multiple years, this chart splits it into multiple series, one per year, sorts the data points according to the timeline, and makes it possible to overlay the series on the same chart in order to compare time periods year over year.
xlsgen hides the complexity of this : this chart cannot be built in Excel without a number of step calculations and sorting that
xlsgen does.
C/C++ code |
xlsgen::IXlsWorkbookPtr wbk = engine->Open( L"EURUSD1.csv", L"output.xls" );
xlsgen::IXlsChartPtr chart1 = wbk->WorksheetByIndex[1]->NewChart(xlsgen::charttype_overlayline, row1, col1, row2, col2); xlsgen::IXlsChartDynamicDataSourceSeriesPtr serie1 = chart1->DynamicDataSource->AddSerie(); serie1->SeriesValuesFormula = L"=R1C3:R100C3";
|