Custom Labels problem
Posted: Mon Feb 27, 2012 4:09 pm
Hi
Another simple question - I am adding custom labels to the right axis of a chart I have created. The left axis is displaying rainfall in millimeters and the right hand axis is displaying the values in inches. I copied your example from the demo program and it works fine but not the first time it displays. It works fine the second and subsequent times I use it.
I call the procedure after I have plotted the graph and set the extents of the axis. I have tried placing a chart.refresh or chart.update before calling my addlabels procedure but with no luck. When I add a break point inside the procedure I notice that properties such as chart.Axes.Right.Maximum have zero values when they should have much higher ones. I use this value to work out how many values I need to plot labels for. Can you suggest a solution?
Bruce.
Another simple question - I am adding custom labels to the right axis of a chart I have created. The left axis is displaying rainfall in millimeters and the right hand axis is displaying the values in inches. I copied your example from the demo program and it works fine but not the first time it displays. It works fine the second and subsequent times I use it.
I call the procedure after I have plotted the graph and set the extents of the axis. I have tried placing a chart.refresh or chart.update before calling my addlabels procedure but with no luck. When I add a break point inside the procedure I notice that properties such as chart.Axes.Right.Maximum have zero values when they should have much higher ones. I use this value to work out how many values I need to plot labels for. Can you suggest a solution?
Bruce.