daniel.lishingman Posted February 14, 2008 Report Posted February 14, 2008 I'm binding an instance of the Observable<T> class (let's call it myCol) to the chart in a WPF application. The x-axis has time and the x-axis is an unsigned integer. At runtime, myCol starts with zero items and I add a new item every second up to 100 items. When 100 is reached, the oldest item is deleted from myCol. With the Chart's default behavior, the first time on the x-axis stays fixed at the time of the first item. As new items are added, the time scale on the x-axis becomes compressed as the last time on the axis increases with each new item added. The behavior I would like to have is that the time on the axis is fixed to something I specify (say 5-minutes), and this "fixed window" slides forward as new items are added. I tried setting the min/max properties of the Axis class but I can't figure out its values (double type) correspond to Date/Times. Can someone show me some sample code for how to achieve this? Thanks!
btanner Posted May 11, 2009 Report Posted May 11, 2009 I thought I would start by replying here even though the post is old. I am looking for the same thing and am hoping somebody can point me in the right direction.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.