I'm trying to add empty chart: Insert -> Chart -> XY (scatter) -> Lines Only -> Finish Result: calc create chart with type "Points and Lines". Same for any type of charts (calc cteates empty chart with wrong type). This bug persists for a long time. It can be minor unnoying bug but sometimes if you build chart with many rows and with different positions of names and data in sheets, it randomly broke the wholl chart if you trying to change it's type afterwards. P.S. And creating chart through Chart Wizard never work for me, because my sheets always have splited X's and Y's so I always create empty charts and than add data raws/columns manually.
Repro with Version: 7.5.0.0.alpha0+ / LibreOffice Community Build ID: 66b849eab05bb6b696cced84ca90c17ca1bc31dd CPU threads: 16; OS: Linux 5.13; UI render: default; VCL: kf5 (cairo+xcb) Locale: pt-BR (pt_BR.UTF-8); UI: en-US Calc: CL To reproduce: 1) Insert an empty chart by simply going to Insert - Chart and then XY (Scatter) and choose the "Lines Only" type. 2) Click Finish and deselect the chart 3) Double-click the newly inserted chart 4) Right-click and choose Chart Type 5) Notice that the option "Points and Lines" is selected instead of "Lines Only" Changing the chart type to "Points only" or "Lines only" using this dialog has no effect. Changing it to "3D Lines" will effectively change the chart type. But if you double-click it and then go to Chart Type, then the dialog will show no chart type selected, which is also a bug. Setting this to NEW.
I suppose that when chart is empty, ScatterChartTypeTemplate::matchesTemplate (https://opengrok.libreoffice.org/xref/core/chart2/source/model/template/ScatterChartTypeTemplate.cxx?r=fef939d8#198) doesn't "guess" the right subtype. Tomaž: any idea how to save the subtype so it can be retrieved easily instead of guessing it in ChartTypeTabPage::initializePage() ? (see https://opengrok.libreoffice.org/xref/core/chart2/source/controller/dialogs/tp_ChartType.cxx?r=b7c260ae#302)