Bar Layer with Constant Graduation
POST Request
POST http://hostname:port/rest/Spatial/MappingService/maps/image.png;w=400;h=400;b=-125,23,-66,49,epsg%3A4269
Content-type: application/json
Authorization: <Basic or Spectrum Token>
Example
{
"layers":[
{
"type":"BarLayer",
"verticalAlignment":"BOTTOM",
"horizontalAlignment":"CENTER",
"chartEffectType":"AS3D",
"Table":{
"type":"NamedTable",
"name":"/Samples/NamedTables/USA"
},
"Graduation":{
"type":"Graduation",
"graduationMethod":"CONSTANT",
"valueAtSize":7000000
},
"Border":{
"type":"NamedStyle",
"name":"/Samples/NamedStyles/LineStyleSolid"
},
"CategoryList":{
"type":"CategoryList",
"Category":[
{
"type":"Category",
"expression":"Pop_2000",
"description":"Pop_2000",
"Style":{
"type":"NamedStyle",
"name":"/Samples/NamedStyles/AreaStyleBlue"
}
},
{
"type":"Category",
"expression":"Pop_Male",
"description":"Pop_Male",
"Style":{
"type":"NamedStyle",
"name":"/Samples/NamedStyles/AreaStyleBlue"
}
},
{
"type":"Category",
"expression":"Pop_Female",
"description":"Pop_Female",
"Style":{
"type":"NamedStyle",
"name":"/Samples/NamedStyles/AreaStyleBlue"
}
}
]
},
"BarBaseSize":{
"type":"BaseSize",
"mapScale":2.28096E7,
"useScale":true
}
},
{
"type":"FeatureLayer",
"Table":{
"type":"NamedTable",
"name":"/Samples/NamedTables/USA"
}
}
]
}