Ticket T952448
Visible to All Users

Custom Legend Markers disappear on hover using Angular's ChangeDetectionStrategy.OnPush

created 4 years ago

Chart sample code:
Original - https://codesandbox.io/s/0ohfv (unmodified https://js.devexpress.com/Demos/WidgetsGallery/Demo/Charts/CustomLegendMarkers/Angular/Light/))

Modified code
https://codesandbox.io/s/uz9gt

Difference from original example: added ChangeDetectionStrategy.OnPush to the component

Issue:
Hover custom legend markers. Background and lines become gray.

Comments (1)
DevExpress Support Team 4 years ago

    Hello,

    Please give us some time investigate about it. We will update this ticket once we make any progress.

    Regards,
    Lejun

    Answers approved by DevExpress Support

    created 4 years ago

    Hello again,

    Thank you for your patience. I suggest that you call the detectChanges method on the onSeriesHoverChanged event.

    Please refer to an example illustrating how to do this.

    Regards,
    Lejun

      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.