othman schrieb:
Hi Ingrid,
I wrote the below java code to insert a new chart from which i'll later
extract the XChartDocument instance.
the below java code works ok . however i noticed a couple of things :
1) i need to specify a XCellRange and get the CellRangeAddress . for this i
used :
XCellRange myRange = oRange.getCellRangeByName("A1:E1740");
XCellRangeAddressable oRangeAddr = (XCellRangeAddressable)
UnoRuntime.queryInterface(XCellRangeAddressable.class, myRange);
CellRangeAddress myAddr = oRangeAddr.getRangeAddress();
is there a way to format this XCellRange Object so i can specify min , max
and step range for both x and y axis ?
Scaling is a property of the axis object, and not of the source data.
Have a look at
http://api.openoffice.org/docs/common/ref/com/sun/star/chart2/XAxis.html
functions getScaleData() and setScaleData().
2) i got a chart drawn even though i didn't specified the chart type in
below java code .i suppose there is a default charttype in chart2 module
that is used if no other charttype is specified . what is the default
charttype for chart2 module ?
3) for chart module i know there are the following charttype services :
"com.sun.star.chart.LineDiagram",
com.sun.star.chart2.LineChartType
"com.sun.star.chart.BarDiagram",
com.sun.star.chart2.ColumnChartType
"com.sun.star.chart.PieDiagram",
com.sun.star.chart2.PieChartType
"com.sun.star.chart.NetDiagram",
com.sun.star.chart2.NetChartType
"com.sun.star.chart.XYDiagram",
com.sun.star.chart2.ScatterChartType
"com.sun.star.chart.StockDiagram",
com.sun.star.chart2.CandleStickChartType
"com.sun.star.chart.AreaDiagram"
com.sun.star.chart2.AreaChartType
what are the corresponding charttype services for chart2 module ? i'm
specially interested in CandleStick & Line chart type from chart2 module.
Regards
Daniel
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]