Apache OpenOffice (AOO) Bugzilla – Issue 58797
new chart: Chart2 API: Gradient area format does not work correctly
Last modified: 2013-02-24 21:22:07 UTC
Load attached bugdoc. Top right chart has gradients for chart background (yellow) and deiagram wall (blue). These gradients are correctly set by the Excel filter, but drawn as black/white.
Created attachment 31988 [details] test doc with different chart backgrounds
accepted
set keyword 'new_implementation' for new chart issue
The FillProperty Gradient is an optional property and not supported by the chart objects so far. Instead you need to set the mandatory property GradientName. If you set a gradient name as FillProperty to the Wall (or other chart objects) it is necessary to make sure that the accessory gradient is known to the chartmodel also. A new gradient needs to be added to the chartmodel: Reference< lang::XMultiServiceFactory > xTableFactory( xChartDoc, UNO_QUERY ); Reference< container::XNameContainer > xGradientTable( xTableFactory->createInstance( "com.sun.star.drawing.GradientTable" ), UNO_QUERY ); awt::Gradient aNewGradient; xGradientTable->insertByName( "YourGraadientName", aNewGradient ) ;
fixed
changed summary to start with 'new chart: ' to avoid confusion with regular chart bugs
changed issue type from defect to task to better reflect that this issue is only a working issue for the chart reimplementation
Changed target to 2.x
back to QA
changed target to 2.3
seen ok into mst11 -> verified
Verified fixed in m221