Here, we'll see how to configure various aspects of the dials. Specifically, we'll see how to:

Let's see each of them one by one.

Configuring background and border of dial

You can opt to have the dial fill in single color or as a gradient. To fill the dial using a single color, you can use:

<dial bgColor='666666' value='92' rearExtension='10' borderAlpha='0'/>
"dials": {
    "dial": [
      {
        "bgcolor": "666666",
        "value": "92",
        "rearextension": "10",
        "borderalpha": "0"
      }
    ]
  }

Here we've specified the dial background color as 666666 and hidden the border using borderAlpha='0'. This will result in:

You can also fill the dial with a gradient by specifying the list of colors separated by comma. Each color will then form an equal part of gradient. Example:

<dial bgColor='666666,FFFFFF,666666' value='92' rearExtension='10' borderAlpha='0'/>
"dial": [
      {
        "bgcolor": "666666,FFFFFF,666666",
        "value": "92",
        "rearextension": "10",
        "borderalpha": "0"
      }
    ]

This will result in:

You can configure to show/hide the dial border using:

<dial .... borderAlpha='0'/>
"dial": [
      {
     ...
        "borderalpha": "0"
      }
    ]

Here, we've set border alpha to 0 to hide it.

Additionally, you can configure border properties as under:

 <dial bgColor='F1F1F1' value='92' rearExtension='10' borderColor='666666' borderThickness='1' borderAlpha='100'/>
"dial": [
      {
        "bgcolor": "F1F1F1",
        "value": "92",
        "rearextension": "10",
        "bordercolor": "666666",
        "borderthickness": "1",
        "borderalpha": "100"
      }
    ]

This will result in:

 
Configuring radius of dial

You can make the length of dial longer/shorter by specifying its exact radius in pixels as under:

<dial value='92' rearExtension='10' radius='100'/>
"dial": [
      {
        "value": "92",
        "rearextension": "10",
        "radius": "100"
      }
    ]

This will result in:

 
Configuring base width, top width and rear extension

You can configure the base and top width of dials using:

<dial value='92' baseWidth='20' topWidth='4'/>
"dial": [
      {
        "value": "92",
        "basewidth": "20",
        "topwidth": "4"
      }
    ]

This will result in the image below (we've also increased pivot radius here). As you can see, the thickness of both the base and top part of dial has increased.

You can opt for the dial to have a rear extension (i.e., extension on the opposite side) using:

<dial value='92' rearExtension='10' baseWidth='6'/>
"dial": [
      {
        "value": "92",
        "rearextension": "10",
        "basewidth": "6"
      }
    ]

This will result in:

 
Adding custom tool text for dial

You can add custom tool text for each dial using:

<dial value='92' ... toolText='Customer Satisfaction Index'/>
"dial": [
      {
        "value": "92",
        ...
        "tooltext": "Customer Satisfaction Index"
      }
    ]

This will result in:

 
Adding multiple dials

You can add any number of dials to each chart, with each dial having its own value and individual properties as under:

<dials>
<dial value="92" rearExtension="10" baseWidth="8" toolText="Current year"/>
<dial value="79" bgcolor="FFFFFF" borderColor="999999" baseWidth="4" toolText="Previous year" rearExtension="10" showValue="0" radius="95"/>
</dials>
"dials": {
    "dial": [
      {
        "value": "92",
        "rearextension": "10",
        "basewidth": "8",
        "tooltext": "Current year"
      },
      {
        "value": "79",
        "bgcolor": "FFFFFF",
        "bordercolor": "999999",
        "basewidth": "4",
        "tooltext": "Previous year",
        "rearextension": "10",
        "showvalue": "0",
        "radius": "95"
      }
    ]
  }
 
This will result in:
 
 
The visual stacking order of each dial will depend on its order in the XML document. That is, the dial defined first in the XML/JSON will appear at the bottom of the dial stack.