QtExcel / QXlsx

Excel file(*.xlsx) reader/writer library using Qt 5 or 6. Descendant of QtXlsxWriter.
https://qtexcel.github.io/QXlsx/
MIT License
1.16k stars 358 forks source link

XY-Scatter Charts are broken #297

Open WilheJo opened 1 year ago

WilheJo commented 1 year ago

Hi, it seems XY-Scatter Charts do not behave as expected.

After spending some time figuring out why my series A1:C6 did not produce 2 XY-charts with x-data from A1:A6, I found this one:

https://github.com/QtExcel/QXlsx/blob/499901003f02da34f7fbc1ec214a24e4dc128b74/QXlsx/source/xlsxchart.cpp#L1305

After changing this to "#if 1", everything works as expected.

I can see no other place where x-data is set... so this seem a mistake to me.

AndreiCherniaev commented 2 months ago

@WilheJo provide project with problem please. I have checked "chart1.xlsx" generated by example and it works good, isn't it? image

But I want to ask Ralf Tralow what #if 0 means... May be time to remove debug code have came?