Hi
I got jason with http2tools
[{"CurrDate":"11-11-2014","TotalSumPerDay":"12"},{"CurrDate":"11-17-2014","TotalSumPerDay":"43"}]
I try to put these into google graphs but I cant have those currdate&totalsumperday away.
I used jsonparser and tried to get it working with this:
https://www.b4x.com/android/forum/threads/add-charts-with-google-charts-service.39197/#content
Dim parser As JSONParser
parser.Initialize(json)
Dim root As List = parser.NextArray
For Each colroot As Map In root
Dim TotalSumPerDay As String = colroot.Get("TotalSumPerDay")
Dim CurrDate As String = colroot.Get("CurrDate")
Next
I got this and no google graph. The rows part is a mess....any help?
var data = new google.visualization.DataTable({"cols":[{"type":"string","id":"","label":"CurrDate"},{"type":"number","id":"","label":"TotalSumPerDay"}],"rows":[{"c":[{"v":{"CurrDate":"11-11-2014","TotalSumPerDay":"12"}},{"v":{"CurrDate":"11-17-2014","TotalSumPerDay":"43"}}]}]});
Thanks.
I got jason with http2tools
[{"CurrDate":"11-11-2014","TotalSumPerDay":"12"},{"CurrDate":"11-17-2014","TotalSumPerDay":"43"}]
I try to put these into google graphs but I cant have those currdate&totalsumperday away.
I used jsonparser and tried to get it working with this:
https://www.b4x.com/android/forum/threads/add-charts-with-google-charts-service.39197/#content
Dim parser As JSONParser
parser.Initialize(json)
Dim root As List = parser.NextArray
For Each colroot As Map In root
Dim TotalSumPerDay As String = colroot.Get("TotalSumPerDay")
Dim CurrDate As String = colroot.Get("CurrDate")
Next
I got this and no google graph. The rows part is a mess....any help?
var data = new google.visualization.DataTable({"cols":[{"type":"string","id":"","label":"CurrDate"},{"type":"number","id":"","label":"TotalSumPerDay"}],"rows":[{"c":[{"v":{"CurrDate":"11-11-2014","TotalSumPerDay":"12"}},{"v":{"CurrDate":"11-17-2014","TotalSumPerDay":"43"}}]}]});
Thanks.