Unable to draw 2D closed shapes


https://www.nevron.com/Forum/Topic9613.aspx
Print Topic | Close Window

By Fan-Jiang Zeng - 8 Years Ago
I want to draw 2D closed shapes (such as a triangle, a circle, etc) with which a single color is filled, but I could not find a suitable class to finish this task after trying all the provided chart types. 
My first attempt is the Line series, but it could not be filled with colors.
My second attempt is the grid/mesh/triangle surface series with DrawFlat set to true, but it didn't work since the thickness of a 2D shape is 0, thus I couldn't see it in the chart.
Finally I tried the shape class, and sadly it only supports limited pre-defined shapes. But I need to draw irregular shapes - with arbitrary outlines.
Are there any suitable classes that can satisfy my requirements? Thank you!
By Nevron Support - 8 Years Ago
Hi,

Currently you can achieve this using a custom series - check out the following example - All Examples \ Chart Gallery \ Custom \ Custom Series - using this approach you can render arbitrary shapes. The upcoming 2016.1 release will have a series called graphics path series which allows you to draw any type of shape like a regular series.
By Fan-Jiang Zeng - 8 Years Ago
Thank you for your reply, but your solution still cannot solve my problem. I want to draw an irregular closed shape which contains a series of points with known coordinates. With the Graphics Path class I can only draw predefined shapes such as ellipses and rectangles. Do you have other suggestions? Thanks again!