Re: [api-dev] combined chart type using com:sun:star:chart2

2008-08-30 Thread othman
Hi, After thinking more about it, integrating jfreechart with UNO might not be a good idea : it will make things more complex rather than help simplifying my task. Now I'm in a quit uncomfortable situation : 1)the standard chart API doesn't provide feature to superimpose two different

Re: [api-dev] combined chart type using com:sun:star:chart2

2008-08-27 Thread Ingrid Halama
Hi, othman wrote: Hi Ingrid, thanks for the elaborated response. I will discuss your propositions with our project manager probably post the feedback in this mailing list . meantime , i hope we can continue on the issue of date formatting. Ingrid Halama wrote: It is not possible to set a

Re: [api-dev] combined chart type using com:sun:star:chart2

2008-08-27 Thread othman
Hi, Ingrid Halama wrote: There is no concept of date range at a category axis in neither API. There is only a sequence of texts that are displayed in order. The values in the stock chart are also only displayed in order. They are not displayed regarding any specific date or x value.

Re: [api-dev] combined chart type using com:sun:star:chart2

2008-08-27 Thread Ingrid Halama
Hi, othman wrote: Hi, Ingrid Halama wrote: There is no concept of date range at a category axis in neither API. There is only a sequence of texts that are displayed in order. The values in the stock chart are also only displayed in order. They are not displayed regarding any specific date or

Re: [api-dev] combined chart type using com:sun:star:chart2

2008-08-26 Thread othman
Hi Ingrid, I appreciate your reply interest to help in our project.our project scope is more interesting .i'll explain it below.at this stage i'm trying to discover the new chart2 API which still remains obscure to me.i'll need some time to understand well the structure of this chart2

Re: [api-dev] combined chart type using com:sun:star:chart2

2008-08-26 Thread Ingrid Halama
Hi othman, othman wrote: Hi Ingrid, I appreciate your reply interest to help in our project.our project scope is more interesting .i'll explain it below.at this stage i'm trying to discover the new chart2 API which still remains obscure to me.i'll need some time to understand well the

Re: [api-dev] combined chart type using com:sun:star:chart2

2008-08-26 Thread othman
Hi Ingrid, thanks for the elaborated response. I will discuss your propositions with our project manager probably post the feedback in this mailing list . meantime , i hope we can continue on the issue of date formatting. Ingrid Halama wrote: It is not possible to set a min date and a max

Re: [api-dev] combined chart type using com:sun:star:chart2

2008-08-25 Thread Ingrid Halama
Hi, othman wrote: doing some slow progress in this issue. removing the default line chart is probably done by specifying a string range like (A1) before i was using a range A1:A1745 by using a range A1 the black lines are now gone and only remains the blue chart which i suppose is the

Re: [api-dev] combined chart type using com:sun:star:chart2

2008-08-25 Thread othman
Hi Ingrid thanks for your patience further assistance on this thread. you said previously that the default chart type is the bar chart. so i suppose my chart type container object already holds the com.sun.star.chart2.ColumnChartType. However the below code throws an exception error : code:

Re: [api-dev] combined chart type using com:sun:star:chart2

2008-08-25 Thread Ingrid Halama
Hi, othman wrote: Hi Ingrid thanks for your patience further assistance on this thread. you said previously that the default chart type is the bar chart. so i suppose my chart type container object already holds the com.sun.star.chart2.ColumnChartType. However the below code throws an

Re: [api-dev] combined chart type using com:sun:star:chart2

2008-08-25 Thread othman
hi, Ingrid Halama wrote: With chart2 API the categories have to be attached to the according x axis. When you create the chart using the standard API set parameter 'bRowHeaders' to true in the method addNewByName().

Re: [api-dev] combined chart type using com:sun:star:chart2

2008-08-24 Thread othman
doing some slow progress in this issue. removing the default line chart is probably done by specifying a string range like (A1) before i was using a range A1:A1745 by using a range A1 the black lines are now gone and only remains the blue chart which i suppose is the candlestick chart . see

Re: [api-dev] combined chart type using com:sun:star:chart2

2008-08-23 Thread othman
Hi, I figured out the error i was making : i had to replace service name com.sun.star.chart2.LabeledDataSequence with com.sun.star.chart2.data.LabeledDataSequence Now i can get some interesting results: i got the stock chart drawn; however it seems that the x-axis values are not set properly

Re: [api-dev] combined chart type using com:sun:star:chart2

2008-08-22 Thread Ingrid Halama
Hi, You didn't add any data series to the chart type so far, so there is nothing to display. For the roles of the different data sequences for the stock chart have a look here: http://api.openoffice.org/docs/common/ref/com/sun/star/chart2/data/DataSequenceRole.html Kind regards, Ingrid

Re: [api-dev] combined chart type using com:sun:star:chart2

2008-08-22 Thread othman
Still not able to get the code work . please help ! code : XEmbeddedObjectSupplier xEmbeddedObjSupplier = (XEmbeddedObjectSupplier) UnoRuntime.queryInterface(XEmbeddedObjectSupplier.class, xtablechart); XInterface xInterface = xEmbeddedObjSupplier.getEmbeddedObject();

Re: [api-dev] combined chart type using com:sun:star:chart2

2008-08-21 Thread othman
Sorry, i hope you bare with me be patient answering my questions about the chart2 API. i wrote a java code to change the type of my chart from default LineType to candlestick type. However this code doesn't work with chart2 .but if i change to standar com.sun.star.chart and use type

Re: [api-dev] combined chart type using com:sun:star:chart2

2008-08-21 Thread Ingrid Halama
Hi othman, othman wrote: Sorry, i hope you bare with me be patient answering my questions about the chart2 API. i wrote a java code to change the type of my chart from default LineType to candlestick type. However this code doesn't work with chart2 .but if i change to standar

Re: [api-dev] combined chart type using com:sun:star:chart2

2008-08-21 Thread othman
Hi Ingrid, I wrote below java code to change chart type with chart2 API. However this code doesn't work ! can you please look at it and tell me what I'm doing wrong ? thanks. othman Code: XMultiComponentFactory xMCF = null; XEmbeddedObjectSupplier xEmbeddedObjSupplier =

Re: [api-dev] combined chart type using com:sun:star:chart2

2008-08-20 Thread othman
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 =

Re: [api-dev] combined chart type using com:sun:star:chart2

2008-08-20 Thread Daniel Rentz
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 :

Re: [api-dev] combined chart type using com:sun:star:chart2

2008-08-20 Thread Ingrid Halama
Hi othman, othman wrote: 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

Re: [api-dev] combined chart type using com:sun:star:chart2

2008-08-20 Thread othman
Hi Ingrid, thanks for the very useful links . thanks also to Daniels for providing chart2 types. for my Y axis i have double values; so i suppose i can handle the ranges for y axis easily with properties Min, Max , StepMain via ChartAxis service. however my x axis holds dates in the format

Re: [api-dev] combined chart type using com:sun:star:chart2

2008-08-19 Thread Ingrid Halama
Hi othman, Have a look at the developers guides: Adding a chart to a spreadsheet is explained here including a java example: http://wiki.services.openoffice.org/wiki/Documentation/DevGuide/Charts/Creating_and_Adding_a_Chart_to_a_Spreadsheet To get an existing chart within a sheet, look at the

Re: [api-dev] combined chart type using com:sun:star:chart2

2008-08-18 Thread Ingrid Halama
Hi othman, Again a warning about using ::com::sun::star::chart2 API: It is not provided for external usage yet. It is an internal API that will change further. When the API evolves your code will not work with future versions. If you nevertheless want to use the chart2 API on your own risk

Re: [api-dev] combined chart type using com:sun:star:chart2

2008-08-18 Thread othman
Hi Ingrid , Thanks for providing the steps to use chart2 API for combining two chartype . I'll try implementing this method using the java UNO API .will get back to you if i face any eventual issues implementing the below method . Yes i'm aware of the risk using the unpublished chart2 API . our

Re: [api-dev] combined chart type using com:sun:star:chart2

2008-08-18 Thread othman
Hi Ingrid, Sorry i encountered a first problem . in last email you said: Ingrid Halama wrote: Query your chart document for interface com::sun::star::chart2::XChartDocument Well I'm not sure how i can get an instance to chart document. at the beginning there are no charts attached to

[api-dev] combined chart type using com:sun:star:chart2

2008-08-15 Thread othman
Hi, i have a standard OHLC (candlestick) chart which could be drawn on OO perfectly. OO could draw the OHLC chart but could not combine it with other line charts in the same graph . What i needed is a way to modify the OO code so that it could superimpose charts with same coordinate system to