As we said in a previous post, breaking up long polyline runs by using segment attributes can slow updates by as much as 100 times. If speed is the critical factor, and you are trying to plot many thousands of points, you should not use segment attributes.
You can continuously create new line plots and add them to the graph. Just save a reference to every line plot object. When a line plot is no longer part of the graph delete the line plot object from the list that the ChartView maintains of all graph objects in the view.
ChartView chartvu;
// delete reference from ChartView object list
chartvu.deleteChartObj(lineplotobj);
// free memory associated with object.
lineplotobj = null;
You would need to make sure that you null out all references that you might have to that object, and to never reference that particular object again.
Our services group could analyze the format of your incoming data, and your waterfall chart requirements, and create for you a custom plot class optimized for your application. That could probably result in a 10x improvement over what you are seeing now.
Contact sales@quinn-curtis.com for a quote.