Drawing Problems (Cursor, ZoomTool, etc.)
Posted: Mon Feb 19, 2007 9:10 pm
I am having problems with some of the tools that use the ReversibleLine and ReversibleRectangles such as the ZoomTool and the FastCursor tool.
My chart constantly refreshes with real-time data coming in, and when it refreshes the chart, artifacts remain on the screen if the user is either zooming or using the cursor.
I tried to write my own versions of Zoom and FastCursor, by using DrawLine and DrawRectangle on the Chart Graphics object. The problem with that is that it gets very slow as more data is plotted. The drawing speed declines with the number of points added to the series even if only a few points are on-screen.
Is there a workaround for this? Can I prevent the ReversibleLine or ReversibleRectangle from leaving artifacts, or can I draw on the graph without it trying to redraw every point?
Thanks!
My chart constantly refreshes with real-time data coming in, and when it refreshes the chart, artifacts remain on the screen if the user is either zooming or using the cursor.
I tried to write my own versions of Zoom and FastCursor, by using DrawLine and DrawRectangle on the Chart Graphics object. The problem with that is that it gets very slow as more data is plotted. The drawing speed declines with the number of points added to the series even if only a few points are on-screen.
Is there a workaround for this? Can I prevent the ReversibleLine or ReversibleRectangle from leaving artifacts, or can I draw on the graph without it trying to redraw every point?
Thanks!