Hi,
othman wrote:
Hi,
below are two questions regarding chart2 API features:
1) the default color of line charts (com.sun.star.chart2.LineChartType) is
blue ; i want to change the color to black .how can i do that ? (i don't
know what are the properties available for line chart b/c there is no
documentation for line chart type service).
You can change the color of a data series at the data series object.
Look at the series service:
http://api.openoffice.org/docs/common/ref/com/sun/star/chart2/DataSeries.html
It supports the service DataPointProperties:
http://api.openoffice.org/docs/common/ref/com/sun/star/chart2/DataPointProperties.html
Try the property "Color" to change the color of the series.
2)for each column of my sheet i want to attach a legend in the chart
generated using chart2 and java code.
for example the column for "open" values should have a red square and
labeled "open" and so for other columns.
at the moment my chart is only showing a blue line and label column B etc...
so i'm looking for a way to attach a legend to a given
com.sun.star.chart2.data.XDataSequence
is this possible thing to do with com.sun.star.chart2 and how ?
No, the legend entries are generated automatically.
Kind regards,
Ingrid
thanks.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]