Update a chart control as variables change
Posted on 2012-04-11
One of the forms in my project has a basic line graph created using the chart control. It shows market size in units over 12 periods. The 12 Y-axis values are read from 12 text boxes that start with default values read from a file. The form's load event then has code that reads these into an array and creates a series to display on the graph. So far so good, the graph does display correctly.
What I want, however, is for the user to be able to enter new figures into the text boxes and for the graph to update automatically as the array variables are changed.