Fill a polygon shape (Smooth line series)


Author
Message
Nevron Support
Nevron Support
Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)
Group: Administrators
Posts: 3.1K, Visits: 4.2K
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



Best Regards,
Nevron Support Team


Lou Laskey
Lou Laskey
Junior Member (24 reputation)Junior Member (24 reputation)Junior Member (24 reputation)Junior Member (24 reputation)Junior Member (24 reputation)Junior Member (24 reputation)Junior Member (24 reputation)Junior Member (24 reputation)Junior Member (24 reputation)
Group: Forum Members
Posts: 24, Visits: 2
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.



GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search