PDA

View Full Version : [CLOSED] How to hide tooltip of specific data point in line chart?



PriceRightHTML5team
Apr 16, 2014, 7:06 AM
Hi Ext Team,

I want to hide some data points tooltips in line series based upon some conditions, can you please tell me how to implement this functionality?

Daniil
Apr 16, 2014, 4:52 PM
Hi @PriceRightHTML5team,

I would try to return false for a Tip's BeforeShow listener.

PriceRightHTML5team
Apr 17, 2014, 7:40 AM
Hi @PriceRightHTML5team,

I would try to return false for a Tip's BeforeShow listener.

Hi @Daniil,

It works with returning false from BeforeShow listener, but I have to check one field of that particular record from store and based upon that need to hide tip.

How can I access store record of that tip in Tip's BeforeShow listener?

Can you please provide the code snippet for the same?

Daniil
Apr 17, 2014, 5:33 PM
I noticed that a Renderer is executed before a BeforeShow listener. So, you can do the following.

Save a storeItem in a Renderer like this:

this.storeItem = storeItem;
then you can access it in a BeforeShow Handler:

this.storeItem

PriceRightHTML5team
Apr 18, 2014, 12:35 PM
I noticed that a Renderer is executed before a BeforeShow listener. So, you can do the following.

Save a storeItem in a Renderer like this:

this.storeItem = storeItem;
then you can access it in a BeforeShow Handler:

this.storeItem

Thanks @Daniil. It worked.

Please close the thread.