[Dropped] OLE-embedded DIAGRAM X / Y - x axis labels
Posted: Wed Feb 14, 2024 10:40 pm
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) 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
... 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) 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