Issue 58797 - new chart: Chart2 API: Gradient area format does not work correctly
Summary: new chart: Chart2 API: Gradient area format does not work correctly
Status: CLOSED FIXED
Alias: None
Product: General
Classification: Code
Component: chart (show other issues)
Version: 3.3.0 or older (OOo)
Hardware: All All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: kla
QA Contact: issues@graphics
URL:
Keywords: new_implementation
Depends on:
Blocks:
 
Reported: 2005-12-02 16:05 UTC by daniel.rentz
Modified: 2013-02-24 21:22 UTC (History)
1 user (show)

See Also:
Issue Type: TASK
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
test doc with different chart backgrounds (20.50 KB, application/vnd.ms-excel)
2005-12-02 16:06 UTC, daniel.rentz
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description daniel.rentz 2005-12-02 16:05:06 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.
Comment 1 daniel.rentz 2005-12-02 16:06:30 UTC
Created attachment 31988 [details]
test doc with different chart backgrounds
Comment 2 IngridvdM 2005-12-05 09:44:33 UTC
accepted
Comment 3 IngridvdM 2005-12-05 09:54:25 UTC
set keyword 'new_implementation' for new chart issue
Comment 4 IngridvdM 2005-12-05 14:14:55 UTC
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 ) ;

Comment 5 daniel.rentz 2006-01-31 15:59:44 UTC
fixed
Comment 6 IngridvdM 2006-03-22 09:12:02 UTC
changed summary to start with 'new chart: ' to avoid confusion with regular
chart bugs
Comment 7 IngridvdM 2006-03-22 11:29:37 UTC
changed issue type from defect to task to better reflect that this issue is only
a working issue for the chart reimplementation
Comment 8 bjoern.milcke 2006-06-23 10:02:46 UTC
Changed target to 2.x
Comment 9 daniel.rentz 2006-12-13 14:11:22 UTC
back to QA
Comment 10 IngridvdM 2007-01-18 11:53:49 UTC
changed target to 2.3
Comment 11 kla 2007-02-22 15:21:04 UTC
seen ok into mst11 -> verified
Comment 12 p9w.vu.31122010 2007-07-19 18:36:36 UTC
Verified fixed in m221