Hi Houh,

Hi
I want to create a blank chart with no data using openoffice API. Looking at
the openoffice 1.1 developer's guide, openoffice creates an initial bar
chart with no data and then populates the data as requested.

the call is:  aChartDoc = aChartHelper.insertOLEChart(
                 "BarChart",
                 aPos,
                 aExtent,
                 "com.sun.star.chart.BarDiagram" );

This is depicted from OpenOffice 1.1 Developer's guide Setting the Chart Type The default when creating a chart is a bar diagram with vertical bars. If a different chart type is required, apply a different diagram type to this
initial chart. For example, |
to create a pie chart, insert the default bar chart and change it to a pie
chart.
Is there a way to call the API so that a blank chart is created with no
bars.??

No, not directly. A chart always has a Diagram, which needs to be of some type. The question is why do you want an empty document? Maybe you just want to have no data.

A new chart is always created with some 3x4 dummy data (which wouldn't be necessary via API, but it still behaves this ways for historical reasons). You can set a new data array (XChartDataArray) with no data at the chart. Then, you should get an empty chart.

-Bjoern

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to