flex chart hide a datatip

ぐ巨炮叔叔 提交于 2019-12-06 05:52:01

My guess is that you would have to extend the classes for DataTip, to check for NULL hitData objects, to kill/stop the drawing of the display.

I do not think there is a way to do that normally in FLEX. You would have to customize and override the hitData class unfortunately. What a pain!!

Thank you Devtron, the http://www.flexdeveloper.eu/forums/flex-charting/disable-datatip-but-keep-mouse-event-on-line-chart/

correctly describes the solution.

You can also set myChart.setStyle("dataTipRenderer",mx.skins.ProgrammaticSkin); to get rid of the display of datatips.

Two minor issues,

  • We need to know the value of the tip before clearing the graphics.
  • The line that connects the datapoint to the rectangle that displays the data could not be removed. But that is good enough for me.
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!