This example demonstrates how to use the CustomDrawSeries event to modify the legend markers of bar series.
Assign a custom legend marker to the LegendMarkerImage property. Set the DisposeLegendMarkerImage property to true
to avoid memory leaks. To customize options used to draw the series, cast e.SeriesDrawOptions to the
DrawOptions class descendant that stores draw options of the required series view type.
- Form1.cs (VB: Form1.vb)
- Employee.cs (VB: Employee.vb)
- NwindDbContext.cs (VB: NwindDbContext.vb)
- Order.cs (VB: Order.vb)
- Chart for WinForms - How to Add Images for Legend Items
- Chart for WinForms - Draw a Custom Legend Marker for a Series Point
(you will be redirected to DevExpress.com to submit your response)