Sign in to follow this  
paraped

transparent background

Recommended Posts

Guest Madhumita

Hi,

Welcome to the FusionCharts Forum. :blink:

If you wish to set your chart background as transparent in the HTML page, you need to follow these steps:

  1. In the chart's XML data, set <chart ... bgAlpha='0,0' ..>
  2. In the HTML code that embeds the chart, set myChart.setTransparent(true) as under:

<div id="chartdiv" align="center">The chart will appear within this DIV. This text will be replaced by the chart.</div>

<script type="text/javascript">

var myChart = new FusionCharts("../FusionCharts/Column3D.swf", "myChartId", "900", "300", "0", "0");

myChart.setDataURL("Data.xml");

myChart.setTransparent(true);

myChart.render("chartdiv");

</script>

</div>

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