Ticket T824136
Visible to All Users

How to hide the second Series when unchecking the first Series item in the Legend panel

created 5 years ago (modified 5 years ago)

[DevExpress Support Team: CLONED FROM T824046: Chartcontrol Compare data of two date range within one chart]

The start point is: I have two list, with 2 date range (oct.7-10  oct.13-16), with the same data structure (my object like: Date Clicks Impressions).

i need legends for the series in the next way: one legend point is this : Impressions, and when i unclick this legend item, both of the two Impression series should be hided.

You can see the example on the attached image (y-axis is the number of impressions, and the x-axis the 2 different date).

Thanks.

Answers approved by DevExpress Support

created 5 years ago

Hi,

To accomplish this task, use the Binding expression (TwoWay) to link the Series.CheckedInLegend property of the first Series to the second one.

    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.