[CLOSED] [#18] Chart: Single Column Series yField incorrect

  1. #1

    [CLOSED] [#18] Chart: Single Column Series yField incorrect

    This is related to a discussion in a previous thread.

    I use the value of the item.yField to perform some actions and it works perfectly when there are more than one YField defined in a columns series, but if there is only one the yField is a single character (e.g. 'D') instead of the full name (e.g. 'Data1').

    If believe this is occurring deep in the logic because the series yField could be a string (if only one field) or a string collection (if multiple fields).

    Use your Chart -> Column -> Basic example and inspect the items yField or change the tip renderer to add the yField.

    Suggestion: You should also probably change the tip renderer to not hard code storeItem.get('Data1') incase someone wanted to extended your example with additional series Data2, Data3, ... Use item.value[1] instead.

    Original Code
    <Tips runat="server" TrackMouse="true" Width="140" Height="28">
       <Renderer Handler="this.setTitle(item.yField + ' : ' + storeItem.get('Name') + ': ' + storeItem.get('Data1'));" />
    </Tips>
    Updated Code
    <Tips runat="server" TrackMouse="true" Width="140" Height="28">
       <Renderer Handler="this.setTitle(item.yField + ' | ' + item.value[0].substr(0,3) + ': ' + item.value[1]);" />
    </Tips>
    Now add an additional series Data2 and see what the tip renderer produces.

    With one data series the tip will be 'D | Nov: ##', but with two or more series the tip will be 'Data1 | Nov: ##' or 'Data2 | Nov: ##'.
    Last edited by Daniil; Dec 29, 2012 at 11:16 AM. Reason: [CLOSED]
  2. #2
    Hi Chris,

    Thank you. I reported to Sencha.
    http://www.sencha.com/forum/showthread.php?249041

    Do you need a temporary fix for now?
  3. #3
    No. I have temporarily changed my chart tip renderer. Once fixed I will change back.
  4. #4
    They marked as fixed in 4.2.0.
  5. #5

    Issue created

    Opened an Issue to track this defect, see

    https://github.com/extnet/Ext.NET/issues/18

    Looks like this issue has been fixed in Ext JS 4.2. The fix will be incorporated in the Ext.NET 2.2 release.
  6. #6
    It has been fixed in SVN (trunk).

    Thank you again for the report.

Similar Threads

  1. [OPEN] [#77] Chart legend problems with large amount of series
    By MWM2Dev in forum 2.x Legacy Premium Help
    Replies: 14
    Last Post: Dec 21, 2012, 4:23 AM
  2. [CLOSED] chart series double click event
    By SymSure in forum 2.x Legacy Premium Help
    Replies: 4
    Last Post: Sep 04, 2012, 2:03 PM
  3. [CLOSED] Text on Series and Tool tips for Grouped Bar Chart
    By WHISHWORKS in forum 2.x Legacy Premium Help
    Replies: 3
    Last Post: Jul 16, 2012, 10:59 AM
  4. Replies: 0
    Last Post: May 21, 2012, 5:16 AM
  5. [CLOSED] Gridpanel single header for two column or more
    By speedstepmem2 in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Feb 16, 2009, 7:22 AM

Posting Permissions