On 16.03.2011 18:20, Jan wrote:
I successfully inserted a Chart into a Text Document, set an XYDiagram
and set the data values (via the API).

However, I am at a total loss on how to add a Title to the diagram and
to the X- and Y-Axis. Can anyone give me a pointer?

There's an example in Basic at http://wiki.services.openoffice.org/wiki/Documentation/BASIC_Guide/Structure_of_Charts.

Also, setting the line color of the diagram with

xyProps->setPropertyValue(OU("LineColor"), makeAny(sal_uInt32(0)));

works fine, but

xyProps->setPropertyValue(OU("SplineType"), makeAny(sal_uInt32(1)));

crashes with

com::sun::star::beans::UnknownPropertyException

Why? The property is mentioned in the exact same place:

http://api.openoffice.org/docs/common/ref/com/sun/star/chart/LineDiagram.html

Which line color do you mean? If you change the line color of the data series, you're probably using a row properties object, not the diagram, which would explain the missing SplineType property.

Niklas
--
-----------------------------------------------------------------
To unsubscribe send email to dev-unsubscr...@openoffice.org
For additional commands send email to sy...@openoffice.org
with Subject: help

Reply via email to