Ticket Q538236
Visible to All Users
Duplicate

We have closed this ticket because another page addresses its subject:

Add the capability to customize the Legend marker appearance (line thickness)

Change LineThickness in xtracharts legend

created 11 years ago

We really need to be able to set the line thickness used in the legned - this is a popular request that has never been properly answered. Currently line series in the legend are all shown as 1px lines. This is not sufficient to distiguish between solid and dotted or different colours on very high pixel density (retina) screens that are becoming very popular now. Even setting the line tickness in the custom draw event doesn't work. I have seen there are arguments about it failing it the line is wider that the bounding area for the marker but that just requires a cap at that size - not fixing it to 1px. Also application testing should highlight that this is a problem if someone adds custom draw code with a bad value. To work around this at present we would have to re-implement the various line drawing styles and draw our own images at runtime - if we are technically able to do that and apply sense not to corrupt the legend and go outside bounds then surely the core product should be able to.

There is no good reason why this should not be made to work as people would expect.

C#
private void chartControl1_CustomDrawSeries(object sender, CustomDrawSeriesEventArgs e) { ((LineDrawOptions)e.LegendDrawOptions).LineStyle.Thickness = 3; }

Answers approved by DevExpress Support

created 11 years ago (modified 11 years ago)

Hi Paul,
Having discussed this scenario in the R&D team, we agree that it makes sense to provide a more convenient way of customizing the legend marker appearance. I have registered a separate ticket in this regard:
Add the capability to customize the Legend marker appearance (line thickness).
Once we make a final decision regarding this feature, we will update the ticket status accordingly. Should you need further clarification, feel free to ask.

    Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

    Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.