1. #1
    Sencha User
    Join Date
    Apr 2012
    Posts
    16
    Vote Rating
    0
    ParthaSaha is on a distinguished road

      0  

    Default Unanswered: ExtJs 4.1 Charts Y Axis Value Display Issue

    Unanswered: ExtJs 4.1 Charts Y Axis Value Display Issue


    I am using ExtJs 4.1 . I have defined a ExtJs Chart Y axis as follows:
    Code:
    axes: [
        {
            type: 'Numeric',
            minimum: 0,
            position: 'left',
            fields: ['count'],
            title: 'Count',
            label: {
                renderer: function(v){
                    // return a value only if it is an integer
    if(v.toString().indexOf(".")===-1){
                        return v;
                    }
                    else{
                        // return empty string, so as not to have "undefined" return'';
                    }
                },
                font: '9pxArial'
            }

    The problem is sometimes when the Y axis range is between 1 to 5 , Y axis values are not shown except 0 (which is the minium in this case). However when the Y axis value upper range is greater than 10 then the chart behaves correctly.

    The requirement is such that Y axis values can be in the range of as small as 1-5 or could be in the range of 1-9999 .

    Can someone guide me what could be the possible reason for this weird behaviour and what is the solution for this ?

    Last edited by dawesi; 12 Nov 2012 at 9:14 AM. Reason: Code Tags Not Used

  2. #2
    Sencha Premium Member dawesi's Avatar
    Join Date
    Mar 2007
    Location
    Melbourne, Australia (aka GMT+10)
    Posts
    1,082
    Answers
    24
    Vote Rating
    41
    dawesi has a spectacular aura about dawesi has a spectacular aura about

      0  

    Default


    can you provide a screenshot of your chart?
    Teahouse Training Company
    Official Certified Sencha Trainer

    Australia / New Zealand / Singapore / Hong Kong & APAC



    SenchaWorld.com - Sencha webinars, videos, etc
    SenchaForge.org - (coming soon)
    TeahouseHQ.com - Sencha ecosystem training portal

    Code Validation : JSLint | JSONLint | JSONPLint

  3. #3
    Sencha User
    Join Date
    Apr 2012
    Posts
    16
    Vote Rating
    0
    ParthaSaha is on a distinguished road

      0  

    Default Please find attached those screenshots

    Please find attached those screenshots


    Please find attached those screenshots
    Attached Images

  4. #4
    Sencha User
    Join Date
    Apr 2012
    Posts
    16
    Vote Rating
    0
    ParthaSaha is on a distinguished road

      0  

    Default Can someone please answer ?

    Can someone please answer ?


    Can someone please answer ?

Thread Participants: 1