i need to generated a simple line chart using an array generated from form value calculations. What is the best way to accomplish this. I tried the bind to local data, but I don't know how to update the local data based on the array calculations.
PHP array
Array
(
[0] => Array
(
[name] => 0.1
[value] => 422.19
)
[1] => Array
(
[name] => 0.2
[value] => 256.77
)
[2] => Array
(
[name] => 0.4
[value] => 143.96
)...
bound local data
var windowSizeMbs = [
{
"country": "United States",
"rtt": "0.1mS",
"value": 108.81
},
{
"country": "United States",
"rttms": "0.2mS",
"value": 100.47
},
{
"country": "United States",
"rttms": "0.4mS",
"value": 87.11
},.....
PHP array
Array
(
[0] => Array
(
[name] => 0.1
[value] => 422.19
)
[1] => Array
(
[name] => 0.2
[value] => 256.77
)
[2] => Array
(
[name] => 0.4
[value] => 143.96
)...
bound local data
var windowSizeMbs = [
{
"country": "United States",
"rtt": "0.1mS",
"value": 108.81
},
{
"country": "United States",
"rttms": "0.2mS",
"value": 100.47
},
{
"country": "United States",
"rttms": "0.4mS",
"value": 87.11
},.....