Widget doughnutChart

A doughnut chart is another circular graphic, that is used similarly to previous two charts to illustrate numerical proportion of its sections.

The “doughnutChart” types of widgets have the following configurations:

Parameter

Description

dataset

Defines the settings for each chart slice in JSON object format

interval

 

 

EveryDataStore implements one widget of this type, called “Invoice Summary”. This widget graphically represents data about “Invoice” RecordSetItems, i.e., items of the “Invoices” database.

Chart has three different slices with following names: Open, Paid and Rejected. Moreover, it differentiates RecordSetItems by their “Status” value, so that each slice corresponds to a set of record items with a certain value in the “Status” field:

Open

RecordSetItems where the “Status” field has the value “Created”

Paid

RecordSetItems where the “Status” field has the value “Paid”

Cancelled 

RecordSetItems where the “Status” field has the value “Cancelled”

 

This configuration contains the following settings for each chart slice:

Parameter

Description

name

Name of the slice; visible in the legend as well as on hover

dataSrcSlug

Unique identification number of “Invoice” RecordSet

dataType

Data type of the source

fieldSlug

Unique identification number of the “Status” field in the “Invoice” RecordSet

fieldValue

Specifies the value for the “Status” field

backgroundColor

Specifies the background color for the chart slice in RGB color code

countOption

Specifies the applied function to the field defined in “fieldSlug”

“Invoice Summary” widget of type “doughnutChart” is the sixth widget in order on “Dashboard”.