tmcgee/cmv-wab-widgets

View on GitHub
config/chart.json

Summary

Maintainability
Test Coverage
{
    "charts": [
        {
            "url": "https://sampleserver6.arcgisonline.com/arcgis/rest/services/SampleWorldCities/MapServer/0",
            "filter": {
                "logicalOperator": "AND",
                "parts": [],
                "expr": "1=1"
            },
            "name": "Display values feature by feature",
            "description": "",
            "mode": "feature",
            "types": [],
            "symbol": {
                "color": [
                    0,
                    0,
                    128,
                    128
                ],
                "size": 18,
                "angle": 0,
                "xoffset": 0,
                "yoffset": 0,
                "type": "esriSMS",
                "style": "esriSMSCircle",
                "outline": {
                    "color": [
                        0,
                        0,
                        128,
                        255
                    ],
                    "width": 0.75,
                    "type": "esriSLS",
                    "style": "esriSLSSolid"
                }
            },
            "highLightColor": "#ff0000",
            "column": {
                "colors": [
                    "#5d9cd3"
                ],
                "horizontalAxis": true,
                "verticalAxis": true
            },
            "pie": {
                "colors": [
                    "#5d9cd3",
                    "#eb7b3a",
                    "#a5a5a5",
                    "#febf29",
                    "#4673c2",
                    "#72ad4c"
                ],
                "label": true
            },
            "bar": {
                "colors": [
                    "#5d9cd3"
                ],
                "horizontalAxis": true,
                "verticalAxis": true
            },
            "line": {
                "colors": [
                    "#5d9cd3"
                ],
                "horizontalAxis": true,
                "verticalAxis": true
            },
            "labelField": "CITY_NAME",
            "valueFields": [
                "POP"
            ],
            "sortOrder": "asc"
        },
        {
            "url": "https://sampleserver6.arcgisonline.com/arcgis/rest/services/SampleWorldCities/MapServer/0",
            "filter": {
                "logicalOperator": "AND",
                "parts": [],
                "expr": "1=1"
            },
            "name": "Display values by category",
            "description": "",
            "mode": "category",
            "types": [],
            "symbol": {
                "color": [
                    0,
                    0,
                    128,
                    128
                ],
                "size": 18,
                "angle": 0,
                "xoffset": 0,
                "yoffset": 0,
                "type": "esriSMS",
                "style": "esriSMSCircle",
                "outline": {
                    "color": [
                        0,
                        0,
                        128,
                        255
                    ],
                    "width": 0.75,
                    "type": "esriSLS",
                    "style": "esriSLSSolid"
                }
            },
            "highLightColor": "#ff0000",
            "column": {
                "colors": [
                    "#5d9cd3"
                ],
                "horizontalAxis": true,
                "verticalAxis": true
            },
            "pie": {
                "colors": [
                    "#5d9cd3",
                    "#eb7b3a",
                    "#a5a5a5",
                    "#febf29",
                    "#4673c2",
                    "#72ad4c"
                ],
                "label": true
            },
            "bar": {
                "colors": [
                    "#5d9cd3"
                ],
                "horizontalAxis": true,
                "verticalAxis": true
            },
            "line": {
                "colors": [
                    "#5d9cd3"
                ],
                "horizontalAxis": true,
                "verticalAxis": true
            },
            "categoryField": "POP_RANK",
            "operation": "sum",
            "valueFields": [
                "POP"
            ],
            "sortOrder": "asc"
        },
        {
            "url": "https://sampleserver6.arcgisonline.com/arcgis/rest/services/SampleWorldCities/MapServer/0",
            "filter": {
                "logicalOperator": "AND",
                "parts": [],
                "expr": "1=1"
            },
            "name": "Display feature counts by category",
            "description": "",
            "mode": "count",
            "types": [],
            "symbol": {
                "color": [
                    0,
                    0,
                    128,
                    128
                ],
                "size": 18,
                "angle": 0,
                "xoffset": 0,
                "yoffset": 0,
                "type": "esriSMS",
                "style": "esriSMSCircle",
                "outline": {
                    "color": [
                        0,
                        0,
                        128,
                        255
                    ],
                    "width": 0.75,
                    "type": "esriSLS",
                    "style": "esriSLSSolid"
                }
            },
            "highLightColor": "#ff0000",
            "column": {
                "colors": [
                    "#5d9cd3"
                ],
                "horizontalAxis": true,
                "verticalAxis": true
            },
            "pie": {
                "colors": [
                    "#5d9cd3",
                    "#eb7b3a",
                    "#a5a5a5",
                    "#febf29",
                    "#4673c2",
                    "#72ad4c"
                ],
                "label": true
            },
            "bar": {
                "colors": [
                    "#5d9cd3"
                ],
                "horizontalAxis": true,
                "verticalAxis": true
            },
            "line": {
                "colors": [
                    "#5d9cd3"
                ],
                "horizontalAxis": true,
                "verticalAxis": true
            },
            "categoryField": "POP_RANK",
            "sortOrder": "asc"
        },
        {
            "url": "https://sampleserver6.arcgisonline.com/arcgis/rest/services/SampleWorldCities/MapServer/0",
            "filter": {
                "logicalOperator": "AND",
                "parts": [],
                "expr": "1=1"
            },
            "name": "Display attribute values as charts",
            "description": "",
            "mode": "field",
            "types": [],
            "symbol": {
                "color": [0, 0, 128, 128],
                "size": 18,
                "angle": 0,
                "xoffset": 0,
                "yoffset": 0,
                "type": "esriSMS",
                "style": "esriSMSCircle",
                "outline": {
                    "color": [0, 0, 128, 255],
                    "width": 0.75,
                    "type": "esriSLS",
                    "style": "esriSLSSolid"
                }
            },
            "highLightColor": "#ff0000",
            "column": {
                "colors": [
                    "#5d9cd3"
                ],
                "horizontalAxis": true,
                "verticalAxis": true
            },
            "pie": {
                "colors": [
                    "#5d9cd3",
                    "#eb7b3a",
                    "#a5a5a5",
                    "#febf29",
                    "#4673c2",
                    "#72ad4c"
                ],
                "label": true
            },
            "bar": {
                "colors": [
                    "#5d9cd3"
                ],
                "horizontalAxis": true,
                "verticalAxis": true
            },
            "line": {
                "colors": [
                    "#5d9cd3"
                ],
                "horizontalAxis": true,
                "verticalAxis": true
            },
            "operation": "sum",
            "valueFields": [
                "POP_RANK",
                "LABEL_FLAG"
            ]
        }
    ]
}