Sign in to follow this  
avinash

How to change Chart type dynamically?

Recommended Posts

hi rahul,

I want to to change Chart type dynamically.

for example. When I click on "button1" I want to show FCF_column3d.swf

and on "button2" click i want to show FCF_Doughnut2D.swf

plz reply

Avinash

Share this post


Link to post
Share on other sites

Hi Avinash,

Please use the following code:

private void btnColumn3D_Click(object sender, EventArgs e)

{

FC.Movie =

Application.StartupPath + "FCF_Column3D.swf?chartWidth=" + FC.Width.ToString() + "&chartHeight=" + FC.Height.ToString();

FC.SetVariable(

"dataXML", textBox1.Text);

}

private void btnDoughnut2D_Click(object sender, EventArgs e)

{

FC.Movie =

Application.StartupPath + "FCF_Doughnut2D.swf?chartWidth=" + FC.Width.ToString() + "&chartHeight=" + FC.Height.ToString();

FC.SetVariable(

"dataXML", textBox1.Text);

}

 

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