Suppress Chart Tooltip Display

Posted by: marcus.nixon on 25 April 2019, 9:04 pm EST

  • Posted 25 April 2019, 9:04 pm EST

    So the API reference says its possible to suppress the display of a chart tooltip by using the popup event. Could you please supply same example code of this please, as I cannot see what property to change within the event to stop it appearing.

    "The event handler may customize the tooltip content or suppress the tooltip display by changing the event parameters."
  • Marked as Answer

    Replied 25 April 2019, 10:43 pm EST

    Hi,
    You may suppress tooltip by just setting the Chart's tooltip.content property to null or by setting cancel property to true for Tooltip's popup event.
    Please refer to the demo samples:
    Tooltip.content: https://jsfiddle.net/0mtquacy/

    Popup Cancel: https://jsfiddle.net/uvsd1cmh/

    Regards,
    Manish Gupta
  • Replied 28 April 2019, 8:34 pm EST

    Brilliant, thanks mate. Looks like the popup event takes 2 params, whereas your documentation says it takes just a event param, so thats why i didnt see any Cancel property. Thanks again.
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels