Apache OpenOffice (AOO) Bugzilla – Issue 75530
New Chart: Stock-Charts with volume and no property stock-with-volume are loaded incorrectly
Last modified: 2013-02-24 21:19:48 UTC
If you remove the stock-with-volume property from a stock chart type 3 or 4, to get a file conforming the ODF specification, the file is loaded either as empty chart or with wrong paint-order (candlesticks are overwritten by the volume bars). See also Issue 75529 for removing the property in export.
Created attachment 43800 [details] File saved with the new chart. The property stock-with-volume was removed afterwards from the plot-area properties
In the attached document vol.ods you can see that the paint order is wrong; the volume bars paint over the candlesticks.
Added keyword
Created attachment 43807 [details] StockChart created with OOo 2.2 and removed stock-with-volume attribute
Created attachment 44335 [details] File with fixed label-addresses, see Issue 75651. Use this for testing. Note, that the colors do no longer match the metafile
Created attachment 44354 [details] Fix for this issue in xmloff
Fixed when attached patch is applied to xmloff (based on CWS chart2mst3). The problem was that there is a global chart type at the plot-area that results in creating a first chart type. If the first data series has a different type, the new type is added as second chart type, although it should be the first one. The fix now creates new chart types before the global one as long as the global one is used for the first time. In addition the property "Volume" (old API) is no longer set when the chart:stock-with-volume property attribute was not read in XML.
fixed typo in summary
Patch applied to chart2mst3
Please verify in latest build of chart2mst3, mst12_3. For verification you can also create a document with OOF.m15 or greater (where the CWS oasisrng02 is integrated). That should export stock-charts without the stock-with-volume attribute (see Issue 75529).
Could not find stock-with-volume property in the content.xml of the chart and the charts look Ok with Chart2mst12_3. Checked with Linux, Windows and Solaris build.
Verified in 680 m215, closing.