Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Dashboard is an ordered list of indicators and indicator drill pairs.

...

Code Block
titleExample of a dumped dashboardcollapsetrue
{
    "url": "/rest/projects/yufqzxkbiecj7jot/md/dashboards/fbvund7hls1s5a5s",
    "dumpTime": "2018-01-25T14:19:34Z",
    "version": "0",
    "content": {
        "id": "fbvund7hls1s5a5s",
        "name": "customer_intelligence_dashboard",
        "type": "dashboard",
        "content": {
            "blockRows": [
                {
                    "type": "indicator",
                    "indicator": "/rest/projects/$projectId/md/indicators?name=online_turnover_indicator",
                    "indicatorDrill": "/rest/projects/$projectId/md/indicatorDrills?name=online_turnover_indicator_drill",
                    "layout": "primary"
                },
                {
                    "type": "indicator",
                    "indicator": "/rest/projects/$projectId/md/indicators?name=offline_turnover_indicator",
                    "indicatorDrill": "/rest/projects/$projectId/md/indicatorDrills?name=offline_turnover_indicator_drill",
                    "layout": "primary"
                },
                {
                    "type": "indicator",
                    "indicator": "/rest/projects/$projectId/md/indicators?name=customers_indicator",
                    "indicatorDrill": "/rest/projects/$projectId/md/indicatorDrills?name=customers_indicator_drill",
                    "layout": "primary"
                },
                {
                    "type": "indicator",
                    "indicator": "/rest/projects/$projectId/md/indicators?name=purchases_indicator",
                    "indicatorDrill": "/rest/projects/$projectId/md/indicatorDrills?name=purchases_indicator_drill",
                    "layout": "primary"
                },
                {
                    "type": "indicator",
                    "indicator": "/rest/projects/$projectId/md/indicators?name=average_purchase_indicator",
                    "indicatorDrill": "/rest/projects/$projectId/md/indicatorDrills?name=average_purchase_indicator_drill",
                    "layout": "primary"
                },
                {
                    "type": "indicator",
                    "indicator": "/rest/projects/$projectId/md/indicators?name=purchases_customer_indicator",
                    "indicatorDrill": "/rest/projects/$projectId/md/indicatorDrills?name=purchases_customer_indicator_drill",
                    "layout": "primary"
                }
            ]
        },
        "accessInfo": {
            "createdAt": "2017-10-05T08:27:11Z"
        },
        "links": [
            {
                "rel": "self",
                "href": "/rest/projects/yufqzxkbiecj7jot/md/dashboards/fbvund7hls1s5a5s"
            }
        ]
    }
}

...

Code Block
titleExample of a dashboard with added categories block, distribution, ranking and time series blocks
collapsetrue
{
    "name": "catchment_area_dashboard",
    "type": "dashboard",
    "content": {
        "blockRows": [
            {
                "type": "indicator",
                "indicator": "/rest/projects/$projectId/md/indicators?name=turnover_indicator",
                "indicatorDrill": "/rest/projects/$projectId/md/indicatorDrills?name=turnover_indicator_drill",
                "layout": "primary"
            },
            {
                "type": "indicator",
                "indicator": "/rest/projects/$projectId/md/indicators?name=customers_indicator",a ranking indicator drill block
                "indicatorDrill": "/rest/projects/$projectId/md/indicatorDrills?name=customers_ina ranking indicator drill blockdicator_drill",
                "layout": "primary"
            },
            {
                "type": "indicator",
                "indicator": "/rest/projects/$projectId/md/indicators?name=purchases_customer_indicator",
                "indicatorDrill": "/rest/projects/$projectId/md/indicatorDrills?name=purchases_customer_indicator_drill",
                "layout": "primary"
            },
            {
                "type": "categories",
                "indicator": "/rest/projects/$projectId/md/indicators?name=turnover_indicator",
                "title": "Total Turnover value by channel",
                "description": "Total Turnover value by channel",
                "splitProperty": "baskets.on_off_name",
                "orderBy": {
                    "property": "baskets.on_off_name",
                    "direction": "asc"
                }
            },
            {
                "type": "distribution",
                "title": "categoriesOptional distribution title",
                "indicator": "/rest/projects/$projectId/md/indicators?name=customersonline_turnover_indicator",
            },
    "title": "Number of Customers by channel",   {
             "description": "Number of Customers by channel",
                "splitProperty": "baskets.on_off_name",
                "orderBy": {
                    "property": "baskets.on_off_name",
                    "direction": "asc"
                }
            }
        ]
    }
}

It is possible to display the categories block (from indicator drill) directly on a dashboard. In that case, a block with corresponding indicator must be specified. For the block description, see content.blocks.categories.

Code Block
titleExample of a dashboard with added distribution, ranking and time series blocks
collapsetrue
{
    "name": "catchment_area_dashboard",
    "type": "dashboard",
    "content": {
        "blockRows": [
            {
                "type": "indicator",
                "indicator": "/rest/projects/$projectId/md/indicators?name=turnover_indicator",
                "indicatorDrill": "/rest/projects/$projectId/md/indicatorDrills?name=turnover_indicator_drill",
                "layout": "primary"
            },
            {
                "type": "indicator",
                "indicator": "/rest/projects/$projectId/md/indicators?name=customers_indicator",a ranking indicator drill block
                "indicatorDrill": "/rest/projects/$projectId/md/indicatorDrills?name=customers_indicator_drill",
                "layout": "primary"
            },
            {
                "type": "indicator",
                "indicator": "/rest/projects/$projectId/md/indicators?name=purchases_customer_indicator",
                "indicatorDrill": "/rest/projects/$projectId/md/indicatorDrills?name=purchases_customer_indicator_drill",
                "layout": "primary"
            },
            {
                "type": "distribution",
                "title": "Optional distribution title",
                "indicator": "/rest/projects/$projectId/md/indicators?name=online_turnover_indicator"
            },
            {
                "type": "ranking",
                "title": "Optional ranking title",
                "indicator": "/rest/projects/$projectId/md/indicators?name=online_turnover_indicator"
            },
            {
                "type": "timeSeries",
                "title": "Optional time series title",
                "indicator": "/rest/projects/$projectId/md/indicators?name=online_turnover_indicator"
            }
        ]
    }
}

It is possible to display the categories block /distribution/ranking or timeSeries block (from indicator drill) directly on a dashboard. In that case, a block with corresponding indicator must uses currently visualized indicator or indicator can be specified as a JSON property. For the block description, see content.blocks.categories.


Code Block
titleExample of a dashboard with dataset attributes definition
collapsetrue
{
    "name": "catchment_area_dashboard",
    "type": "dashboard",
    "content": {
        "blockRows": [
            {
                "type": "indicator",
                "indicator": "/rest/projects/$projectId/md/indicators?name=turnover_indicator",
                "indicatorDrill": "/rest/projects/$projectId/md/indicatorDrills?name=turnover_indicator_drill",
                "layout": "primary"
            },
            {
                "type": "indicator",
                "indicator": "/rest/projects/$projectId/md/indicators?name=customers_indicator",
                "indicatorDrill": "/rest/projects/$projectId/md/indicatorDrills?name=customers_indicator_drill",
                "layout": "primary"a ranking indicator drill block
            },
            {
                "type": "indicator",
                "indicator": "/rest/projects/$projectId/md/indicators?name=purchases_customer_indicator",
                "indicatorDrill": "/rest/projects/$projectId/md/indicatorDrills?name=purchases_customer_indicator_drill",
                "layout": "primary"
            }
        ],
        "datasetProperties": [
            {
                "dataset": "/rest/projects/$projectId/md/datasets?name=shops",
                "featureAttributes": [
                    {
                        "type": "property",
                        "value": "manager_name"
                    },
                    {
                        "type": "property",
                        "value": "opening_hours"
                    },
                    {
                        "type": "property",
                        "value": "contact_phone"
                    },
                    {
                        "type": "property",
                        "value": "contact_mail",
                        "format": {
                            "type": "email"
                        }
                    },
                    {
                        "type": "property",
                        "value": "employees"
                    },
                    {
                        "type": "property",
                        "value": "monthly_rent",
                        "format": {
                            "type": "number",
                            "fraction": 0,
                            "symbol": "£"
                        }
                    }
                ]
            }
        ]
    }
}

...

KeyTypeOptionalityDescriptionConstraints
typestring
Status
colourRed
titlerequired
type identifier, always indicator[indicator]
indicatorstring

Status
colourRed
titlerequired

URL link to the indicator object

/rest/projects/$projectId/md/indicators?name={indicatorName}
indicatorDrillstring

Status
colourRed
titlerequired

URL link to the indicator drill object

/rest/projects/$projectId/md/indicatorDrills?name={indicatorDrillName}
layoutstring
Status
colourGreen
titleoptional

layout of the indicator

when not specified, the indicator's layout is primary

[primary, secondary]
collapsedboolean
Status
colourGreen
titleoptional
determines if the indicator should be collapsed when entering the view

...

KeyTypeOptionalityDescriptionConstraints
typestring
Status
colourRed
titlerequired
type identifier, always indicatorGroup[indicatorGroup]
titlestring
Status
colourRed
titlerequired
title of the indicator group(*)
descriptionstring
Status
colourGreen
titleoptional
description of the indicator group(*)
collapsedboolean
Status
colourGreen
titleoptional
determines if the group should be collapsed when entering the view[true, false]
blockRowsarray

Status
colourRed
titlerequired

array of either:

see the syntax example above


...

KeyTypeOptionalityDescriptionConstraints
datasetstring
Status
colourRed
titlerequired
URL link to the dataset, whose properties will be set/rest/projects/$projectId/md/datasets?name={datasetName}
defaultSearchstring
Status
colourGreen
titleoptional

specifies if the dataset will be enabled in Refine search

enable = dataset will be enabled

disable = dataset will be disabled

auto = dataset will be enabled if its features are visible in the map

[enable, disable, auto]
featureAttributesarray

Status
colourRed
titlerequired

array of dataset.properties.featureAttributes


...