Current filter:
                                You should refresh the page.
                                Support Center
                                0
                                  • There are several Series drawn on the Chart,
                                    I want to draw a red rectangle in Legend to help user to identify which Series it is.

                                    I had try event: Chart_CustomDrawSeries, it still not enough to me,
                                    I don't know how to draw a rectange around the Legend Text.

                                0

                                Hi,

                                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.

                                Thanks,
                                Alex

                                0

                                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.

                                xtraChartBugSample.zip
                                0

                                Hi,

                                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.

                                Thanks,
                                Alex

                                0

                                To aware user the visual focus,
                                change color of Series works in diagram area only,
                                but don't obvious enough in legend.

                                I can't draw additional indicator via GDI+ in CustomDrawSeries or Paint event,
                                because I do not have enough info of each legend item's location and size.

                                0

                                Hi,

                                Thank you for the update. You should be able to adjust the e.LegendDrawOptions property and specify a required color to highlight a Series item in the Legend. So, there is no need to implement a custom paint procedure for this purpose.

                                Thanks,
                                Alex

                                0

                                yes, but could some more additional properties added to e.LegendDrawOptions in next release?

                                ex:

                                LegendItemBorderColor: Color
                                LegendItemBorderWidth: Float
                                LegendItemBorderStyle: LineStyle
                                LegendItemBorderVisible: Boolean
                                LegendItemBackColor: Color
                                LegendItemBackColorVisible: Boolean

                                0

                                Hi,

                                Thank you for your response. We believe it makes sense to register a corresponding suggestion in our database:

                                Custom Draw - Extend the CustomDrawSeriesEventArgs.LegendDrawOptions settings.

                                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).

                                Thanks,
                                Alex

                                0

                                thank you.

                                To start a chat you should create a support ticket


                                If you need additional product information, write to us at info@devexpress.com or call us at +1 (818) 844-3383

                                FOLLOW US

                                DevExpress engineers feature-complete Presentation Controls, IDE Productivity Tools, Business Application Frameworks, and Reporting Systems for Visual Studio, along with high-performance HTML JS Mobile Frameworks for developers targeting iOS, Android and Windows Phone. Whether using WPF, Silverlight, ASP.NET, WinForms, HTML5 or Windows 8, DevExpress tools help you build and deliver your best in the shortest time possible.

                                Copyright © 1998-2014 Developer Express Inc.
                                All trademarks or registered trademarks are property of their respective owners