Results 1 to 2 of 2

Thread: Renderer in a Grouped Bar Chart

  1. #1
    Sencha Premium Member
    Join Date
    Oct 2013
    Posts
    46
    Answers
    3

    Default Answered: Renderer in a Grouped Bar Chart

    I have a group bar chart that works perfectly, but I really want to add a label on it so I can show the value of data1, data2, and data3. However, since there is only series, there is only one label..so is there anyway I can somehow figure out how to apply the correct data value?



    Code:
       
            label: {
              display: 'insideEnd',
                field: 'data1', <--- what can I do here?
                renderer: Ext.util.Format.numberRenderer('0'),
                orientation: 'horizontal',
                color: '#333',
                'text-anchor': 'middle'
            },
            series  : [
            {
                type   : 'column',
                axis   : 'bottom',
                xField : 'name',
                yField : ['data1', 'data2', 'data3']
            }
         ]

  2. Oops...nevermind. I tried just making it an array like ['data1', 'data2', 'data'3] and it worked!

  3. #2
    Sencha Premium Member
    Join Date
    Oct 2013
    Posts
    46
    Answers
    3

    Default

    Oops...nevermind. I tried just making it an array like ['data1', 'data2', 'data'3] and it worked!

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •