Sign in to follow this  
jerrygarciuh

Padding only shows up when trendline is added

Recommended Posts

This XML has no trendline and the line graph generated ignores the canvasPadding='20' 

<chart caption='Practice Plan Analysis for David Martin' subcaption='Point Value Playing Game: 2/2/2016 to 6/9/2016' xAxisName='Individual Score Dates' yAxisName='Scores' yAxisMinValue='0'  decimals='1' numberPrefix='' showValues='1' rotateLabels='1'  slantLabels="1" alternateHGridColor='FCB541' alternateHGridAlpha='20' divLineColor='FCB541' divLineAlpha='50' canvasBorderColor='666666' baseFontColor='666666' lineColor='FCB541' canvasRightMargin='50' canvasLeftMargin='30' canvasPadding='20' exportEnabled="1" exportAtClient="0" exportAction="download" exportHandler='http://www.somesite.com/Charts/ExportHandlers/PHP/index.php' exportFileName="18_Hole_Scoring_Analysis" exportFormats='PDF=Export as PDF'>
    <set label='4/4/16' value='10' />
    <set label='5/2/16' value='-21' />
    <set label='5/9/16' value='3' />
    <set label='5/16/16' value='-30' />
    <set label='5/23/16' value='7' />
    <set label='5/30/16' value='-13' />
    <set label='6/6/16' value='-15' />
	<styles>
		<definition>
			<style name='Anim1' type='animation' param='_xscale' start='0' duration='1' />
			<style name='Anim2' type='animation' param='_alpha' start='0' duration='0.6' />
			<style name='DataShadow' type='Shadow' alpha='40'/>
		</definition>
		<application>
			<apply toObject='DIVLINES' styles='Anim1' />
			<apply toObject='HGRID' styles='Anim2' />
			<apply toObject='DATALABELS' styles='DataShadow,Anim2' />
	</application>	
	</styles>
post-6881-0-36507500-1465504769_thumb.png
 
However if I add
<trendlines>
    <line startvalue="-2" color="#1aaf5d" displayvalue="Coach's{br}target{br}score" valueonright="1" thickness="2" />
</trendlines>

I get the padding:

post-6881-0-32050700-1465504759_thumb.png

 

Can anyone advise as to what I am doing incorrectly?

 

Thank you!

 

post-6881-0-36507500-1465504769_thumb.png

Share this post


Link to post
Share on other sites

Hi,

 

Thanks for your query.

 

The attached xml is working fine using the latest version of FusionCharts and the "canvasPadding" is also working properly irrespective of trendlines added or not. For your reference could you please check the xml structure that you are using.

 

Please refer to following samples.

 


 


 

Can you please try using the latest version and let us know if the issue is resolved?

 



 



Edited by soumya

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