Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Custom MarkerStyles possible in Microsoft Chart Controls? [duplicate]

I'm using Microsoft Chart Controls (4.0), and have a line chart with several marker types. So much so, that I'm running out of markertypes. The defaults (square, triangle, circle, etc.) are insufficient.

Is it possible to add custom marker type images? For instance, I need a triangle pointed in the opposite direction.

like image 517
greggorob64 Avatar asked Jul 13 '11 16:07

greggorob64


1 Answers

You can create a opposite direction triangle image and set the marker image as

// Set an image marker for the third data point in series
Chart1.Series["Default"].Points[2].MarkerImage = "MyReverseTriangleImage.bmp";
Chart1.Series["Default"].Points[2].MarkerImageTransparentColor = Color.White;
like image 75
zero7 Avatar answered Nov 14 '22 23:11

zero7