By Lou Laskey - Monday, August 12, 2013
Edit: I meant to say Line Series not Smooth Line.
Hi All,
I hope this topic has not been addressed previously but for some reason the Search Topic selection doesn't do anything.
Start with a simple XY NChart with an image on the back wall that provides a 1000 x 1000 area.
Using a line series I draw multiple polygons on the chart giving the user an indication of where to click to make a selection.
If they click within the boundaries of one of the polygons, I want to fill the polygon to show it has been selected.
So how do I fill the polygon?
Or is there a better series to accomplish this?
Any help would appreciated.
TIA Lou
Win 7, MSVS 2010, .Net4, Nevron Chart 2012.
|
By Nevron Support - Wednesday, August 21, 2013
Hi,
The chart doesn't provide a built-in series that can fill arbitrary polygons. With the Line series you can stroke a polygon but you cannot fill it. The High-Low series gets close to your requirement - it fills the area enclosed between two poly-lines (that have the same X values). You can check if the regions that you have to paint can be represented by this series.
If not - the options that remain are to use either custom painting or the custom series. You can take a look at the following examples in our WinForms application:
All Examples > Custom Painting > Custom Painting Using GDI+ All Examples > Custom Painting > Painting in Overlay All Examples > Custom Painting > Custom Series
|
|