Components of a D3 Visualization Dashboard Configuration File

The D3 Visualization extension module provides you with a pre-configured JSON file that contains the parameters for all the controls you can use to create a customized dashboard in the following path: GMSMainProject > _Extensions > D3_Visualization > WebAppTemplate folder > Configs> DashboardDefaultConfig.json. This file has the syntax for all the widgets required for your own dashboard.

Using Notepad you can copy and paste sections from the pre-configured JSON files and modify the parameters to customize and create your own JSON files.

JavaScript Object Notation (JSON)

Every dashboard has its own JSON (JavaScript Object Notation) configuration file which specifies the controls the dashboard uses and how they display in runtime. For example, how many rows and columns the dashboard layout contains, and what the margins are. Which controls, bar or pie chart, for example, and what color to display for value ranges.

JSON notation allows you to store and exchange data between a browser and a server. The web server hosts the JSON file. The syntax rules are as follows:

Each JSON configuration file consists of three primary sections: DashboardLayout, Widgets, and the baseURI.

 

DashboardLayout

This section in the configuration file defines the overall layout and the grid of the dashboard, as well as defining where error or exception logging are displayed, and what actions should be logged.

NOTE: There is no limit on the number of rows and columns you can have.

The following parameters are defined in this section:

 

Widgets

This is where each control is defined and styled on the dashboard. The data from the provider is displayed according the information in this section. For each control placement, you must provide the following basic widget information:

 

BaseURI

Refers to the web service interface path where the data is obtained. This path can point to a local or remote computer.