how can oxyplot layer render and simple layout

Oystein Bjorke 10 aastat tagasi 0
This discussion was imported from CodePlex

ProCodeMyth wrote at 2013-05-20 01:55:

oxyplot is perfect for the most 2d charting , but for more complex charting such as welllog logplot and geosection, which need layer render ,for example , plot background ,outline,gridline in layer, user dataseries(curve) is ether layer , if user data change, base layer don't rerender,it can improve chart perfmence. another problem how oxyplot layout , if oxyplot can't support layout ,it is not a complet charting system. i hope i can use oxyplot horizon layout or vertical layout . now oxyplot only an transform ,which user data(world data) transform to screen point (chart space), so it lack simple layout abilty
thanks

objo wrote at 2013-06-08 10:05:

Thanks for the feedback! Ideas on how to improve the library are very welcome!

Yes, it should be possible to get better performance by just updating the invalidated visuals. But in the worst case, a single change in a series or axis may cause everything to be invalidated. I think a fair amount of code is required to keep track of all this (it is easy for the special case where the axes and size of the view is fixed, but not for the general case, I think).
It should be possible to add an "Invalidate" method on the series, but then I think the application should be responsible for the invalidation.
I am trying to keep the core of this library as simple as possible (which seems to always be in conflict with features and performance), and I am worried that this kind of change will make the code base more complicated. It will also be more work to implement this on the immediate mode platforms.

I am not sure what you mean about 'layout' here - is this about arranging multiple plots within the same view area?

objo wrote at 2013-06-08 11:26: