Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1467
  • Last Modified:

change Y value of a point in MS Chart

Hi:

I have an area chart on a form.  When the program is running the points in the chart are changed from time to time. I do the following to change Y value of a point, but the chart isn't getting changed.  What have I missed?

myChart.Series["mySeries"].Points[ 1].SetValueY(100]);

Thanks.
0
sdc248
Asked:
sdc248
  • 2
1 Solution
 
lenordisteCommented:
you probably have to call myChart.Update() (I think that's the method...) in order for your chart control to redraw with the new information otherwise the visual won't change even though you did change your point's value.
0
 
sdc248Author Commented:
myChart.Update() didn't work but myChart.Points.ResumeUpdates() did.  I have no idea what was going on but am glad it's working...
0
 
sdc248Author Commented:
myChart.Update() didn't do the trick, somehow. But it makes sense and it showed me the right direction to find the solution.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now