umberto61
Posts: 2
Joined: Wed Jun 23, 2021 6:33 am

Problem with getJSON

Hi, I'm new to highcharts, so my questions are probably very naive: I'm trying to get 'Stock chart with GUI'-demotemplate to work with my data in a flask context. Everything works fine when I use the aapl-ohlcv.json-demp data collected on Apache local server. I would like access my data from my local sqlite database, the data is then converted into the exact same format as aapl-ohlcv.json (at least I see absolutely no difference). But file is much longer and it has 1 minute ohlc-interval. Nothing loads! I get no errors of any kind in developertools, Can you help me?
User avatar
sebastian.h
Posts: 1734
Joined: Fri Aug 07, 2020 7:08 am

Re: Problem with getJSON

Hi,
Welcome to our forum and thanks for contacting us with your question.

Worth knowing how you have a possibility to load data, inside is preprocess data using JSON and getting data across domains (JSONP) fits your goal.
https://www.highcharts.com/docs/working ... using-json
https://www.highcharts.com/docs/working ... data-intro

Let me know how are you doing with this.
Best regards.
Sebastian Hajdus
Highcharts Developer
umberto61
Posts: 2
Joined: Wed Jun 23, 2021 6:33 am

Re: Problem with getJSON

Thank you very much! WIth a detour, your answer was very helpful. I found out via another demo which throwed an error that I had overseen a stupid little tag in my php script. Afterwards, everything worked like a charm.
User avatar
sebastian.h
Posts: 1734
Joined: Fri Aug 07, 2020 7:08 am

Re: Problem with getJSON

Hi umberto61,
That's great to hear! :)

In case of any further questions, feel free to contact us again.
Sebastian Hajdus
Highcharts Developer

Return to “Highcharts Stock”