why not merge scatterseries and RectangleBarSeries to an more universe class to plot (x,y,z) type data

Oystein Bjorke 10 jaar geleden 0
This discussion was imported from CodePlex

ProCodeMyth wrote at 2012-08-18 02:00:

hi objo

     both ScatterSeries and rectangleBarSeries  is an special case of draw (x,y,z) in 2D drawing ,

in  position(x,y) draw marktype with color fill; so why not develop an new class which reprense (x,y,z) type data replace ScatterSeries and rectanglebarSeries. if use new class ,coloraxis can play more important role,i think. we can cope with colormap in z-dir in universe  way, which is very usefull in draw contour with color fill . in recent oxyplot version, rectanglebarseries don't consider rect fillcolor change in diffente position, such as draw colorBand wich color from low to high .


objo wrote at 2012-08-21 13:36:

ScatterSeries plots points and RectangleBarSeries plots rectangles. The rendering method is quite different, so I don't think it is a good idea to merge these classes.

I see the RectangleBarSeries could be extended with more functionality from the ScatterSeries, but this could also be solved by making a custom series class. Can you check if this can solve your issues?