Jump to content
Software FX Community

Chart Refresh


User (Legacy)

Recommended Posts

My application refreshes the chart whenever the underlying data changes.  Is 

there any way to freeze the chart display, do the update, then unfreeze the

display? The update I'm doing involves assigning a new datasource and

resetting series attributes and axis formats The problem is that when it's

doing the update, the chart display is changing for every change made to the

chart. I just want to show the end result when all of the chantges are

done. I tried using chart.SuspendLayout() but that doesn't help. Are there

any other options?

Heath

Link to comment
Share on other sites

Hi,

Yes, I also need to suspend the chart's repainting when I change the data or

properties. There's no BeginUpdate and EndUpdate method. Same thing with the

new chartFXvs2005.

Raymond C. Dazo

--

Interprise Solutions Team

"Heath" <heath.brand@areva-td.com> wrote in message

news:hC9DCqG9FHA.1668@webserver3.softwarefx.com...

> My application refreshes the chart whenever the underlying data changes.

> Is there any way to freeze the chart display, do the update, then unfreeze

> the display? The update I'm doing involves assigning a new datasource and

> resetting series attributes and axis formats The problem is that when

> it's doing the update, the chart display is changing for every change made

> to the chart. I just want to show the end result when all of the chantges

> are done. I tried using chart.SuspendLayout() but that doesn't help. Are

> there any other options?

>

> Heath

>

>

>

>

>

Link to comment
Share on other sites

Can you both describe which properties are causing an immediate repaint of 

the chart? Normally the properties should "accumulate" until the next

repaint.

We do expose a pair of BeginUpdate/EndUpdate methods in the chart class,

they will not appear on Intellisense. Please let us know if they fix your

issue.

--

JC

Software FX Support

"Raymond Dazo" <raymond.d@interprisesolutions.com> wrote in message

news:SzjqV6I9FHA.468@webserver3.softwarefx.com...

> Hi,

>

> Yes, I also need to suspend the chart's repainting when I change the data

> or properties. There's no BeginUpdate and EndUpdate method. Same thing

> with the new chartFXvs2005.

>

> Raymond C. Dazo

>

> --

> Interprise Solutions Team

> "Heath" <heath.brand@areva-td.com> wrote in message

> news:hC9DCqG9FHA.1668@webserver3.softwarefx.com...

>> My application refreshes the chart whenever the underlying data changes.

>> Is there any way to freeze the chart display, do the update, then

>> unfreeze the display? The update I'm doing involves assigning a new

>> datasource and resetting series attributes and axis formats The problem

>> is that when it's doing the update, the chart display is changing for

>> every change made to the chart. I just want to show the end result when

>> all of the chantges are done. I tried using chart.SuspendLayout() but

>> that doesn't help. Are there any other options?

>>

>> Heath

>>

>>

>>

>>

>>

>

>

Link to comment
Share on other sites

I have a place in my code where I save the series attributes 

(SoftwareFX.ChartFX.SeriesAttributes), clear the chart series data

(m_chart.Series.Clear), then reapply the series attributes. The

series.Clear() is what was changing the display I think.

I tried the BeginUpdate/EndUpdate and it looks like that will solve my

problem. Out of curiosity, why weren't these methods exposed?

"Software FX Support" <none@noreply.com> wrote in message

news:T6SIMkP9FHA.468@webserver3.softwarefx.com...

> Can you both describe which properties are causing an immediate repaint of

> the chart? Normally the properties should "accumulate" until the next

> repaint.

>

> We do expose a pair of BeginUpdate/EndUpdate methods in the chart class,

> they will not appear on Intellisense. Please let us know if they fix your

> issue.

>

> --

> JC

> Software FX Support

> "Raymond Dazo" <raymond.d@interprisesolutions.com> wrote in message

> news:SzjqV6I9FHA.468@webserver3.softwarefx.com...

>> Hi,

>>

>> Yes, I also need to suspend the chart's repainting when I change the data

>> or properties. There's no BeginUpdate and EndUpdate method. Same thing

>> with the new chartFXvs2005.

>>

>> Raymond C. Dazo

>>

>> --

>> Interprise Solutions Team

>> "Heath" <heath.brand@areva-td.com> wrote in message

>> news:hC9DCqG9FHA.1668@webserver3.softwarefx.com...

>>> My application refreshes the chart whenever the underlying data changes.

>>> Is there any way to freeze the chart display, do the update, then

>>> unfreeze the display? The update I'm doing involves assigning a new

>>> datasource and resetting series attributes and axis formats The problem

>>> is that when it's doing the update, the chart display is changing for

>>> every change made to the chart. I just want to show the end result when

>>> all of the chantges are done. I tried using chart.SuspendLayout() but

>>> that doesn't help. Are there any other options?

>>>

>>> Heath

>>>

>>>

>>>

>>>

>>>

>>

>>

>

>

Link to comment
Share on other sites

It flickers immediately ?  do you mean that if you do:

chart1.Volume= 20;

chart1.Volume= 30;

chart1.Volume= 40;

In one shot, the chart flickers three times ? What version of Chart FX ? I

can not reproduce this with any version. Can you attach a sample program ?

BegingUpdate/EndUpdate are not in intellisense because they are not needed,

Chart FX only updates at the end or when Refresh is called.

--

Francisco Padron

www.chartfx.com

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...