1. #1
    Sencha User
    Join Date
    Oct 2010
    Location
    Twin Falls, Idaho
    Posts
    9
    Vote Rating
    0
    reuben.olsen is on a distinguished road

      0  

    Default Chart inconsistencies when using Remote JSON vs Local JSON

    Chart inconsistencies when using Remote JSON vs Local JSON


    I built 3 charts in Architect using a local JSON store to test the data - they look great. When I switched the source store for the charts to the remote server the Line and Radar charts had issues while the Bar chart was OK. The JSON is EXACTLY the same in both cases. Nothing changed except the URL for the ajax proxy. When I switch back to local the charts display correctly. This issue is consistent in all browsers.

    Here is the JSON - again this is exactly the same for both remote and local. I double checked it in the Chrome inspector and in Firebug.

    {
    data: [
    {
    INSTANCE: "A0",
    SCORE: 70
    },
    {
    INSTANCE: "A14",
    SCORE: 61
    },
    {
    INSTANCE: "A28",
    SCORE: 57
    },
    {
    INSTANCE: "D0",
    SCORE: 46
    },
    {
    INSTANCE: "D180",
    SCORE: 44
    },
    {
    INSTANCE: "D365",
    SCORE: 46
    }
    ]
    }

    Here is a screenshot of the charts using the local JSON:
    local_json.jpg

    And the remote JSON:
    remote_json.jpg

    Again, all 3 charts use the same JSON store. With remote the Line chart is completely broken - it appears as though it will work while rendering but the line appears and then immediately "animates" off the screen. The Radar chart is missing the X labels.

    I reverted back to 4.0.7 and have the same issues.

    There appears to be a timing issue when loading a remote store because occasionally the X labels will show up on the Radar chart. Some charts may try and render before all the data has been received???

  2. #2
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    8,927
    Vote Rating
    443
    scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future

      0  

    Default


    Please send a test case so we can review this issue.

    Regards,
    Scott.

  3. #3
    Sencha User
    Join Date
    Oct 2010
    Location
    Twin Falls, Idaho
    Posts
    9
    Vote Rating
    0
    reuben.olsen is on a distinguished road

      0  

    Default


    UPDATE: I was able to get the line graph working by modifying the Model the store was tied to. The model was typing INSTANCE and SCORE as strings - when I removed those types the line graph rendered correctly. Why would the line graph be so finicky about the types when the bar chart doesn't care either way?

    Clarification on original post: I had created 2 stores/models, one pointing to a local JSON file and the other pointing to a remote JSON file. The JSON is identical - the only difference between them was the typing of the second (remote) model as described above. When the typing was normalized between the 2 models the line and bar charts worked fine. The only problem I'm left with is the inconsistent rendering of the x-axis labels of the radar chart. When using the remote JSON it renders those labels less than 10% of the time. Using the local JSON they render perfectly 100% of the time.

    I'll see about putting together a sample project to send in.

    Reuben

Thread Participants: 1

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