Pre-baked Data Chart JSON
//predefined x/y values
//chart JSON used to create above, minimum required
{
"example_one": {
"values": [
["latitude", 10, 5, 40, 10, 50, 10, 30, 40, 20, 10]
],
"xAxis": [
"39.10", "39.19", "39.28", "39.37", "39.46", "39.55", "39.64", "39.73", "39.82", "39.91"
]
}
}
Chart JSON with dataSource URL (maxRecordCount > features.length)
//data source defined, no pre-baked x/y values
//dataset has less features than maxRecordCount so we do binning on client
{
"example_two": {
"xLabel": "ELEV",
"dataSource": "http://services.arcgis.com/P3ePLMYs2RVChkJx/arcgis/rest/services/USA_Airports/FeatureServer/0/query"
}
}
Chart JSON with dataSource URL (maxRecordCount < features.length)
//data source defined, no pre-baked x/y values
//dataset has MORE (300k) features than maxRecordCount so we do binning by making multiple request to REST endpoint
{
"example_two": {
"xLabel": "APPIMPVAL",
"dataSource": "http://services1.arcgis.com/OwiQO3QpAXsZqKvZ/arcgis/rest/services/StLouisCountyParcels/FeatureServer/0/query"
}
}