Results 1 to 2 of 2

Thread: Touch chart, Time axis at bottom invisible

  1. #1
    Sencha Premium Member
    Join Date
    Apr 2011
    Posts
    22
    Answers
    1
    Vote Rating
    0
      0  

    Exclamation 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 - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,318
    Answers
    3883
    Vote Rating
    1291
      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 @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it!

    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 in print!

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

Tags for this Thread

Posting Permissions

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