Hi,

othman wrote:

Ingrid Halama wrote:
For each series there is one entry generated in the legend. The displayed text is the label of the series
that's what i want to do : i want to set a Label for a given
com.sun.star.chart2.XDataSeries Object.but this interface only has one
method ::com::sun::star::beans::XPropertySet getDataPointByIndex([in] long
nIndex )
so my question : how can i set my own label for a given series ? in the user interface there is an option "set first row as label" ; but i
don't know how to set this option programatically


When you create the chart with the standard API you could know it already. Look at the parameters of method 'addNewByName' at the interface XTableCharts:
http://api.openoffice.org/docs/common/ref/com/sun/star/table/XTableCharts.html
Setting parameter bRowHeaders to true should do the trick.
When you want to change the label cell range later with chart2 API it is more tricky. Do you need that really?


Ingrid Halama wrote:
and the displayed symbol is the symbol fitting to the properties of the series. For example when you have a series with label 'Series A' that is a thick blue line, the legend entry will be a symbol showing a thick blue line followed by the text 'Series A'. That is what most users want to have.

for a candlestick chart, should i have one series for each column ? series
for "open" ; series for High" etc..?

No, several sequences/columns ( for high, low, close, open ) do form one series (one stock).

Kind regards,
Ingrid

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

Reply via email to