Results 1 to 2 of 2

Thread: 6.5.1 Modern - Chart.label renderer Rendererdata doesn't seem to update

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha Premium Member
    Join Date
    Feb 2016
    Posts
    51

    Default 6.5.1 Modern - Chart.label renderer Rendererdata doesn't seem to update

    Not got time to make a small reproducible standalone case right now, but may do one later if I get an opportunity.

    It appears that the store in the rendererData parameter of the renderer function for piechart labels in 6.5.1 modern never gets updated after the chart store is set for the first time.

    Changing the chart store either via a viewModel bind or via a manual SetData call successfully changes the pie proportions, however within the following series config the rendererData.store represented the original values, not the new values on the chart so the labels became inconsistent. I've been able to work around it by using the viewmodel for both parts of the calculation.

    PHP Code:
                series:[{
                    
    type'pie',
                    
    angleField'Count',
                    
    donut50,
                    
    highlighttrue,
                    
    label: {
                        
    field'Status',
                        
    renderer: function(textspriteconfigrendererDataindex) {
                        var 
    tpl = new Ext.Template("{0} \n {1:percent('0.00')}");
                         var 
    percentage rendererData.store.getAt(index).get('Count') / this.lookupViewModel().get('record.StepsTotal');
                         return 
    tpl.apply([textpercentage]);                    }
                    }
                }] 

  2. #2
    Sencha Premium Member
    Join Date
    Feb 2016
    Posts
    51

    Default

    Found out that I've got a related issue where loadFlush() is crashing which is probably causing the store not to be updated properly, so this can probably be closed. Trying to reproduce in Fiddle worked as expected.

Similar Threads

  1. Replies: 2
    Last Post: 20 Jun 2016, 12:54 PM
  2. Chart Series Label Renderer
    By bernard.chung in forum Ext 5: Q&A
    Replies: 5
    Last Post: 8 Jan 2015, 9:09 AM
  3. Replies: 3
    Last Post: 7 Oct 2013, 12:01 PM
  4. Replies: 2
    Last Post: 15 Aug 2011, 11:49 AM

Posting Permissions

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