Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User
    Join Date
    Feb 2011
    Posts
    62
    Vote Rating
    0
    maslofer is on a distinguished road

      0  

    Default Maximum and Minimum Properties of Numeric Axis Fail for "Stacked" Column and Bar Char

    Maximum and Minimum Properties of Numeric Axis Fail for "Stacked" Column and Bar Char


    Usage of either property results in incorrect behavior for both bar and Column stacked charts.

    See this slight modification of <http://dev.sencha.com/deploy/ext-4.0.0/examples/charts/StackedBar.js> for an example. "maximum:10" has been added to the numeric axis. The axis is drawn correctly from 0-10 but the magnitudes of the bars are the same as if you had no bounds and are clearly drawn very incorrectly (mouse over for tooltips with actual bar size):

    Code:
    Ext.require('Ext.chart.*');
    Ext.require('Ext.layout.container.Fit');
    
    Ext.onReady(function () {
        var store = Ext.create('Ext.data.JsonStore', {
            fields: ['year', 'comedy', 'action', 'drama', 'thriller'],
            data: [
                    {year: 2005, comedy: 34000000, action: 23890000, drama: 18450000, thriller: 20060000},
                    {year: 2006, comedy: 56703000, action: 38900000, drama: 12650000, thriller: 21000000},
                    {year: 2007, comedy: 42100000, action: 50410000, drama: 25780000, thriller: 23040000},
                    {year: 2008, comedy: 38910000, action: 56070000, drama: 24810000, thriller: 26940000}
                  ]
        });
    
        var panel1 = Ext.create('widget.panel', {
            width: 800,
            height: 400,
            title: 'Stacked Bar Chart - Movies by Genre',
            renderTo: Ext.getBody(),
            layout: 'fit',
            items: {
                xtype: 'chart',
                animate: true,
                shadow: true,
                store: store,
                legend: {
                    position: 'right'
                },
                axes: [{
                    type: 'Numeric',
                    position: 'bottom',
                    fields: ['comedy', 'action', 'drama', 'thriller'],
                    title: false,
    				maximum:10,
                    grid: true,
                    label: {
                        renderer: function(v) {
                            return String(v).replace(/000000$/, 'M');
                        }
                    },
                    roundToDecimal: false
                }, {
                    type: 'Category',
                    position: 'left',
                    fields: ['year'],
                    title: false
                }],
                series: [{
                    type: 'bar',
                    axis: 'bottom',
                    gutter: 80,
                    xField: 'year',
                    yField: ['comedy', 'action', 'drama', 'thriller'],
                    stacked: true,
                    tips: {
                        trackMouse: true,
                        width: 65,
                        height: 28,
                        renderer: function(storeItem, item) {
                            this.setTitle(String(item.value[1] / 1000000) + 'M');
                        }
                    }
                }]
            }
        });
    });

  2. #2
    Sencha User
    Join Date
    Feb 2011
    Posts
    62
    Vote Rating
    0
    maslofer is on a distinguished road

      0  

    Default


    This has still not been fixed in 4.0.1

    Is there any more information I can provide to get it debugged?

Similar Threads

  1. Replies: 5
    Last Post: 16 Nov 2011, 8:11 AM
  2. Replies: 3
    Last Post: 14 Dec 2010, 10:22 PM
  3. "+" char as field separator in a single param
    By Sébastien Dolard in forum Ext 3.x: Help & Discussion
    Replies: 4
    Last Post: 24 Feb 2010, 12:25 PM
  4. Replies: 8
    Last Post: 22 Jun 2009, 8:56 PM
  5. Replies: 0
    Last Post: 31 Oct 2007, 2:17 PM
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