Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Ext GWT Premium Member
    Join Date
    Oct 2011
    Posts
    99
    Vote Rating
    0
    LEWJO10@ca.com is on a distinguished road

      0  

    Default Doing Chart Drilldowns

    Doing Chart Drilldowns


    Hi Brendan.

    When you add a addSeriesSelectionHandler to a BarSeries, all you get in the event is the value of what was clicked.

    This is not very useful for doing chart drilldowns where you may want to show a chart with more detail for the x-axis category or date corresponding to the click and the series item itself. The value of what was clicked is not unique (could be the same for more than one category or date or series).

    Getting the index of what was clicked (selected) is far more informative. It can be used to determine which model in the ListStore corresponds to the click and what property (series) was involved.

    Please see the method onMouseDown and the method onSeriesClick in the attached file. This is how I plan to support chart drilldowns.

    Will this approach work with all chart types?

    Is there a better way?

    Or do you plan to enhance the event to be more informative?

    Thanks,
    John Lewis
    Attached Files

  2. #2
    Ext GWT Premium Member
    Join Date
    Oct 2011
    Posts
    99
    Vote Rating
    0
    LEWJO10@ca.com is on a distinguished road

      0  

    Default


    Hi Brendan.

    No need to answer this thread.

    I checked out the ToolTipExample in greater detail in the Ext GWT Explorer Demo – PR 5 and found a much better approach to use.

    By the way, the ToolTipExample doesn’t really work completely.

    Perhaps that could be fixed.

    Thanks again,
    John Lewis

  3. #3
    Ext GWT Premium Member
    Join Date
    Oct 2011
    Posts
    99
    Vote Rating
    0
    LEWJO10@ca.com is on a distinguished road

      0  

    Default


    Hi Brendan.

    I changed my mind again!

    I would like for this thread to be answered.

    In my opinion, SeriesSelectionEvent should include index in addition to value (like SeriesItemOverEvent does).

    Then, a SeriesSelectionHandler can be used for chart drilldowns and a SeriesItemOverHandler can be used to customize chart tooltips.

    Please let me know you thoughts.

    Thanks,
    John Lewis

  4. #4
    Sencha - GXT Dev Team BrendanC's Avatar
    Join Date
    Aug 2010
    Posts
    534
    Vote Rating
    3
    BrendanC is on a distinguished road

      0  

    Default


    Good point. Especially as the series renderers do contain the appropriate index for the sprite. I will include it in the next release. Also I am curious what you mean by the ToolTipExample not completely working. The only bug I know of is in IE8. Thanks.

  5. #5
    Ext GWT Premium Member
    Join Date
    Oct 2011
    Posts
    99
    Vote Rating
    0
    LEWJO10@ca.com is on a distinguished road

      0  

    Default


    Hi Brendan.

    I should have been more clearer in my post.

    When you do a mouse-over on the data points in the ToolTip Chart in the Ext GWT Explorer Demo – PR 5, the tooltips popup empty in Firefox and IE.

    Not sure if it is a coding error or a bug.

    From what I can gather in reviewing the code is that the intent is to show a pie chat in the tooltip, which if true is pretty cool.

    John Lewis.

  6. #6
    Sencha - GXT Dev Team BrendanC's Avatar
    Join Date
    Aug 2010
    Posts
    534
    Vote Rating
    3
    BrendanC is on a distinguished road

      0  

    Default


    From my testing it looks like the tooltip example does not work in IE 8 and FF 3 and is slated to be fixed. Let me know if you have a problem with any other browsers.

Thread Participants: 1