Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

change color in cewolf charts jsp

843840Jan 29 2010
Hi experts

I use cewolf to draw a chart in my jsp file.

I want to control set the color of the chart (of every series)

I use this code at the jsp file :

 <cewolf:chart id="pieTestSummary" type="pie" title="Test Status" showlegend="true">   
                      <cewolf:data>   
                          <cewolf:producer id="pieChartView" />   
                      </cewolf:data>   
                      <cewolf:colorpaint color="f6f6f6"/>   
                  </cewolf:chart>   
                  <cewolf:img chartid="pieTestSummary" renderer="cewolf" border="0" width="400" height="350"/>  
 <cewolf:chart id="pieTestSummary" type="pie" title="Test Status" showlegend="true">
                      <cewolf:data>
                          <cewolf:producer id="pieChartView" />
                      </cewolf:data>
                      <cewolf:colorpaint color="f6f6f6"/>
                  </cewolf:chart>
                  <cewolf:img chartid="pieTestSummary" renderer="cewolf" border="0" width="400" height="350"/>
and to add to the dataset data I use this code :
ds.setValue("Success",30);   
ds.setValue("Fail",10); 
how can I change the colors ?

success draws in blue color
and fail draws in red color

I want the success will draw in green color.
how can I change the color ?


thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 26 2010
Added on Jan 29 2010
0 comments
285 views