01-15-2013 03:48 PM
Hi,
I'm using a chart and am looking to toggle between two display modes, where by default the value of the chart is filled manually to -Inf, and the .FillTo property is set to -3 (Filling by default from -Inf). When the user evokes an event, a datapoint is plotted, and thus a line spanning vertically from the -Inf to datapoint is shown. I want to do the reverse, setting to Inf and plotting the datapoint value, where .FillTo is set to -4 (filling to Inf), but when I set the property, the chart changes ALL the values in the chart history to fill to Inf. I'm looking for a way to allow multiple display settings in the one plot -- I suppose one way to do this is to rewrite the chart history (storing into temporary variable, appending new data array to the temp, and rewritng into chart history... though I am not sure if this would work and I am worried this will take up so much memory because I will be running multiple plots in a loop for over 1 hour... is there a more efficient way to do this? Thanks,
01-15-2013 04:31 PM - edited 01-15-2013 04:53 PM
You should be able to use two plots two achieve this. Wire a 2D array or cluster of two elements to the chart, the first element is your datapoint and the second element is either +/- Infinity. Select Fill To Plot 1 for Plot 0.