Hybrid View

  1. #1
    Sencha User jinionnet's Avatar
    Join Date
    Apr 2012
    Location
    Cochin
    Posts
    42
    Vote Rating
    0
    jinionnet is on a distinguished road

      0  

    Default Chart numeric axis decimal issue

    Chart numeric axis decimal issue


    Hi Guys,
    I have created a line chart with Numeric axis. When my Numeric axis value less than 10 it is splits to decimal value and I have to display some "Count" values in Numeric axis so it is absolutely nonsense. So I am finding a solution to avoid this decimal rendering for my chart. Please help me to resolve this issue. Or is it a Ext 4.1 native bug?

    Here is my graph config

    Code:
      Ext.applyIf(me, {
                axes: [
                    {
                        type: 'Category',
                        fields: [
                            'enrolled_date'
                        ],
                        label: {
                            renderer: Ext.util.Format.dateRenderer('Y-m-d')
                        },
                        position: 'bottom',
                        title: 'Registered Date',
                        calculateCategoryCount: false
                    },
                    {
                        type: 'Numeric',
                        fields: [
                            'count'
                        ],
                        position: 'left',
                        title: 'No of Mothers',
                        minimum: 0
                    }
                ],
                series: [
                    {
                        type: 'line',
                        xField: 'enrolled_date',
                        yField: [
                            'count'
                        ],
                        fill: true,
                        smooth: 3
                    }
                ]
            });
    Also my JSON data is as follows

    Code:
    [{"enrolled_date":"2012-04-21 00:00:00","count":"1"},{"enrolled_date":"2012-04-29 00:00:00","count":"5"},{"enrolled_date":"2012-04-30 00:00:00","count":"1"},{"enrolled_date":"2012-05-03 00:00:00","count":"1"}]
    And my graph screen shot

    graph.jpg


    thanks in advance,
    Jini

  2. #2
    Sencha User jinionnet's Avatar
    Join Date
    Apr 2012
    Location
    Cochin
    Posts
    42
    Vote Rating
    0
    jinionnet is on a distinguished road

      0  

    Default


    Hi All,
    Please help me to resolve this issue...

    Thanks,

  3. #3
    Sencha User
    Join Date
    Mar 2012
    Posts
    50
    Vote Rating
    2
    pierresas is on a distinguished road

      0  

    Default


    The number of ticks is 10 by default. You can set the 'majorTickSteps' config to 5 for instance, or to the maximum value in your data, and that should remove the decimal values along the axis.

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