Apache OpenOffice (AOO) Bugzilla – Issue 68229
New chart: Adapt table::XTableCharts and sheet::XTableChart in Calc to use the new Chart
Last modified: 2013-02-24 21:22:32 UTC
A sheet::Spreadsheet from Calc supports the sheet::XTableChartsSupplier. If you call getCharts() at this interface, you get a collection of charts, at which you can add charts or query charts for their content. The adding of charts has to be adapted to use the new chart. Also the XTableChart has to be adapted to the new chart.
Reassigning back to me.
Also fixed: there was a missing setVisualAreaSize() call, so that the newly added charts always had 7cm x 8cm VisArea. (Also appears in the old Chart). Should be fixed, but have to check all methods offered yet.
changed target to 2.3
Created attachment 42637 [details] Test Document using the XTableChart interface
Fixed so far. However, there remains one problem. When you try to get the values for "first row as labels" and "first column as labels", you sometimes get the wrong values. ->NN: Please have a look at chartuno.cxx: GetData_Impl. This calls a static method ScChart2DataProvider::detectArguments() method (see chart2uno.cxx) that retrieves different values than the detectArguments API-function at the same class. In the attached file, starting the macro should show "False" as first value, not "True". (The macro is placed in the "Legend" tab for historical reasons). Make sure you update chart2 before starting, as I checked in another change today, that influences the return value of getUsedData().
The variables weren't initialized. Fixed with chart2uno.cxx 1.2.10.54.
back for verification
Verified in Milestone 11 of chart2mst3.
Verified in master SRC680_m213.