Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic How to Clear Data when second time loading (Read 6770 times)
topzsaran
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 3
Joined: Sep 5th, 2007
How to Clear Data when second time loading
Sep 5th, 2007 at 3:47am
Print Post  
Hi

How to clear all the data when second time loading using asp.net and C#.Now I am getting same value again in graph
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: How to Clear Data when second time loading
Reply #1 - Sep 5th, 2007 at 5:10am
Print Post  
Hi,

Try to call the ClearData() method before adding the new data series.

Stoyan
  
Back to top
 
IP Logged
 
topzsaran
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 3
Joined: Sep 5th, 2007
Re: How to Clear Data when second time loading
Reply #2 - Sep 5th, 2007 at 6:27am
Print Post  
//string personal=count1.ToString()+","+count2.ToString()+","+count3.ToString()+","+count
4.ToString()+","+count5.ToString();
BarChart1.BarType = MindFusion.Charting.BarType.Clustered3D;
/* clear the predefined data */
BarChart1.XData.Clear();
BarChart1.YData.Clear();
//BarChart1.ClearData();  ("This line gives error object Ref not set" ();

//BarChart1.Data.Clear();
/* set the X, Y and Y2 data */


//int flag=int.Parse(Session["no"].ToString());

if (flag==0)
{
double[] k1 = {l1,l2,l3,l4,l5};
double[] r1 = {count1,count2,count3,count4,count5};

BarChart1.Data.Add( new ArrayList( r1));//personal, 120, 77,68
BarChart1.Data.Add( new ArrayList( k1));//Others, 73, 81,56
BarChart1.ClusterLabels = new string[]{"Cat1", "Cat2", "Cat3", "Cat4","Cat5"};

BarChart1.ClustLabelAlignment = StringAlignment.Center;
/* set the inner labels */
//ArrayList innerLabels =new ArrayList( new string[]{"Jan", "February", "March", "April"} );
//BarChart1.InnerLabels.Add( innerLabels );
//BarChart1.InnerLabels.Add( innerLabels );
//BarChart1.InnerLabels.Add( innerLabels );




i am getting error when i call Clear Data () Function(

Could u Tell  me Reason?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: How to Clear Data when second time loading
Reply #3 - Sep 5th, 2007 at 7:51am
Print Post  
This looks like a bug. We'll upload a fixed version in awhile.

Stoyan

  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: How to Clear Data when second time loading
Reply #4 - Sep 5th, 2007 at 12:38pm
Print Post  
This version should work better:
https://mindfusion.org/_temp/mchart.zip

Stoyan
  
Back to top
 
IP Logged
 
topzsaran
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 3
Joined: Sep 5th, 2007
Re: How to Clear Data when second time loading
Reply #5 - Sep 6th, 2007 at 3:02am
Print Post  
Thank u .
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint