Results 1 to 2 of 2

Thread: [4.2.0 RC] NumericAxis minimum adjust issue if < 1

Hybrid View

Previous Post Previous Post   Next Post Next Post
    Looks like we can't reproduce the issue or there's a problem in the test case provided.
  1. #1
    Sencha User Daniil's Avatar
    Join Date
    Jun 2010
    Location
    Saint-Petersburg, Russia
    Posts
    1,016
    Vote Rating
    125
      0  

    Default [4.2.0 RC] NumericAxis minimum adjust issue if < 1

    REQUIRED INFORMATION

    Ext version tested:

    • Ext 4.2.0 RC

    Browser versions tested against:
    • FireFox
    • Chrome
    • IE9

    DOCTYPE tested against:
    • <!DOCTYPE html>

    Description:
    • The NumericAxis' minimum seems to be auto-calculated incorrectly if it should fall between 0 and 1.
    • In the test case I provide another dataset there the minimum is auto-calculated correctly if it is > 1.

    Steps to reproduce the problem:
    • Just run the sample

    The result that was expected:
    • The minimum is about 0.7 (likewise 70 with another dataset).

    The result that occurs instead:
    • The minimum is 0.

    Test Case:

    Code:
    <!DOCTYPE html>
    <html>
    <head>
        <title>NumericAxis adjust minimum issue if < 1</title>
    
        <link rel="stylesheet" href="../resources/css/ext-all.css" />
        
        <script src="../ext-all-debug.js"></script>
    
        <script>
            Ext.onReady(function () {
                Ext.create("Ext.panel.Panel", {
                    renderTo: Ext.getBody(),
                    height: 400,                
                    width: 400,
                    layout: "fit",
                    title: "Chart",
                    items: [{
                        xtype: "chart",
                        axes: [{
                            position: "left",
                            fields: ["Value"],
                            type: "Numeric"
                        }, {
                            position: "bottom",
                            fields: ["XField"],
                            type: "Category"
                        }],
                        series: [{
                            xField: "XField",
                            yField: "Value",
                            type: "line"
                        }],
                        store: {
                            fields: [{
                                name: "XField"
                            }, {
                                name: "Value"
                            }],
                            data: [{
                                XField: "Jan",
                                Value: 0.75
                            }, {
                                XField: "Feb",
                                Value: 0.80
                            }, {
                                XField: "Mar",
                                Value: 0.85
                            }, {
                                XField: "Apr",
                                Value: 0.90
                            }, {
                                XField: "May",
                                Value: 0.80
                            }, {
                                XField: "Jun",
                                Value: 0.75
                            }, {
                                XField: "Jul",
                                Value: 0.85
                            }]
                            //data: [{
                            //    XField: "Jan",
                            //    Value: 75
                            //}, {
                            //    XField: "Feb",
                            //    Value: 80
                            //}, {
                            //    XField: "Mar",
                            //    Value: 85
                            //}, {
                            //    XField: "Apr",
                            //    Value: 90
                            //}, {
                            //    XField: "May",
                            //    Value: 80
                            //}, {
                            //    XField: "Jun",
                            //    Value: 75
                            //}, {
                            //    XField: "Jul",
                            //    Value: 85
                            //}]
                        }
                    }]                
                });
            });
        </script>
    </head>
    <body>
    
    </body>
    </html>


    Object.NET
    Frameworks and Tools for .NET Developers
    --------------------------------------------------
    Ext.NET - Ext JS for ASP.NET - Examples | Twitter
    Bridge.NET - Write C#. Run JavaScript! - Live | Twitter
    --------------------------------------------------

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,326
    Vote Rating
    1297
      0  

    Default

    Thanks for the report! I have opened a bug in our bug tracker.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •