Versions Compared

Key

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

In the first tutorial, we visualized our customers' data in the map. We added a simple metric and a simple indicator which worked with one dataset.

...

NameTitleData type
transaction_idTransaction IDinteger
customer_idCustomer IDinteger
store_idStore IDinteger
dateDate of the transactiondate
amountTransaction amountdecimal
day_indexWeek day indexinteger
day_nameWeek daystring
hourHour indexinteger
time_categoryTime categorystring
channelChannel (online/offline)string

...

Each CleverMaps project is based around its data model. Visualization of the data model can be viewed:

  • by hovering the Account icon on the bottom left of clicking three-dots icon next to project title on a Project page, and selecting Data model

Image Added

  • by clicking on Menu in the top left and selecting Data model from the map

Image Added

Info

Please note that the visualization of data model is available only to users with the Admin user role.

...

  • change content.type to function_sum
  • change content.type.content[0].value to transactions.amount

...

Code Block
titleUpdated transactions dashboard syntax
{
    "id": "j2idsg8tq7icp62f",
    "name": "business_overview_dashboard",
    "type": "dashboard",
    "content": {
        "blockRows": [
            {
                "type": "indicator",
                "indicator": "/rest/projects/$projectId/md/indicators?name=customers_indicator",
                "indicatorDrill": "/rest/projects/$projectId/md/indicatorDrills?name=empty_indicator_drill",
                "layout": "primary"
            },
            {
                "type": "indicator",
                "indicator": "/rest/projects/$projectId/md/indicators?name=turnover_indicator",
                "indicatorDrill": "/rest/projects/$projectId/md/indicatorDrills?name=empty_indicator_drill",
                "layout": "primary"
            }
        ]
    },
    "accessInfo": {
        "createdAt": "2020-06-23T17:26:08Z",
        "createdBy": "/rest/accounts/00ubfu7fdyIoFKxXm0h7"
    },
    "links": [
        {
            "rel": "self",
            "href": "/rest/projects/k5t8mf2a80tay2ng/md/dashboards/j2idsg8tq7icp62f"
        }
    ]
}

Use pushProject to upload modified dashboard into the project.

Now, there's a new indicator on the dashboard, and you are able to see the turnover values aggregated to the customer addresses.

...