1. #1
    Sencha Premium Member
    Join Date
    Apr 2011
    Posts
    18
    Vote Rating
    0
    Answers
    1
    salorob is on a distinguished road

      0  

    Exclamation Unanswered: Touch chart, Time axis at bottom invisible

    Unanswered: Touch chart, Time axis at bottom invisible


    Hi,

    having a strange problem with a chart in sencha touch 2.1.

    I'm using the 2.0 charts beta, a simple window i created using sencha architect, for test purposes.

    It consists of a numericAxis and an timeAxis like so:

    Code:
    xtype: 'chart',
                    id: 'chart',
                    store: 'valuesLogStore',
                    axes: [
                        {
                            type: 'time',
                            fields: [
                                'data_ts'
                            ]
                        },
                        {
                            type: 'numeric',
                            fields: [
                                'data_value'
                            ],
                            grid: {
                                odd: {
                                    fill: '#e8e8e8'
                                }
                            },
                            position: 'left'
                        }
                    ],
                    series: [
                        {
                            type: 'line',
                            labelField: 'data_key',
                            style: {
                                smooth: true,
                                stroke: 'rgb(0,200,0)',
                                fill: 'rgba(0,200,0,0.3)'
                            },
                            xField: 'data_ts',
                            yField: 'data_value'
                        }
                    ],
                    interactions: [
                        {
                            type: 'panzoom'
                        }
    the data looks like this:

    Code:
    {
        "key": 824725,
        "data_key": 20203,
        "data_ts": 1359466618,
        "data_value": 99.0,
        "set_by": "App"
      },
      {
        "key": 197,
        "data_key": 20203,
        "data_ts": 1354546808,
        "data_value": 30.0,
        "set_by": "App"
      },
    however, as you can see, there is no X axis:
    strange.jpg

    when i change the position of the axis tot Top, this happens:

    strange2.jpg

    so, something is happening. Still not what i wanted though.

    I just want the date on the bottom.

    Anyone experienced a same problem, or knows how to fix this? This chart is the only item in its container, wich is set to 'fit'.

    Regards,

    Robert

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    St. Louis, MO
    Posts
    33,599
    Vote Rating
    434
    Answers
    3102
    mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of

      0  

    Default


    Touch Charts 2 beta has been deprecated and rewritten for the charts in ST 2.1.0. You may want to use them.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    http://www.JSONPLint.com - Source to lint your JSONP!

    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!

    When posting code, please use BBCode's CODE tags.

Tags for this Thread