How to set column and line chart Line number?

Creating a macro - Writing a Script - Using the API (OpenOffice Basic, Python, BeanShell, JavaScript)
Post Reply
winchell
Posts: 10
Joined: Thu Mar 31, 2022 5:45 am

How to set column and line chart Line number?

Post by winchell »

When create column and line chart by code, how to specify the line number like picture 1 in code? Or which property key should i specify?

When i create the column and line chart, i use the following code:

Code: Select all

XChartTypeTemplate chartTypeTemplate = (XChartTypeTemplate)multiServiceFactory.createInstance(diagramType);
But the picture is only one line.
Attachments
Capture1.JPG
Capture1.JPG (40.04 KiB) Viewed 712 times
Capture.JPG
Capture.JPG (63.7 KiB) Viewed 712 times
OpenOffice 7.3 on Windows 10
User avatar
Zizi64
Volunteer
Posts: 11352
Joined: Wed May 26, 2010 7:55 am
Location: Budapest, Hungary

Re: How to set column and line chart Line number?

Post by Zizi64 »

OpenOffice 7.3 on Windows 10
There is not Apache Openoffice 7.3 today. That is LibreOffice - i soppose it.

It is important, because the API of the LO and AOO are different a littlebit by now. (API: Application Programming Interface)


Install one of the excellent Object Inspection Tools: XrayTool or MRI. Then you will able to list all of the existing properties, methods and interfaces of the programing objects, in this case the Chart.

https://berma.pagesperso-orange.fr/index2.html
https://extensions.libreoffice.org/en/e ... ction-tool
Tibor Kovacs, Hungary; LO7.5.8 /Win7-10 x64Prof.
PortableApps/winPenPack: LO3.3.0-7.6.2;AOO4.1.14
Please, edit the initial post in the topic: add the word [Solved] at the beginning of the subject line - if your problem has been solved.
Post Reply