+ 1

I'm making a chart and want the data in the chart to be connected to the data bases , so the data can be automically change

help me, I want to take the MAU variable to be replaced with the data in the databases so that the data can be automatically replaced in MySQL: this Javascript: chart.data = [ { "network": "Tempat Wisata", "MAU": 22552 }, { "network": "Penginapan", "MAU": 4300 }, { "network": "Sekolah", "MAU": 12000 } }

6th Jul 2021, 4:27 PM
Guntur Darmawan
Guntur Darmawan - avatar
1 Respuesta
+ 1
You mean MAU need to get live data from db, right? Solution: build api to query the required data in db, call that api every like every 2 or 3s and update the value. Cons: not working smoothly with big data, performance
7th Jul 2021, 6:42 PM
Phan Thanh Bình
Phan Thanh Bình - avatar