Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User
    Join Date
    Nov 2010
    Posts
    398
    Vote Rating
    6
    gkatz is on a distinguished road

      0  

    Question Unanswered: axes label configuration

    Unanswered: axes label configuration


    Hi; my chart looks like the picture.
    I need to control the precision of the labels on the numeric axes. actually what I need is to control the lengh of the labels. I dont need all these digits after the dot. maximum 2 digits is enough. is there a way to do this? a
    Also, the picture is from chrome browser. will the chart axes values be different on a smartphone?
    thanks in advance
    Untitled.png

  2. #2
    Sencha User
    Join Date
    Nov 2010
    Posts
    168
    Vote Rating
    0
    philogb is on a distinguished road

      0  

    Default


    Hi,

    Thanks for your message. You can add a renderer to the label configuration:

    Code:
          
    axes: [{          type: 'Numeric',
              position: 'left',
              fields: ['djia'],
              title: 'Some title',
              label: {
                  //should return the formatted value
                  renderer: function(value) {
                      return Math.round(value * 100) / 100;
                  }
              }
          }]
    I hope this helps,

  3. #3
    Sencha User
    Join Date
    Nov 2010
    Posts
    398
    Vote Rating
    6
    gkatz is on a distinguished road

      0  

    Thumbs up


    super easy as always with sencha.
    thanks a lot.

  4. #4
    Sencha User
    Join Date
    Nov 2010
    Posts
    168
    Vote Rating
    0
    philogb is on a distinguished road

      0  

    Default


    You're welcome!

Thread Participants: 1

Tags for this Thread