Page 1 of 1

[Dropped] OLE-embedded DIAGRAM X / Y - x axis labels

Posted: Wed Feb 14, 2024 10:40 pm
by claudio-pqn
Hello everyone. I made an embedded graph in writer via ole from a program. This is part of the code:

... some code ...
// DIAGRAM X / Y
oChart := oEmbebido:getEmbeddedObject() // Recupera chart insertado
diagram := oChart:createInstance("com.sun.star.chart.XYDiagram") // Crea tipo de diagrama x/y
oChart:setDiagram(diagram)
oDATOS := oChart:getData()
oDATOS:setColumnDescriptions(aEtiquetas)


I get this graph (it's correct)
ole_diagramXY.png
ole_diagramXY.png (25.81 KiB) Viewed 4602 times
I just need to put the correct names of the X coordinate (marked in green).
I worked with getXAxis(), getSecondaryYAxis() but I can't get the result
TIA

Re: ole Embedded DIAGRAM X / Y - x axis labels

Posted: Thu Feb 15, 2024 7:25 am
by Zizi64
Please upload the full macro code and an ODF type sample file here.