1. #1
    Sencha User
    Join Date
    Jan 2012
    Posts
    2
    Vote Rating
    0
    VLaing is on a distinguished road

      0  

    Default Is it possible to hide individual points or sections of a line chart?

    Is it possible to hide individual points or sections of a line chart?


    Hi
    I am a newbie to gxt and I am trying to solve a particular problem. I have modified the LineExample (which draws a line chart) which comes with the gxt-3.0.0-beta2 download; see the attached screenshot, “chartLine1.jpg”. The x-axis goes from Jan to Dec and y-axis goes from 0 to 100.
    Basically what I would like to do is to have a gap show up in the line chart i.e. have the line display from Jan to Feb than show a gap (no line) from Feb to Apr and display the line again for Apr to Dec.
    If I remove the I simply remove the point (Mar) from the data store using “store(2)” I get the line chart with the point missing and no gap, see the attached screenshot, “chartLine2.jpg”. Any help is greatly appreciated.
    Thanks in advance!
    Victor
    Attached Images

  2. #2
    Sencha User
    Join Date
    Jan 2012
    Posts
    22
    Vote Rating
    0
    hrishirise is on a distinguished road

      0  

    Post


    You can over ride setLabelProvider, to create a gap on the TimeAxis.
    For example like this.

    time.setLabelProvider(new LabelProvider<Date>() {
    @Override
    // Otherwise show empty
    public String getLabel(Date item) {
    //Your logic of gap based on the item.
    }
    });

  3. #3
    Sencha User
    Join Date
    Jan 2012
    Posts
    2
    Vote Rating
    0
    VLaing is on a distinguished road

      0  

    Default Thanks I will try that!

    Thanks I will try that!


    Thanks I will try that!

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

      0  

    Default


    Related to this I have changed numeric axis and line series to handle values it cannot display like null and NaN. This could be used to create a gap between line series. This change is in SVN and will be in the next release.

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

      0  

    Default


    I have also just added a change in SVN for a gapless boolean on line series. Non-gapless series will use moveto instead of lineto for the path across gaps.

Thread Participants: 2

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..."