Profile Picture

Setting NMarkerStyle.VertAlign does not seem to change the location of the marker

Posted By Jérôme Marchaud 14 Years Ago

Setting NMarkerStyle.VertAlign does not seem to change the location of...

Author
Message
Jérôme Marchaud
Posted 14 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)

Group: Forum Members
Last Active: 13 Years Ago
Posts: 3, Visits: 1

Hello,

I would like to add a triangular marker shape at the beginning of an horizontal line series, so that the base of the triangle is just above the line. On the NMarkerStyle object associated to the first data point, I set the PointShape property to PointShape.Cone and the VertAlign property to VertAlign.Top, but the marker is always centered on the data point. I also tried to change the VertAlign property in one of the Nevron's examples (C# Examples / All Examples / Panels / Chart / SeriesAttributes / Markers), but the location of markers was always the same.

I also thought of defining a custom marker shape (with a rectangular image where the triangle would be in the upper half), but there are no examples with PointShape.Custom.

Best Regards,

Jérôme Marchaud



Nevron Support
Posted 14 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: Last Week
Posts: 3,054, Visits: 4,009
Hello Jérôme,

The Vertical alignment of the markers is taken into account in series that have two Y values (for example Float Bar and High-Low). For Line and Point series this property doesn't take effect.

Custom shapes are still not available for markers so this is also not an option.

A possible solution is to use custom painting - please take a look at the following example in our Windows Forms demo application:

All Examples > Custom Painting > Custom Painting using GDI+

Best Regards,
Nevron Support Team





Similar Topics


Reading This Topic