Communication between ESP 32 and Javascript Google chart - Table/array formation

Hello guys,

My ESP 32 recieves LORA Data from a Arduino based wheather station.
It receives the DATA and sets up a websever to construct a Google chart.
Generally everything is working fine, but my question is to improve the data transfer between Google chart and C++ Program on the ESP.

The Google chart is running in HTML with Java Script as describes in Charts  |  Google Developers

Simplified: My Problem or question is:
How can I fill a variable in Javascript in my C++ program before calling the webserver to integrate it.
Currently I am reading out an array while im buiding the site, which is very time consuming.
My idea is to fill the needed js variable (var data = new google.visualization.DataTable()) offline in my C++ code.
Thank you very much.

Attached you can find my code.

Tyll

LORA_Reciever.ino (40.4 KB)

My idea is to fill the needed js variable (var data = new google.visualization.DataTable()) offline in my C++ code.

It is clear that you don't know what that assignment statement does, or you'd know that is creating a new instance of a class that you don't control. You can't make your C++ code change what that function does.