Sign in to follow this  
sweep

How To Pass Chart Settings

Recommended Posts

Hi, I'm building up my chart string in PHP using the following:

 

$strXML .= "<graph caption='graph' xAxisName='Date' yAxisName='Number' decimalPrecision='0' showShadow ='0' rotateNames='1' lineThickness='5' showValues='0' showAnchors='0' numDivLines='0' canvasBorderAlpha='0' canvasPadding='30' bgImage='images/graph_bg.png' bgAlpha='0' bgColor='FFFFFF' showBorder='0'>";

 

but certain things such as the bgImage and canvasPadding have no effect. In the documentation it references applying these to <canvas, how do I do that using the above code and how is <canvas different to <graph?

 

Thanks

Share this post


Link to post
Share on other sites

Hi Sweep,

 

Let me help you. If you want to show an image background you should set the bgAlpha param to 100, or greater than 0, the bgAlpha is like a gradient on the image, so you are disappearing the image settig the param with 0.

 

The canvasPadding parameter refers to the separation between the layer where you draw the graph and the lines that are drawn into this layer. Look the documentation in this site to understand me, this is the path:

Support > Documentation > FusionCharts XT > Quick Chart Configuration > Chart Paddings & Margins

 

And finally try this example that i've wrote for you.

 

I hope that this can help you.

 

Greetings!!

 

Hi, I'm building up my chart string in PHP using the following:

 

$strXML .= "<graph caption='graph' xAxisName='Date' yAxisName='Number' decimalPrecision='0' showShadow ='0' rotateNames='1' lineThickness='5' showValues='0' showAnchors='0' numDivLines='0' canvasBorderAlpha='0' canvasPadding='30' bgImage='images/graph_bg.png' bgAlpha='0' bgColor='FFFFFF' showBorder='0'>";

 

but certain things such as the bgImage and canvasPadding have no effect. In the documentation it references applying these to <canvas, how do I do that using the above code and how is <canvas different to <graph?

 

Thanks

example.zip

Share this post


Link to post
Share on other sites

Hi thanks for that, the problem I have is I cant pass <chart to the php script I have to use <graph or it fails to display, do you know why this happens?

Hi Sweep,

 

Let me help you. If you want to show an image background you should set the bgAlpha param to 100, or greater than 0, the bgAlpha is like a gradient on the image, so you are disappearing the image settig the param with 0.

 

The canvasPadding parameter refers to the separation between the layer where you draw the graph and the lines that are drawn into this layer. Look the documentation in this site to understand me, this is the path:

Support > Documentation > FusionCharts XT > Quick Chart Configuration > Chart Paddings & Margins

 

And finally try this example that i've wrote for you.

 

I hope that this can help you.

 

Greetings!!

 

 

Share this post


Link to post
Share on other sites

Going through other posts it looks like I can't use <chart> if I'm using fusion charts Free it has to be <graph> do you know if <graph> supports hiding the top and right border, setting the background image on a 2d line chart and adding canvasPassing because it seems to ignore these parameters?

Hi thanks for that, the problem I have is I cant pass <chart to the php script I have to use <graph or it fails to display, do you know why this happens?

 

Share this post


Link to post
Share on other sites
Guest Bindhu

Going through other posts it looks like I can't use <chart> if I'm using fusion charts Free it has to be <graph> do you know if <graph> supports hiding the top and right border, setting the background image on a 2d line chart and adding canvasPassing because it seems to ignore these parameters?

 

 

Hi,

 

Please refer to the link below,

http://forum.fusioncharts.com/topic/12990-is-it-possible-to-do-the-following-in-a-2d-line/page__pid__51039#entry51039

 

Hope this helps!

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