Line Chart Layer

POST Request

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

Example

{
   "layers":[
      {
         "type":"LineChartLayer",
         "line":{
            "type":"NamedStyle",
            "name":"/Samples/NamedStyles/LineStyleSolid"
         },
         "chartheight":{
            "uom":"Pixel",
            "value":"300"
         },
         "categories":[
            {
               "expression":"Pop_2000",
               "description":"Pop_2000"
            },
            {
               "expression":"Pop_Male",
               "description":"Pop_Male"
            },
            {
               "expression":"Pop_Female",
               "description":"Pop_Female"
            }
         ],
         "table":{
            "type":"NamedTable",
            "name":"/Samples/NamedTables/USA"
         },
         "chartwidth":{
            "uom":"Pixel",
            "value":"300"
         }
      },
      {
         "type":"FeatureLayer",
         "table":{
            "type":"NamedTable",
            "name":"/Samples/NamedTables/USA"
         }
      }
   ]
}