It is possible to replace the legend marker image completely, by adjusting the e.LegendMarkerImage property via the CustomDrawSeries event.
There is no capability to draw a rectangle around the Legend text, I am afraid. As an alternative solution, you can display ImageAnnotation(s) instead of the chart's Legend (see How to create a movable legend). Should you need further clarification, feel free to ask. I will be glad to help you.
thank's for your reply,
but consider about a case in a Chemical Lab, 20 more element analysis results exported from machine shown on the Chart,
some elements with same name but different purpose shown on it.
I can only identify which Series selected in Legend, because the name of element shown there.
I always need to select other Series 2 or 3 more times to make sure where is my target, although
the LineMarker would became a little bigger, and the color would be darker a little bit, too.
but the problem is all visual effect change completed in a very short moment, when I focused on the series's shape and thinking which is my point
on the Chart, I can't aware what's the minor change in Legend, especially in my 27" LCD monitor,
so, could you provide me some options for the selected series, let me setup more obvious visual effect not only in Chart but also in Legend.
Thank you for your response. I believe you can utilize the ChartControl.CustomDrawSeries event to adjust the Series color (e.SeriesDrawOptions.Color) to highlight a particular Series (e.g. when an end-user clicks on it). Please try this approach and let me know if you find it appropriate.
Thank you for your response. We believe it makes sense to register a corresponding suggestion in our database:
We will keep you informed on our progress. A small remark: the LegendItemBackColorVisible property looks unnecessary, because this functionality should be accomplished by specifying an empty (transparent) color (LegendItemBackColor).
Is your intention to post an answer to your own question?
- If so, then proceed.
- If you simply wanted to post additional information, ask for further clarification, or to just say "Thanks!", please click Leave a Comment.
- If you wish to edit your original question, please use the Edit button in the Toolbox at the top right corner of that entry.