Sign in to follow this  
Guest Basundhara Ghosal

Need to change Chart "Placeholder" color

Recommended Posts

Hi All,

I'm trying to create a chart placeholder on the same page as a FusionMap object [so when the user clicks on the map a time series chart displays based on county clicked - which works great] but the placeholder color is white and i want it to match my background color F7E6DB.

I've tried setting the bgColor and bgAlpha in my initiating code but nothing changes. I'm modeling my code after one of the vb.net samples included with the Enterprise product.

aspx code:

<

div id="LineChartDiv" runat="server" style="background-color:#F7E6D8; border:dashed 1px green;" >

<%

=GetLineBarChart()%>

</div>

 

aspx.vb.code:

Public

Function GetLineBarChart() As String

Return InfoSoftGlobal.FusionCharts.RenderChart("../Fusion/Charts/Line.swf?ChartNoDataText=Please select an element from the left to display time trends.", "", "<chart bgAlpha='100' bgColor='F7E6DB'></chart>", "LineBarChart", "400", "300", False, True)

End Function

 

see right hand side in image below....

7f57fea9-fd05-43c5-9f58-62ec.gif

Any help would be appreciated!!

Aaron

Share this post


Link to post
Share on other sites
Guest Basundhara Ghosal

Hi,

Firstly, please setting the chart's background as the color you wish to specify.

Then please try setting the transparency of the chart to true.

Ref.-

Return FusionCharts.RenderChart("FusionCharts/Charts/MSLine.swf", "FusionCharts/Data/data.xml", "", "chart1", "600", "400", false, true, true);

The last attribute in this case sets the charts transparency to true.

I hope this helps.

Share this post


Link to post
Share on other sites
Guest Basundhara Ghosal

Hi,

We are glad to help you.

Keep smiling and keep FusionCharting. :)

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