Home Forums Chart Support Error giving when changing JSON file name to other JSON file

Error giving when changing JSON file name to other JSON file

Viewing 2 posts - 1 through 2 (of 2 total)
  • #42915

    sir when i change my json file Test_json.json to Demo_json.json it gives unexpected token ‘;’ .

    sir when i copy the data of Demo_json.json and past it over Test_json.json it works but when i change the file Test_json.json to Demo_json.json it gives error unexpected token ‘;’.

    but whenever i change file Test_json.json to any file it gives same error every time. and when i past the json data over Test_json.json file it works fine.

    here i attached the link of one drive please visit

    https://1drv.ms/f/s!Ar-zm6Ea2LLygVjW98WW6cEZDFVm?e=fEM0hq

    #42927

    @ankitlwt,

    The issue seems to be happening only when you use Test_json.json as you are using variable ‘Demo_json’ in template (index.html – line no 93). Changing it to Test_json while working with Test_json.json file seems to be working fine. Please take a look at this updated sample project.

    Python Chart with Data from JSON File


    Vishwas R
    Team CanvasJS

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.