Radial chart

JSON used as input for Radial chart rendering consists of multiple elements.

Basic structure

{
  "radar_axis": {
    "spoke-labels": {
      "labels": [ ... ]
    }
  }
  "elements": [
    {
      "type": "area",
      "values": [ ... ]
    }
  ]
}

Common elements

NameDescriptionExample
chartId
Chart view identifier. Refer to REST API.
chart_3-FDEp6Q41fb_s3fwVc7F9H
bg_color
Defines the color of the background for the entire chart
#e5e5e5
is_decimal_separator_comma
Determines whether to use comma as decimal separator. [0, 1]1
is_thousand_separator_disabled
Determines whether to use the thousands separator or not. [0, 1]1
tooltip

Defines the basic tooltip settings for the entire chart.

NameDescriptionExample
mouse
Mouse sensitivity2
shadow
[true, false]true
stroke
[0, 1]1
colour
Default font color for tooltips
#202020
background
Default background for tooltips.
"#ffffff"
 

Example

{
	"chartId": "chart_3-FDEp6Q41fb_s3fwVc7F9H",
	"bg_colour": "#e5e5e5",
	"is_decimal_separator_comma": 1,
	"is_thousand_separator_disabled": 1,
	"tooltip": {
	    "mouse": "2",
    	"shadow": true,
	    "stroke": 1,
	    "colour": "#202020",
	    "background": "#ffffff"
	},
	"options": {}
} 

"radar_axis" content

Radial axis is defined by min and max value, size of one step (steps) and spoke-labels. You can specify also colour and grid-colour for this axis.

NameDescriptionExample
colour
Color of the axis label
#e9e9e9
grid-colour
Color of the axis grid
#e9e9e9
spoke-labels

Nested object defining the axis labels

NameDescriptionExample
labels
Array of labels
[ "Austria", "Canada", "France", "Germany" ]
 

Example:

"radar_axis": {
    "colour": "#e9e9e9",
    "grid-colour": "#e9e9e9",
    "spoke-labels": {
      "labels": [
        "Austria",
        "Canada",
        "France",
        "Germany"
      ]
    }
  }

"elements" content

Each object in array elements describe one chart element. In example below we have only one element that has type area and contains array with 4 values. Each value object consists of value, label, tool tip and context.

NameDescriptionExample
type

Type of the chart. There are 3 types of radial chart:

  • "area" - Normal style of line around area
  • "area_dot" - Dotted style of line around area
  • "area_hollow" - Hollow style of line around area
area
values
NameDescriptionExample
value
Numerical value specifying the vertex position123456.789
tip
Tooltip text to display on mouse hoverThis is tooltip
label
Value label displayed in legendThis is label
context
If defined, context will be send to the client as event parameter 
 
colourColour of the line around area#4379bd
loop
Boolean flag indicating if there should be line between last and first vertex. Value "true" means visible line and it's required in case of filling area.true
fillColour of the area#4379bd
fill-alphaAlpha channel that specifies the opacity of the area0.35
textElement titleRevenue
font-sizeFont size used for displaying text12
dot-style

Style of the dot with following structure:

Name
Description
Example
type
Dot type - one of supported values: "star", "dot", "solid-dot", "box", "anchor"star
halo-size
Halo size10
dot-size
Dot size 6
 
 "elements": [
    {
      "type": "area",
      "text": "Revenue",
      "font-size": 12,
      "colour": "#4379bd",
      "dot-style": {
        "type": "star",
        "dot-size": 6,
        "halo-size": 10
      },
      "loop": true,
      "fill": "#4379bd",
      "fill-alpha": 0.35,
      "values": [
        {
          "value": 444835.123456789,
          "label": "Austria",
          "tip": "Austria\n444835 USD",
          "context": "{\"dataLink\":\"36_-2043221510\",\"identifierQuery\":\"[L_COUNTRY={Austria}]\"}"
        },
        {
          "value": 730974,
          "label": "Canada",
          "tip": "Canada\n730974 USD",
          "context": "{\"dataLink\":\"36_-1852385179\",\"identifierQuery\":\"[L_COUNTRY={Canada}]\"}"
        },
        {
          "value": 546650,
          "label": "France",
          "tip": "France\n546650 USD",
          "context": "{\"dataLink\":\"36_-1863819150\",\"identifierQuery\":\"[L_COUNTRY={France}]\"}"
        },
        {
          "value": 643782,
          "label": "Germany",
          "tip": "Germany\n643782 USD",
          "context": "{\"dataLink\":\"36_-547347752\",\"identifierQuery\":\"[L_COUNTRY={Germany}]\"}"
        }
      ]
    }
  ]

Examples

  File Modified
File RADAR_allIndicators_drilldownOnXAxis.json Apr 25, 2016 by Lubomir Elko
File RADAR_allIndicators.json Apr 25, 2016 by Lubomir Elko
File RADAR_dateInterval_allIndicators_drilldownOnXAxis.json Apr 25, 2016 by Lubomir Elko
File RADAR_dateInterval_allIndicators.json Apr 25, 2016 by Lubomir Elko
File RADAR_dateInterval_drilldown_allIndicators_drilldownOnXAxis.json Apr 25, 2016 by Lubomir Elko
File RADAR_dateInterval_drilldown_allIndicators.json Apr 25, 2016 by Lubomir Elko
File RADAR_dateInterval_drilldown_drilldownOnXAxis.json Apr 25, 2016 by Lubomir Elko
File RADAR_dateInterval_drilldown.json Apr 25, 2016 by Lubomir Elko
File RADAR_dateInterval_drilldownOnXAxis.json Apr 25, 2016 by Lubomir Elko
File RADAR_dateInterval.json Apr 25, 2016 by Lubomir Elko
File RADAR_drilldown_allIndicators_drilldownOnXAxis.json Apr 25, 2016 by Lubomir Elko
File RADAR_drilldown_allIndicators.json Apr 25, 2016 by Lubomir Elko
File RADAR_drilldown_drilldownOnXAxis.json Apr 25, 2016 by Lubomir Elko
File RADAR_drilldown.json Apr 25, 2016 by Lubomir Elko
File RADAR_drilldownOnXAxis.json Apr 25, 2016 by Lubomir Elko
File RADAR.json Apr 25, 2016 by Lubomir Elko

 

  • No labels