Sign in to follow this  
slklingler

containerBackgroundOpacity with xml and asp.net

Recommended Posts

Hello, I am using a new version of fusion charts with asp.net. I am trying to make the chart background transparent. however I apparently need to set the chart container to transparent  as well. How do I set containerBackgroundOpacity to transparent. Below is the relevant code from my aspx.cs page....

        StringBuilder xmlData = new StringBuilder();

        xmlData.Append("<chart bgColor='#000000' bgAlpha='0' canvasBgColor='ffffff' canvasBgAlpha='0' yAxisNameFontSize='12' baseFontSize='12' placevaluesInside='0' valueFontColor='#efefef' valueFontSize='10' valueFontBold='1' rotateValues='0' labelDisplay='rotate' slantLabels='1' useroundedges='0'>");

        while (dr.Read())
        {
            xmlData.Append("<set label='Wigit " + dr["WIGIT"].ToString() + "' value='" + dr["OUT"].ToString() + "' />");
        }

        conn.Close();

        // Close the `<chart>` element.
        xmlData.Append("</chart>");

        // Initialize the chart.
        Chart factoryOutput = new Chart("column2d", "myChart", "100%", "200px", "xml", xmlData.ToString());

        // Render the chart.
        Literal1.Text = factoryOutput.Render();

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