Bug 152476 - Scatter chart XChartDocument has bad implementation (python)
Summary: Scatter chart XChartDocument has bad implementation (python)
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Chart (show other bugs)
Version:
(earliest affected)
7.3.6.2 release
Hardware: All Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard: QA:needsComment
Keywords:
Depends on:
Blocks:
 
Reported: 2022-12-12 01:46 UTC by vibrationoflife
Modified: 2022-12-27 03:18 UTC (History)
0 users

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description vibrationoflife 2022-12-12 01:46:53 UTC
Scatter chart XChartDocument bad implementation

Scatter poor implementation. Missing methods and perhaps more.

Missing method I tested are getFirstDiagram() and getChartTypeManager()

Tested using my ODEV library:
https://github.com/Amourspirit/python_ooo_dev_tools

and my LibreOffice Examples repo:
https://github.com/Amourspirit/python-ooouno-ex

How to reproduce:
See: https://github.com/Amourspirit/python-ooouno-ex/tree/b476a7366d3386b91ec972103397c90520446e80/ex/auto/chart2/Chart_2_Views

When repo is installed:
>>> python .\ex\auto\chart2\Chart_2_Views\start.py -k scatter

>>> Chart2.print_chart_types(chart_doc)
raise error When scatter chart

>>> AttributeError: type object 'com.sun.star.chart2.XChartDocument' has no attribute 'getFirstDiagram'

see: https://github.com/Amourspirit/python_ooo_dev_tools/blob/757379603f95d21fbb99d2969970b905b4c5efe1/ooodev/office/chart2.py#L1588

>>> template_names = Chart2.get_chart_templates(chart_doc)
raises error when scatter chart

>>> AttributeError: type object 'com.sun.star.chart2.XChartDocument' has no attribute 'getChartTypeManager'

See: https://github.com/Amourspirit/python_ooo_dev_tools/blob/757379603f95d21fbb99d2969970b905b4c5efe1/ooodev/office/chart2.py#L353

I tested on LibreOffice 7.3 and Daily build of 7.4.4, LibreOfficeDev_7.4.4.0.0_Win_x64.msi
Found at: https://dev-builds.libreoffice.org/daily/libreoffice-7-4/Win-x86_64@tb77-TDF/2022-12-10_07.33.53/

I tested many other charts and so far only scatter is an issue.

Only Tested on Windows 10 thusfar.