Radial Diagram - Editor

Loading…

JSON (paste here and click Apply to load)
Configuration reference

Every form field corresponds to one JSON property. The reference below documents each.

Top-level

PropertyTypeDescription
sizenumberDiagram width & height in pixels.
startAnglenumberAngle (degrees) where the first segment begins. -90 is the top.
centerobjectCentre hub configuration.
scaleobjectScore scale (min, max, ring count).
segmentsarrayThe dimensions / wedges. Each contains facets.
styleobjectAll visual styling options.

center

PropertyTypeDefaultDescription
labelstringHub text. Use \n for line breaks.
radiusnumberHub radius in pixels.
colorstringFill colour. Hex (with optional alpha, e.g. #1a1a1aaa) or transparent.
borderWidthnumber0Hub border stroke width.
borderColorstring#ffffffHub border stroke colour.
visiblebooleantrueSet to false to hide the hub entirely.
fontSizenumberOverride style.hubFontSize for this diagram.
fontColorstringOverride style.hubFontColor.

scale

PropertyTypeDefaultDescription
minnumber1Minimum score value.
maxnumber5Maximum score value.
ringsnumber5Number of concentric rings drawn for the score scale.

segments[]

PropertyTypeDescription
namestringDimension label. Use \n for line breaks; multi-line labels stack along the band radius.
colorstringWedge fill colour.
labelColorstringOptional. Override fill for the dimension label band only. Falls back to color when unset.
facetsarraySub-segments inside this dimension.

segments[].facets[]

PropertyTypeDescription
namestringFacet label. Use \n for line breaks.
scorenumberScore within scale.minscale.max. Set to null to hide the fill.
descriptionstringOptional tooltip text.

Style options

Style options are grouped in the form panel above. Notable ones:

Multi-line labels

\n produces a line break in center.label, segment names, and facet names. Centre hub and facet labels stack vertically; segment labels stack along the radius of the label band, each line on its own curved arc.