1. #1
    Sencha User
    Join Date
    Dec 2011
    Posts
    8
    Vote Rating
    0
    knil123rich is on a distinguished road

      0  

    Default Unanswered: Pie Chart - Series onClick(), get a particular propert of ValueProvider

    Unanswered: Pie Chart - Series onClick(), get a particular propert of ValueProvider


    Hi,
    I having a Pie Chart displayed and its ValueProvider looks like this,

    public interface DataPropertyAccess extends PropertyAccess<Data> {
    ValueProvider<Data, Double> data1();


    ValueProvider<Data, String> name();

    @Path("name")
    ModelKeyProvider<Data> nameKey();
    }
    The Label shown on the pie is "name". But on click I want to capture the data1() property of value provider.
    How doI do this?

    Regards.

  2. #2
    Sencha - GXT Dev Team BrendanC's Avatar
    Join Date
    Aug 2010
    Posts
    534
    Answers
    3
    Vote Rating
    3
    BrendanC is on a distinguished road

      0  

    Default


    The Pie Renderer Chart example shows how to do this using the SeriesSelectionEvent. http://sencha.com/examples-dev/#Exam...erendererchart

  3. #3
    Sencha User
    Join Date
    Dec 2011
    Posts
    8
    Vote Rating
    0
    knil123rich is on a distinguished road

      0  

    Default


    Hi,
    Thanks for your response. I took at look at the example in the link, but my problem is as follows:
    Eg: Label displayed on the pie slice is say, person's Age, but on click I want to capture the person's Name or some other attribute of person.

    Thanks & Regards.

  4. #4
    Sencha - GXT Dev Team BrendanC's Avatar
    Join Date
    Aug 2010
    Posts
    534
    Answers
    3
    Vote Rating
    3
    BrendanC is on a distinguished road

      0  

    Default


    Using the Pie renderer example you would use the series item index from the event and get the name from the store.
    Code:
    series.addSeriesSelectionHandler(new SeriesSelectionHandler() {      
         @Override
          public void onSeriesSelection(SeriesSelectionEvent event) {
            Info.display("Click", dataAccess.name().getValue(store.get(event.getIndex())));
          }
        });

Thread Participants: 1

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar