This question is locked. New answers and comments are not allowed.
I am trying to create a line chart that will be filled in real-time over a 2hr time period. It will be something like PerfMon in that I will start with just 1 data point and each minute I will add a new one until I reach 2hrs, at which time the first data point is removed, and from then on I show the last 2hrs of data with the line data scrolling each minute.
I have made this work by simply adding to the list the chart is data bound to. But the xaxis changes every minute to accommodate the new data point, up until 2hrs. I'd like to preset the xaxis to show 2hrs in 1min increments even though I don't have data yet. Is this possible?
I thought about prefilling the databound list with values of 0, but then the line chart looks odd because it goes to zero for all future points. How else could I accomplish this?
I have made this work by simply adding to the list the chart is data bound to. But the xaxis changes every minute to accommodate the new data point, up until 2hrs. I'd like to preset the xaxis to show 2hrs in 1min increments even though I don't have data yet. Is this possible?
I thought about prefilling the databound list with values of 0, but then the line chart looks odd because it goes to zero for all future points. How else could I accomplish this?