1. #1
    Sencha User
    Join Date
    Dec 2011
    Posts
    9
    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
    9
    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

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi