Hi,<br />
<br />
I have one Pie chart.<br />
I want change Pie Slice colors using parameters,<br />
<br />
Right now, I'm using this following code to change only one Slice color at a time.<br />
<pre class='_prettyXprint _lang-auto _linenums:0'>
mycolor = rpCtx.getParameterValue("sliceValue");// Value from list box parameter
myValue = rpCtx.getParameterValue("sliceColor"); // Value from another list box parameter
if( dph.getBaseDisplayValue() == myValue ){
importPackage( Packages.org.eclipse.birt.chart.model.attribute.impl );
if( mycolor == "Red" ){
mycolor = ColorDefinitionImpl.RED();
} else if( mycolor == "Green" ){
mycolor = ColorDefinitionImpl.GREEN();
}
r = mycolor.getRed();
g = mycolor.getGreen();
b = mycolor.getBlue();
fill.set(r, g,

;
}
</pre>
<br />
Now,<br />
I want to set all slice colors as per user Input<br />
<br />
i.e.<br />
<br />
User selects 1st Slice value then Select color for the same, then <br />
User will select second Slice value then select color for the same and so on.<br />
<br />
Only last selected combination is accessible in report.<br />
<br />
Additionally, The pie values will be dynamic, But color values will be static,<br />
<br />
I want to Pass Slice & Color combination to the rptdesign file. So that i can set it in chart script.<br />
<br />
Please help.<br />
<br />
Thanks,<br />
Aditya