1. #1
    Sencha User rbraddy's Avatar
    Join Date
    Jul 2009
    Location
    Houston, TX
    Posts
    144
    Vote Rating
    7
    rbraddy is on a distinguished road

      0  

    Default Live Update Charts with Time Axis - Doesn't work

    Live Update Charts with Time Axis - Doesn't work


    Hi,

    I have burned most of the day today trying to get a basic live updating chart to work - no joy... I just purchased SA, so not sure what the best way to get support is on the forum, so I'll just attach a copy of my project file (I suppose that's helpful with SA).

    Sencha Architect 2 is crashing when I try to feed the Time Axis actual "time" (instead of "date") values.

    ISSUE - SA Crashing on time-series data
    The situation is, I have a client-side SA App that's under development, using four chart objects and Json/Ajax reader/proxy to PHP on the server side. I was able to get the chart object to work using text labels, but I need it to scroll once per second as new values are retrieved from the server (e.g., to show changes in % CPU).

    The JSON is coming across fine, but I think SA is crashing because it can't understand time values...

    Thoughts or suggestions?

    Thanks
    Rick

    P.S. Here's the JSON data from the server:

    {
    "success": true,
    "status": "Operation successful.",
    "records": [
    {
    "timeval": "08 04 12 18 33 59",
    "value": 73
    },
    {
    "timeval": "08 04 12 18 34 00",
    "value": 31
    },
    {
    "timeval": "08 04 12 18 34 01",
    "value": 96
    },
    {
    "timeval": "08 04 12 18 34 02",
    "value": 68
    },
    {
    "timeval": "08 04 12 18 34 03",
    "value": 46
    }
    ],
    "total": 5
    }
    Attached Files

  2. #2
    Sencha User rbraddy's Avatar
    Join Date
    Jul 2009
    Location
    Houston, TX
    Posts
    144
    Vote Rating
    7
    rbraddy is on a distinguished road

      0  

    Default


    I decided to avoid the Time axis and used a Category axis object instead, using "mm ss" labels to simulate the timestamps. Works well enough...

    Clearly the "Time" axis works for Dates but not Times... (or SA has issues with it - not sure which)