1. #1
    Sencha Premium Member
    Join Date
    Apr 2011
    Posts
    20
    Vote Rating
    0
    onentwoo is on a distinguished road

      0  

    Default Unanswered: scatter graph - display tooltip only onClick and hide when loosing focus

    Unanswered: scatter graph - display tooltip only onClick and hide when loosing focus


    Hi
    I've been as to show tooltip on a scatter graph dot.
    however i need to show the tooltip only when user clicking on the dot but hide it when he is out of focus(like normal tooltip)

    I've tried in the "onSeriesSelection" to add tooltip config and use showAt(x,y);
    (this only work on the second click)
    however the tooltip configuration remain (from now on the tooltip show as usual on hover)
    then after the showAt, i've add the remove tooltip from scatter method.
    however the clickable tooltip still display (unless i press the close button i've added to the tooltip). - i guess this is because i don't have a tooltip object anymore.

    Is there another way to do it ?

  2. #2
    Sencha - GXT Dev Team
    Join Date
    Feb 2009
    Location
    Minnesota
    Posts
    2,731
    Answers
    109
    Vote Rating
    90
    Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light

      0  

    Default


    When you explicitly call showAt on the tooltip, you are taking responsibility for its lifecycle - in other words, you need to call hide when it is time to go. In this case, listen for the mouseout (i.e. spriteout event) from the point that the user clicked on.

  3. #3
    Sencha Premium Member
    Join Date
    Apr 2011
    Posts
    20
    Vote Rating
    0
    onentwoo is on a distinguished road

      0  

    Default


    Note that this graph should be dynamic, meaning number of series may change.
    Also that the x axis is a category axis

  4. #4
    Sencha - GXT Dev Team
    Join Date
    Feb 2009
    Location
    Minnesota
    Posts
    2,731
    Answers
    109
    Vote Rating
    90
    Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light

      0  

    Default


    Tooltip functionality does not change at all by adding more series to the chart. With multiple series, the events I mentioned will still work.

    What have you tried? Can you share a code sample that does what I suggested by still doesn't work?

Thread Participants: 1

Tags for this Thread

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi