[FIXED] [#1646] Highlight a slice of pie chart programmatically

Page 2 of 2 FirstFirst 12
  1. #11
    Thank you, Can you please fix the issue at earliest as we have to release to customers with this feature.

    Thank you,
    Vamsi.
  2. #12
    Sir,

    Waiting for your reply as request you to fix as ASAP.

    Thank you,
    Vamsi.
  3. #13
    Hello @Vamsi!

    I understand your anticipation to get this feature working, but we would need some time to be able to handle it. For the time being, please use the 2d pie. As we said before, we'll post a follow-up here as soon as we have this issue fixed, either from a Sencha Ext JS upgrade (if they fix it), or by our own.

    Hope you understand.
    Fabrício Murta
    Developer & Support Expert
  4. #14
    Any update on this?

    Thank you,
    Vamsi.
  5. #15
    Hello,

    Any update on this? Our customers are asking for it..Please let me know when it will be fix.

    Thank you,
    Vamsi.
  6. #16
    Hello @Vamsi!

    We have looked up this issue to assess including it in the current release but it didn't work out, unfortunately. It was noticed changes regarding Pie Charts in recent Ext JS versions, but such changes didn't address this issue.

    Unfortunately that's what we can say about this at the moment. I will try to take a look at this so we can at least include the feature in Ext.NET 5.2, will post a follow-up soon about the success of the attempt.
    Fabrício Murta
    Developer & Support Expert
  7. #17
    Hello again @vamsi!

    Here's how the sliceout() function should look like for it to work with both pie and pie3d charts; it has an extra step for pie 3d ones.

    function Sliceout(chart) {
        var store = chart.getStore(),
            record = store.findRecord("Month", "Apr"),
            record_id = store.indexOf(record),
            series = chart.getSeries()[0],
            series_item = series.getItemByIndex(record_id),
            spids = [],
            first_sprite, last_sprite, sprites, sprites_per_rec;
    
        if (Ext.getClassName(series) == "Ext.chart.series.Pie3D") {
            sprites_per_rec = series.spritesPerSlice;
            first_sprite = record_id * sprites_per_rec;
            last_sprite = first_sprite + sprites_per_rec;
            sprites = series.getSprites();
            series_item.sprite = sprites.slice(first_sprite, last_sprite);
        }
    
        chart.setHighlightItem(series_item);
    }
    This should work with your provided test case; notice the "Apr" constant value in the third line of the code above; you probably want to replace that to the record you want to highligh.

    Hope this helps!
    Fabrício Murta
    Developer & Support Expert
  8. #18
    We have also applied a proper fix to Ext.NET sources. It will be available next release, be it 5.1.1 or 5.2.0 (still to be defined).

    Thanks again for reporting the issue, and sorry for the delay solving it!
    Fabrício Murta
    Developer & Support Expert
Page 2 of 2 FirstFirst 12

Similar Threads

  1. Replies: 4
    Last Post: Sep 13, 2016, 5:19 AM
  2. [CLOSED] How to change individual slice pie color
    By Oliver in forum 2.x Legacy Premium Help
    Replies: 8
    Last Post: Jan 30, 2015, 12:11 PM
  3. Replies: 19
    Last Post: Dec 19, 2012, 2:24 PM
  4. Pie chart example
    By Gamerome in forum 2.x Help
    Replies: 2
    Last Post: Sep 09, 2012, 7:17 PM
  5. [CLOSED] Highlight a slice of pie chart programmatically
    By jchau in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Jul 12, 2012, 12:23 PM

Posting Permissions