Sign in to follow this  
dtnguyen02

remove gradient from area chart

Recommended Posts

cc775156-cd96-4ccc-bb4a-258d.bmp

 I am using the draggable area chart. How do I remove the gradient from this area chart? This is my exact xml:

<chart palette='1' caption='Please estimate product sales for 2007, 2008 & 2009' subcaption='Drag the anchors (markers) to adjust data'

showvalues='0' xAxisName='Year' yAxisName='Units' restoreBtnBorderColor='A2A3A0' formBtnBorderColor='A2A3A0' canvasPadding='20'

dragBorderThickness='3' formAction='DataHandler.html'  yAxisMaxValue='100'>

 <categories>

<category name='2005 (Actuals)' />

<category name='2006 (Actuals)' />

<category name='2007 (Predicted)' />

<category name='2008 (Predicted)' />

<category name='2009 (Predicted)' />

 </categories> 

  <dataset id='IJ' seriesName='Critical'  alpha='80'  color='FF0000' anchorAlpha='0' showPlotBorder='1'  plotFillAlpha='100' plotFillColor='FF0000'>

<set id='IJ2005' value='100' allowDrag='0' />

<set id='IJ2006' value='100' allowDrag='0' />

<set id='IJ2007' value='100' allowDrag='0' />

<set id='IJ2008' value='100' allowDrag='0' />

<set id='IJ2009' value='100' allowDrag='0' />

 </dataset>

 <styles>

<definition>

 <style name="myCaptionFont" type="font" font="Arial" size="14" bold="1" />

 <style name="mySubCaptionFont" type="font" font="Arial" size="10" bold="0" />

</definition>

<application>

 <apply toObject="Caption" styles="myCaptionFont" />

 <apply toObject="SubCaption" styles="mySubCaptionFont" />

</application>

 </styles>

</chart>

Share this post


Link to post
Share on other sites

Attachment474.aspx

 

Sorry, I should have been more detailed about what I was trying to do. I used the plotGradientColor as an attribute of the chart element and it worked. However, if I added another dataset to the area chart, then the second dataset will also use the color specified for the plotGradientColor. I don't want any gradients for this area chart at all. Is this possible? I attached a screenshot of the area chart with two datasets. I tried copying the xml here but it wouldn't encode it right. It's pretty much the first post's xml with a second dataset.

post-3002-128441568076_thumb.jpg

Edited by Guest

Share this post


Link to post
Share on other sites

Hi,

We found that you had been using one dataset in the first XML that you sent us.

The new image shows that it has 2 datasets.

Hence, could you please send us the XML that you are using?

Please note that to set off the dataplot gradient you should provide no value or blank value in atribute plotGradientColor in <chart> element. The attribute should look lexactly like this with no value inside.

plotGradientColor=''

Share this post


Link to post
Share on other sites

Attachment476.aspx

 

Hi, Thanks for helping me solve the gradient problem, no more gradients yay! However, there's a different problem where I want to only show the top plot border of a dataset.

 

I attached the xml and screenshot of the draggable area chart. Notice how there's the dark thick plot border around the entire area of the dataset labeled 'Actual'. I'd like to just show the top plot border, so it would simulate a line.

draggableareachart.bmp

DragArea1.xml

Edited by Guest

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this