Map with Pie Layer Overlay

POST Request

POST http://hostname:port/rest/Spatial/MappingService/maps/image.png;w=800;h=600;c=-101.0,42.0,epsg%3A4269;z=3000%20mi
Content-type: application/json
Authorization: <Basic or Spectrum Token>

Example

{
   "name":"MapWithPieLayer",
   "layers":[
      {
         "type":"PieLayer",
         "depthfactor":"0.50",
         "verticalalignment":"MIDDLE",
         "wedgerenderdirection":"CLOCKWISE",
         "startangle":"180.0",
         "horizontalalignment":"CENTER",
         "charteffecttype":"AS3D",
         "charttype":"FULL",
         "diameter":{
            "uom":"Inch",
            "value":"1.0"
         },
         "piebasesize":{
            "usescale":"true",
            "mapscale":"2.28096E7"
         },
         "opacity":"1.0",
         "categories":[
            {
               "expression":"Pop_2000",
               "description":"Pop_2000",
               "style":{
                  "type":"NamedStyle",
                  "name":"/Samples/NamedStyles/AreaStyleBlue"
               }
            },
            {
               "expression":"Pop_Male",
               "description":"Pop_Male",
               "style":{
                  "type":"NamedStyle",
                  "name":"/Samples/NamedStyles/AreaStyleGreen"
               }
            },
            {
               "expression":"Pop_Female",
               "description":"Pop_Female",
               "style":{
                  "type":"NamedStyle",
                  "name":"/Samples/NamedStyles/AreaStyleRed"
               }
            }
         ],
         "spatialexpression":"Obj",
         "table":{
            "type":"NamedTable",
            "name":"/Samples/NamedTables/USA"
         },
         "border":{
            "type":"NamedStyle",
            "name":"/Samples/NamedStyles/LineStyleSolid"
         },
         "graduation":{
            "graduationmethod":"SQUARE_ROOT",
            "valueatsize":"250000000"
         }
      },
      {
         "type":"NamedLayer",
         "name":"/Samples/NamedLayers/LayerWithTable"
      }
   ]
}