Ticket T906711
Visible to All Users

WinForms Dashboard - Show/Hide measures from the Values section dynamically

created 5 years ago

Please see the attached image for illustration.
Chart1.jpg

I have a Chart item that displays data from multiple calculated fields specified in the Values group. Is there a way to incorporate a filter to show/hide data associated with user-selected Values?

In my example, this filter would operate similarly to the List Box I have for "Pit" and "Period". There would be a list of fields I included in the Values group, and user can tick the boxes to show/hide certain Values. Currently to filter, I have to add/remove individual field from the Values group, which is inconvenient when there're a large number of them.

Thank you!

Answers approved by DevExpress Support

created 5 years ago

Hello Khoi,

I suggest you add all required measures to the chart item and then add CheckBoxes to the chart's legend to allow end-users to show or hide series dynamically. Refer to the following topics describing how to implement this approach:
How to add Checkbox Legends for DevExpress Dashboard Chart Item
Dashboard - ChartDashboardItem Checked Legend not working after upgrading 18.1.5
Dashboard - CheckedLegend State not working in Maximize Mode.

    Comments (2)

      Thanks John! That solution you suggested works out great.

      DevExpress Support Team 5 years ago

        You are welcome Khoi. I am happy to hear that you have found my assistance helpful.

        In the recent 20.1 version we introduced the Custom Properties feature that allows you to embed the functionality to show or hide CheckBoxes in the legend into the Dashboard Designer.

        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.