A sunburst chart shows a hierarchy as rings: the inner ring holds the groups, the outer ring what each is made of. This one is a coffee aroma wheel, 75 aromas in 13 families, each with its own color.
A sunburst suits hierarchies people browse rather than measure: flavor wheels, file folders, product ranges. Each ring is one level, so the structure reads at a glance, and clicking a family gives its aromas the whole wheel.
Built with amCharts 5, a JavaScript library. The JavaScript includes your theme and renderer (canvas or SVG); the JSON also follows the changes you make with the controls.
npm install @amcharts/amcharts5. See Getting started.
The same chart as a JSON config. Chart Maker reads and writes this format, the library's JSON parser turns it into a chart, and the <am5-chart> element puts it on a page with no code."type" is the class to create and "settings" what you would pass to its new() in code; "properties" fill in its parts, lists such as series and axes or templates such as columns.template; "refs" holds objects used in more than one place ("#series-0" stands for the one named series-0); a string starting with "@" takes a value from another object, such as "@series.get('fill')".
A complete page. Save it as an .html file and open it in a browser.
Paste this into an AI coding assistant to build the chart from scratch. More in amCharts & AI.
/**
* This chart is inspired by:
* https://coffee-mind.com/product/coffeemind-aroma-wheel/
*/
// Create root element
// https://www.amcharts.com/docs/v5/getting-started/#Root_element
var root = am5.Root.new("chartdiv");
// Set themes
// https://www.amcharts.com/docs/v5/concepts/themes/
root.setThemes([
am5themes_Animated.new(root),
am5themes_Responsive.new(root)
]);
var chart = root.container.children.push(
am5.SerialChartContainer.new(root, {
width: am5.p100, // the container fills the whole chart div
height: am5.p100
})
);
chart.zoomableContainer.setAll({
wheelable: true, // the mouse wheel zooms in on the wheel
pinchZoom: true // and so does pinching on a touch screen
});
var zoomTools = chart.set("zoomTools", am5.ZoomTools.new(root, {})); // zoom in, zoom out and reset buttons
// Add title, in the theme's text color so it reads on light and dark backgrounds
var title = chart.zoomableContainer.contents.children.push(am5.Label.new(root, {
text: "COFFEE\n[#63bdc5]AROMA[/]\n[#63bdc5]WHEEL[/]",
textAlign: "center", // each of the three lines centered
x: am5.p50, // in the middle of the ring's hole
y: am5.p50,
centerX: am5.p50, // measured from the label's own center
centerY: am5.p50,
fontSize: 25,
fontWeight: "500", // medium weight
fill: root.interfaceColors.get("text")
}));
// a credit link in the top right corner
var credits = chart.children.push(am5.Label.new(root, {
text: "Inspired by\n[bold]CoffeeMind",
x: am5.p100, // at the right edge...
y: 0,
centerX: am5.p100, // ...measured from the label's right end
centerY: 0,
fontSize: 15,
fill: root.interfaceColors.get("text"), // the theme's text color, readable on light and dark
cursorOverStyle: "pointer", // a hand cursor shows it's a link
// an invisible background makes the whole label clickable, not just its letters
background: am5.Rectangle.new(root, {
fill: am5.color(0x000000),
fillOpacity: 0
})
}));
// clicking the credit opens the original aroma wheel
credits.events.on("click", function() {
window.open("https://coffee-mind.com/product/coffeemind-aroma-wheel/");
});
// Create series
// https://www.amcharts.com/docs/v5/charts/hierarchy/#Adding
var series = chart.series.push(am5hierarchy.Sunburst.new(root, {
singleBranchOnly: true, // only one branch open at a time; a sunburst always works this way
downDepth: 2, // a click on a slice opens two levels below it
initialDepth: 2, // two rings on load: the flavor groups and the flavors
// leave out the top "COFFEE" node: the rings start with its children
topDepth: 1,
// a 100px hole in the middle for the title
innerRadius: 100,
valueField: "value",
categoryField: "name",
childDataField: "children"
}));
series.nodes.template.setAll({
tooltipText: "{category}" // the flavor's name on hover
});
series.slices.template.setAll({
templateField: "nodeSettings" // each slice takes its color from nodeSettings in its data
});
series.labels.template.setAll({
paddingLeft: 10, // room between the text and the slice's edges
paddingRight: 10,
paddingTop: 5,
paddingBottom: 5,
baseRadius: am5.p100, // labels line up along the outer edge of their ring...
centerX: am5.p100, // ...held by their end, so the text runs inward from it
textAlign: "start"
});
// Dark text on light slices, white text on dark ones
series.labels.template.adapters.add("fill", function (fill, target) {
var slice = target.dataItem && target.dataItem.get("slice");
var sliceFill = slice && slice.get("fill");
return sliceFill ? am5.Color.alternative(sliceFill, am5.color(0xffffff), am5.color(0x000000)) : fill;
});
// Set data
// https://www.amcharts.com/docs/v5/charts/hierarchy/#Setting_data
// the nameless white nodes with a value of 0.1 are thin gaps between the flavor groups
var data = [{
name: "COFFEE",
nodeSettings: { fill: am5.color(0xaaaaaa) },
children: [{
name: "Berry",
nodeSettings: { fill: am5.color(0x72588a) },
children: [
{ name: "Strawberry", nodeSettings: { fill: am5.color(0xbb3b4b) }, value: 1 },
{ name: "Raspberry", nodeSettings: { fill: am5.color(0xbc366a) }, value: 1 },
{ name: "Blueberry", nodeSettings: { fill: am5.color(0x565585) }, value: 1 },
{ name: "Black currant", nodeSettings: { fill: am5.color(0x473e58) }, value: 1 },
{ name: "Blackberry", nodeSettings: { fill: am5.color(0x2e3245) }, value: 1 }
]
}, {
value: 0.1, nodeSettings: { fill: am5.color(0xffffff) }
}, {
name: "Fruity",
nodeSettings: { fill: am5.color(0xe16858) },
children: [
{ name: "Pear", nodeSettings: { fill: am5.color(0xbbc395) }, value: 1 },
{ name: "Green apple", nodeSettings: { fill: am5.color(0xb7c56e) }, value: 1 },
{ name: "Red apple", nodeSettings: { fill: am5.color(0xb56963) }, value: 1 },
{ name: "Lime", nodeSettings: { fill: am5.color(0x79b16e) }, value: 1 },
{ name: "Lemon", nodeSettings: { fill: am5.color(0xfbe83a) }, value: 1 },
{ name: "Bergamot", nodeSettings: { fill: am5.color(0x82b46d) }, value: 1 },
{ name: "Orange", nodeSettings: { fill: am5.color(0xd77639) }, value: 1 },
{ name: "Mandarin", nodeSettings: { fill: am5.color(0xe3834d) }, value: 1 },
{ name: "Apricot", nodeSettings: { fill: am5.color(0xd49471) }, value: 1 },
{ name: "Peach", nodeSettings: { fill: am5.color(0xe7a56e) }, value: 1 },
{ name: "Mango", nodeSettings: { fill: am5.color(0xefd245) }, value: 1 },
{ name: "Pineapple", nodeSettings: { fill: am5.color(0xf2e08f) }, value: 1 },
{ name: "Honeydew melon", nodeSettings: { fill: am5.color(0xeed98a) }, value: 1 }
]
}, {
value: 0.1, nodeSettings: { fill: am5.color(0xffffff) }
}, {
name: "Dried fruit",
nodeSettings: { fill: am5.color(0x65443d) },
children: [
{ name: "Raisin", nodeSettings: { fill: am5.color(0x1b353f) }, value: 1 },
{ name: "Prune", nodeSettings: { fill: am5.color(0x253e4c) }, value: 1 },
{ name: "Dates", nodeSettings: { fill: am5.color(0x3e332b) }, value: 1 },
{ name: "Cranberry", nodeSettings: { fill: am5.color(0x7c2d45) }, value: 1 }
]
}, {
value: 0.1, nodeSettings: { fill: am5.color(0xffffff) }
}, {
name: "Sweets",
nodeSettings: { fill: am5.color(0xc39c69) },
children: [
{ name: "Vanilla", nodeSettings: { fill: am5.color(0x413126) }, value: 1 },
{ name: "Butter", nodeSettings: { fill: am5.color(0xe5d1a1) }, value: 1 },
{ name: "Honey", nodeSettings: { fill: am5.color(0xc7ae5e) }, value: 1 },
{ name: "Caramel", nodeSettings: { fill: am5.color(0xad7b50) }, value: 1 },
{ name: "Sweet liquor", nodeSettings: { fill: am5.color(0xae723b) }, value: 1 }
]
}, {
value: 0.1, nodeSettings: { fill: am5.color(0xffffff) }
}, {
name: "Chocolate",
nodeSettings: { fill: am5.color(0x5a452c) },
children: [
{ name: "Pure cocoa", nodeSettings: { fill: am5.color(0x3e3121) }, value: 1 },
{ name: "Dark chocolate", nodeSettings: { fill: am5.color(0x483a21) }, value: 1 },
{ name: "Milk chocolate", nodeSettings: { fill: am5.color(0x604a2b) }, value: 1 }
]
}, {
value: 0.1, nodeSettings: { fill: am5.color(0xffffff) }
}, {
name: "Nutty",
nodeSettings: { fill: am5.color(0x877768) },
children: [
{ name: "Hazelnut", nodeSettings: { fill: am5.color(0x645032) }, value: 1 },
{ name: "Almond", nodeSettings: { fill: am5.color(0x776756) }, value: 1 },
{ name: "Peanut", nodeSettings: { fill: am5.color(0xddc2a5) }, value: 1 },
{ name: "Walnut", nodeSettings: { fill: am5.color(0x937a5b) }, value: 1 },
{ name: "Pecan", nodeSettings: { fill: am5.color(0x947e61) }, value: 1 },
{ name: "Cashew", nodeSettings: { fill: am5.color(0xe5cdb7) }, value: 1 },
{ name: "Brazil nut", nodeSettings: { fill: am5.color(0xa88a74) }, value: 1 }
]
}, {
value: 0.1, nodeSettings: { fill: am5.color(0xffffff) }
}, {
name: "Roasted",
nodeSettings: { fill: am5.color(0x926d63) },
children: [
{ name: "Smoke", nodeSettings: { fill: am5.color(0x959890) }, value: 1 },
{ name: "Tobacco", nodeSettings: { fill: am5.color(0x756950) }, value: 1 },
{ name: "Toast", nodeSettings: { fill: am5.color(0x96886f) }, value: 1 },
{ name: "Burned", nodeSettings: { fill: am5.color(0x50483f) }, value: 1 },
{ name: "Ashy", nodeSettings: { fill: am5.color(0x51483d) }, value: 1 }
]
}, {
value: 0.1, nodeSettings: { fill: am5.color(0xffffff) }
}, {
name: "Industrial",
nodeSettings: { fill: am5.color(0x989694) },
children: [
{ name: "Leather", nodeSettings: { fill: am5.color(0x6f5744) }, value: 1 },
{ name: "Rubber", nodeSettings: { fill: am5.color(0x554f4a) }, value: 1 },
{ name: "Earthy", nodeSettings: { fill: am5.color(0x615c50) }, value: 1 },
{ name: "Musty", nodeSettings: { fill: am5.color(0x7d6d5c) }, value: 1 },
{ name: "Woody", nodeSettings: { fill: am5.color(0x9e7f60) }, value: 1 },
{ name: "Paper/cardboard", nodeSettings: { fill: am5.color(0xa79076) }, value: 1 }
]
}, {
value: 0.1, nodeSettings: { fill: am5.color(0xffffff) }
}, {
name: "Spicy",
nodeSettings: { fill: am5.color(0xa47037) },
children: [
{ name: "Cinnamon", nodeSettings: { fill: am5.color(0x96794c) }, value: 1 },
{ name: "Clove", nodeSettings: { fill: am5.color(0x453c2a) }, value: 1 },
{ name: "Nutmeg", nodeSettings: { fill: am5.color(0x705c3e) }, value: 1 },
{ name: "Cardamom", nodeSettings: { fill: am5.color(0x8b7b6c) }, value: 1 },
{ name: "Pepper", nodeSettings: { fill: am5.color(0x463c28) }, value: 1 },
{ name: "Coriander seeds", nodeSettings: { fill: am5.color(0xbea585) }, value: 1 },
{ name: "Licorice", nodeSettings: { fill: am5.color(0x201a15) }, value: 1 }
]
}, {
value: 0.1, nodeSettings: { fill: am5.color(0xffffff) }
}, {
name: "Cereal",
nodeSettings: { fill: am5.color(0xdfbd94) },
children: [
{ name: "Malt", nodeSettings: { fill: am5.color(0xbca78a) }, value: 1 },
{ name: "Grain", nodeSettings: { fill: am5.color(0xe1c6a8) }, value: 1 }
]
}, {
value: 0.1, nodeSettings: { fill: am5.color(0xffffff) }
}, {
name: "Green",
nodeSettings: { fill: am5.color(0x6ba478) },
children: [
{ name: "Cedar", nodeSettings: { fill: am5.color(0x548263) }, value: 1 },
{ name: "Grass", nodeSettings: { fill: am5.color(0x53a164) }, value: 1 },
{ name: "Straw", nodeSettings: { fill: am5.color(0xbab08c) }, value: 1 },
{ name: "Hay", nodeSettings: { fill: am5.color(0xb69f65) }, value: 1 }
]
}, {
value: 0.1, nodeSettings: { fill: am5.color(0xffffff) }
}, {
name: "Herb/\nvegetal",
nodeSettings: { fill: am5.color(0x598264) },
children: [
{ name: "Thyme", nodeSettings: { fill: am5.color(0x6c8067) }, value: 1 },
{ name: "Oregano", nodeSettings: { fill: am5.color(0x6e9362) }, value: 1 },
{ name: "Basil", nodeSettings: { fill: am5.color(0x36894b) }, value: 1 },
{ name: "Rosemary", nodeSettings: { fill: am5.color(0x5d8769) }, value: 1 },
{ name: "Garden peas", nodeSettings: { fill: am5.color(0x378a4c) }, value: 1 },
{ name: "Cucumber", nodeSettings: { fill: am5.color(0x028f4b) }, value: 1 },
{ name: "Tomato", nodeSettings: { fill: am5.color(0x9f4d4b) }, value: 1 }
]
}, {
value: 0.1, nodeSettings: { fill: am5.color(0xffffff) }
}, {
name: "Floral",
nodeSettings: { fill: am5.color(0x8f6497) },
children: [
{ name: "Lavender", nodeSettings: { fill: am5.color(0x7b6084) }, value: 1 },
{ name: "Rose", nodeSettings: { fill: am5.color(0x8b334a) }, value: 1 },
{ name: "Hibiscus", nodeSettings: { fill: am5.color(0xae4360) }, value: 1 },
{ name: "Jasmine", nodeSettings: { fill: am5.color(0xe7d0dd) }, value: 1 },
{ name: "Coffee blossom", nodeSettings: { fill: am5.color(0xe7d1db) }, value: 1 },
{ name: "Chamomile", nodeSettings: { fill: am5.color(0xe5d9b6) }, value: 1 },
{ name: "Elderflower", nodeSettings: { fill: am5.color(0xe0e0dc) }, value: 1 }
]
}, {
value: 0.1, nodeSettings: { fill: am5.color(0xffffff) }
}]
}];
series.data.setAll(data);
series.set("selectedDataItem", series.dataItems[0]); // start with the whole wheel showing
// Make stuff animate on load
series.appear(1000, 100);
{
"type": "SerialChartContainer",
"settings": {
"width": {
"type": "Percent",
"value": 100
},
"height": {
"type": "Percent",
"value": 100
},
"zoomTools": {
"type": "ZoomTools"
}
},
"properties": {
"series": [
"#series-0"
],
"zoomableContainer": {
"settings": {
"wheelable": true,
"pinchZoom": true
}
}
},
"children": [
{
"type": "Label",
"settings": {
"text": "Inspired by\n[bold]CoffeeMind",
"x": {
"type": "Percent",
"value": 100
},
"y": 0,
"centerX": {
"type": "Percent",
"value": 100
},
"centerY": 0,
"fontSize": 15,
"fill": "@root.interfaceColors.get('text')",
"cursorOverStyle": "pointer",
"background": {
"type": "Rectangle",
"settings": {
"fill": {
"type": "Color",
"value": "#000000"
},
"fillOpacity": 0
}
}
},
"index": 1
}
],
"refs": [
{
"data-0": [
{
"name": "COFFEE",
"nodeSettings": {
"fill": {
"type": "Color",
"value": "#aaaaaa"
},
"__parse": true
},
"children": [
{
"name": "Berry",
"nodeSettings": {
"fill": {
"type": "Color",
"value": "#72588a"
},
"__parse": true
},
"children": [
{
"name": "Strawberry",
"nodeSettings": {
"fill": {
"type": "Color",
"value": "#bb3b4b"
},
"__parse": true
},
"value": 1,
"__parse": true
},
{
"name": "Raspberry",
"nodeSettings": {
"fill": {
"type": "Color",
"value": "#bc366a"
},
"__parse": true
},
"value": 1,
"__parse": true
},
{
"name": "Blueberry",
"nodeSettings": {
"fill": {
"type": "Color",
"value": "#565585"
},
"__parse": true
},
"value": 1,
"__parse": true
},
{
"name": "Black currant",
"nodeSettings": {
"fill": {
"type": "Color",
"value": "#473e58"
},
"__parse": true
},
"value": 1,
"__parse": true
},
{
"name": "Blackberry",
"nodeSettings": {
"fill": {
"type": "Color",
"value": "#2e3245"
},
"__parse": true
},
"value": 1,
"__parse": true
}
],
"__parse": true
},
{
"value": 0.1,
"nodeSettings": {
"fill": {
"type": "Color",
"value": "#ffffff"
},
"__parse": true
},
"__parse": true
},
{
"name": "Fruity",
"nodeSettings": {
"fill": {
"type": "Color",
"value": "#e16858"
},
"__parse": true
},
"children": [
{
"name": "Pear",
"nodeSettings": {
"fill": {
"type": "Color",
"value": "#bbc395"
},
"__parse": true
},
"value": 1,
"__parse": true
},
{
"name": "Green apple",
"nodeSettings": {
"fill": {
"type": "Color",
"value": "#b7c56e"
},
"__parse": true
},
"value": 1,
"__parse": true
},
{
"name": "Red apple",
"nodeSettings": {
"fill": {
"type": "Color",
"value": "#b56963"
},
"__parse": true
},
"value": 1,
"__parse": true
},
{
"name": "Lime",
"nodeSettings": {
"fill": {
"type": "Color",
"value": "#79b16e"
},
"__parse": true
},
"value": 1,
"__parse": true
},
{
"name": "Lemon",
"nodeSettings": {
"fill": {
"type": "Color",
"value": "#fbe83a"
},
"__parse": true
},
"value": 1,
"__parse": true
},
{
"name": "Bergamot",
"nodeSettings": {
"fill": {
"type": "Color",
"value": "#82b46d"
},
"__parse": true
},
"value": 1,
"__parse": true
},
{
"name": "Orange",
"nodeSettings": {
"fill": {
"type": "Color",
"value": "#d77639"
},
"__parse": true
},
"value": 1,
"__parse": true
},
{
"name": "Mandarin",
"nodeSettings": {
"fill": {
"type": "Color",
"value": "#e3834d"
},
"__parse": true
},
"value": 1,
"__parse": true
},
{
"name": "Apricot",
"nodeSettings": {
"fill": {
"type": "Color",
"value": "#d49471"
},
"__parse": true
},
"value": 1,
"__parse": true
},
{
"name": "Peach",
"nodeSettings": {
"fill": {
"type": "Color",
"value": "#e7a56e"
},
"__parse": true
},
"value": 1,
"__parse": true
},
{
"name": "Mango",
"nodeSettings": {
"fill": {
"type": "Color",
"value": "#efd245"
},
"__parse": true
},
"value": 1,
"__parse": true
},
{
"name": "Pineapple",
"nodeSettings": {
"fill": {
"type": "Color",
"value": "#f2e08f"
},
"__parse": true
},
"value": 1,
"__parse": true
},
{
"name": "Honeydew melon",
"nodeSettings": {
"fill": {
"type": "Color",
"value": "#eed98a"
},
"__parse": true
},
"value": 1,
"__parse": true
}
],
"__parse": true
},
{
"value": 0.1,
"nodeSettings": {
"fill": {
"type": "Color",
"value": "#ffffff"
},
"__parse": true
},
"__parse": true
},
{
"name": "Dried fruit",
"nodeSettings": {
"fill": {
"type": "Color",
"value": "#65443d"
},
"__parse": true
},
"children": [
{
"name": "Raisin",
"nodeSettings": {
"fill": {
"type": "Color",
"value": "#1b353f"
},
"__parse": true
},
"value": 1,
"__parse": true
},
{
"name": "Prune",
"nodeSettings": {
"fill": {
"type": "Color",
"value": "#253e4c"
},
"__parse": true
},
"value": 1,
"__parse": true
},
{
"name": "Dates",
"nodeSettings": {
"fill": {
"type": "Color",
"value": "#3e332b"
},
"__parse": true
},
"value": 1,
"__parse": true
},
{
"name": "Cranberry",
"nodeSettings": {
"fill": {
"type": "Color",
"value": "#7c2d45"
},
"__parse": true
},
"value": 1,
"__parse": true
}
],
"__parse": true
},
{
"value": 0.1,
"nodeSettings": {
"fill": {
"type": "Color",
"value": "#ffffff"
},
"__parse": true
},
"__parse": true
},
{
"name": "Sweets",
"nodeSettings": {
"fill": {
"type": "Color",
"value": "#c39c69"
},
"__parse": true
},
"children": [
{
"name": "Vanilla",
"nodeSettings": {
"fill": {
"type": "Color",
"value": "#413126"
},
"__parse": true
},
"value": 1,
"__parse": true
},
{
"name": "Butter",
"nodeSettings": {
"fill": {
"type": "Color",
"value": "#e5d1a1"
},
"__parse": true
},
"value": 1,
"__parse": true
},
{
"name": "Honey",
"nodeSettings": {
"fill": {
"type": "Color",
"value": "#c7ae5e"
},
"__parse": true
},
"value": 1,
"__parse": true
},
{
"name": "Caramel",
"nodeSettings": {
"fill": {
"type": "Color",
"value": "#ad7b50"
},
"__parse": true
},
"value": 1,
"__parse": true
},
{
"name": "Sweet liquor",
"nodeSettings": {
"fill": {
"type": "Color",
"value": "#ae723b"
},
"__parse": true
},
"value": 1,
"__parse": true
}
],
"__parse": true
},
{
"value": 0.1,
"nodeSettings": {
"fill": {
"type": "Color",
"value": "#ffffff"
},
"__parse": true
},
"__parse": true
},
{
"name": "Chocolate",
"nodeSettings": {
"fill": {
"type": "Color",
"value": "#5a452c"
},
"__parse": true
},
"children": [
{
"name": "Pure cocoa",
"nodeSettings": {
"fill": {
"type": "Color",
"value": "#3e3121"
},
"__parse": true
},
"value": 1,
"__parse": true
},
{
"name": "Dark chocolate",
"nodeSettings": {
"fill": {
"type": "Color",
"value": "#483a21"
},
"__parse": true
},
"value": 1,
"__parse": true
},
{
"name": "Milk chocolate",
"nodeSettings": {
"fill": {
"type": "Color",
"value": "#604a2b"
},
"__parse": true
},
"value": 1,
"__parse": true
}
],
"__parse": true
},
{
"value": 0.1,
"nodeSettings": {
"fill": {
"type": "Color",
"value": "#ffffff"
},
"__parse": true
},
"__parse": true
},
{
"name": "Nutty",
"nodeSettings": {
"fill": {
"type": "Color",
"value": "#877768"
},
"__parse": true
},
"children": [
{
"name": "Hazelnut",
"nodeSettings": {
"fill": {
"type": "Color",
"value": "#645032"
},
"__parse": true
},
"value": 1,
"__parse": true
},
{
"name": "Almond",
"nodeSettings": {
"fill": {
"type": "Color",
"value": "#776756"
},
"__parse": true
},
"value": 1,
"__parse": true
},
{
"name": "Peanut",
"nodeSettings": {
"fill": {
"type": "Color",
"value": "#ddc2a5"
},
"__parse": true
},
"value": 1,
"__parse": true
},
{
"name": "Walnut",
"nodeSettings": {
"fill": {
"type": "Color",
"value": "#937a5b"
},
"__parse": true
},
"value": 1,
"__parse": true
},
{
"name": "Pecan",
"nodeSettings": {
"fill": {
"type": "Color",
"value": "#947e61"
},
"__parse": true
},
"value": 1,
"__parse": true
},
{
"name": "Cashew",
"nodeSettings": {
"fill": {
"type": "Color",
"value": "#e5cdb7"
},
"__parse": true
},
"value": 1,
"__parse": true
},
{
"name": "Brazil nut",
"nodeSettings": {
"fill": {
"type": "Color",
"value": "#a88a74"
},
"__parse": true
},
"value": 1,
"__parse": true
}
],
"__parse": true
},
{
"value": 0.1,
"nodeSettings": {
"fill": {
"type": "Color",
"value": "#ffffff"
},
"__parse": true
},
"__parse": true
},
{
"name": "Roasted",
"nodeSettings": {
"fill": {
"type": "Color",
"value": "#926d63"
},
"__parse": true
},
"children": [
{
"name": "Smoke",
"nodeSettings": {
"fill": {
"type": "Color",
"value": "#959890"
},
"__parse": true
},
"value": 1,
"__parse": true
},
{
"name": "Tobacco",
"nodeSettings": {
"fill": {
"type": "Color",
"value": "#756950"
},
"__parse": true
},
"value": 1,
"__parse": true
},
{
"name": "Toast",
"nodeSettings": {
"fill": {
"type": "Color",
"value": "#96886f"
},
"__parse": true
},
"value": 1,
"__parse": true
},
{
"name": "Burned",
"nodeSettings": {
"fill": {
"type": "Color",
"value": "#50483f"
},
"__parse": true
},
"value": 1,
"__parse": true
},
{
"name": "Ashy",
"nodeSettings": {
"fill": {
"type": "Color",
"value": "#51483d"
},
"__parse": true
},
"value": 1,
"__parse": true
}
],
"__parse": true
},
{
"value": 0.1,
"nodeSettings": {
"fill": {
"type": "Color",
"value": "#ffffff"
},
"__parse": true
},
"__parse": true
},
{
"name": "Industrial",
"nodeSettings": {
"fill": {
"type": "Color",
"value": "#989694"
},
"__parse": true
},
"children": [
{
"name": "Leather",
"nodeSettings": {
"fill": {
"type": "Color",
"value": "#6f5744"
},
"__parse": true
},
"value": 1,
"__parse": true
},
{
"name": "Rubber",
"nodeSettings": {
"fill": {
"type": "Color",
"value": "#554f4a"
},
"__parse": true
},
"value": 1,
"__parse": true
},
{
"name": "Earthy",
"nodeSettings": {
"fill": {
"type": "Color",
"value": "#615c50"
},
"__parse": true
},
"value": 1,
"__parse": true
},
{
"name": "Musty",
"nodeSettings": {
"fill": {
"type": "Color",
"value": "#7d6d5c"
},
"__parse": true
},
"value": 1,
"__parse": true
},
{
"name": "Woody",
"nodeSettings": {
"fill": {
"type": "Color",
"value": "#9e7f60"
},
"__parse": true
},
"value": 1,
"__parse": true
},
{
"name": "Paper/cardboard",
"nodeSettings": {
"fill": {
"type": "Color",
"value": "#a79076"
},
"__parse": true
},
"value": 1,
"__parse": true
}
],
"__parse": true
},
{
"value": 0.1,
"nodeSettings": {
"fill": {
"type": "Color",
"value": "#ffffff"
},
"__parse": true
},
"__parse": true
},
{
"name": "Spicy",
"nodeSettings": {
"fill": {
"type": "Color",
"value": "#a47037"
},
"__parse": true
},
"children": [
{
"name": "Cinnamon",
"nodeSettings": {
"fill": {
"type": "Color",
"value": "#96794c"
},
"__parse": true
},
"value": 1,
"__parse": true
},
{
"name": "Clove",
"nodeSettings": {
"fill": {
"type": "Color",
"value": "#453c2a"
},
"__parse": true
},
"value": 1,
"__parse": true
},
{
"name": "Nutmeg",
"nodeSettings": {
"fill": {
"type": "Color",
"value": "#705c3e"
},
"__parse": true
},
"value": 1,
"__parse": true
},
{
"name": "Cardamom",
"nodeSettings": {
"fill": {
"type": "Color",
"value": "#8b7b6c"
},
"__parse": true
},
"value": 1,
"__parse": true
},
{
"name": "Pepper",
"nodeSettings": {
"fill": {
"type": "Color",
"value": "#463c28"
},
"__parse": true
},
"value": 1,
"__parse": true
},
{
"name": "Coriander seeds",
"nodeSettings": {
"fill": {
"type": "Color",
"value": "#bea585"
},
"__parse": true
},
"value": 1,
"__parse": true
},
{
"name": "Licorice",
"nodeSettings": {
"fill": {
"type": "Color",
"value": "#201a15"
},
"__parse": true
},
"value": 1,
"__parse": true
}
],
"__parse": true
},
{
"value": 0.1,
"nodeSettings": {
"fill": {
"type": "Color",
"value": "#ffffff"
},
"__parse": true
},
"__parse": true
},
{
"name": "Cereal",
"nodeSettings": {
"fill": {
"type": "Color",
"value": "#dfbd94"
},
"__parse": true
},
"children": [
{
"name": "Malt",
"nodeSettings": {
"fill": {
"type": "Color",
"value": "#bca78a"
},
"__parse": true
},
"value": 1,
"__parse": true
},
{
"name": "Grain",
"nodeSettings": {
"fill": {
"type": "Color",
"value": "#e1c6a8"
},
"__parse": true
},
"value": 1,
"__parse": true
}
],
"__parse": true
},
{
"value": 0.1,
"nodeSettings": {
"fill": {
"type": "Color",
"value": "#ffffff"
},
"__parse": true
},
"__parse": true
},
{
"name": "Green",
"nodeSettings": {
"fill": {
"type": "Color",
"value": "#6ba478"
},
"__parse": true
},
"children": [
{
"name": "Cedar",
"nodeSettings": {
"fill": {
"type": "Color",
"value": "#548263"
},
"__parse": true
},
"value": 1,
"__parse": true
},
{
"name": "Grass",
"nodeSettings": {
"fill": {
"type": "Color",
"value": "#53a164"
},
"__parse": true
},
"value": 1,
"__parse": true
},
{
"name": "Straw",
"nodeSettings": {
"fill": {
"type": "Color",
"value": "#bab08c"
},
"__parse": true
},
"value": 1,
"__parse": true
},
{
"name": "Hay",
"nodeSettings": {
"fill": {
"type": "Color",
"value": "#b69f65"
},
"__parse": true
},
"value": 1,
"__parse": true
}
],
"__parse": true
},
{
"value": 0.1,
"nodeSettings": {
"fill": {
"type": "Color",
"value": "#ffffff"
},
"__parse": true
},
"__parse": true
},
{
"name": "Herb/\nvegetal",
"nodeSettings": {
"fill": {
"type": "Color",
"value": "#598264"
},
"__parse": true
},
"children": [
{
"name": "Thyme",
"nodeSettings": {
"fill": {
"type": "Color",
"value": "#6c8067"
},
"__parse": true
},
"value": 1,
"__parse": true
},
{
"name": "Oregano",
"nodeSettings": {
"fill": {
"type": "Color",
"value": "#6e9362"
},
"__parse": true
},
"value": 1,
"__parse": true
},
{
"name": "Basil",
"nodeSettings": {
"fill": {
"type": "Color",
"value": "#36894b"
},
"__parse": true
},
"value": 1,
"__parse": true
},
{
"name": "Rosemary",
"nodeSettings": {
"fill": {
"type": "Color",
"value": "#5d8769"
},
"__parse": true
},
"value": 1,
"__parse": true
},
{
"name": "Garden peas",
"nodeSettings": {
"fill": {
"type": "Color",
"value": "#378a4c"
},
"__parse": true
},
"value": 1,
"__parse": true
},
{
"name": "Cucumber",
"nodeSettings": {
"fill": {
"type": "Color",
"value": "#028f4b"
},
"__parse": true
},
"value": 1,
"__parse": true
},
{
"name": "Tomato",
"nodeSettings": {
"fill": {
"type": "Color",
"value": "#9f4d4b"
},
"__parse": true
},
"value": 1,
"__parse": true
}
],
"__parse": true
},
{
"value": 0.1,
"nodeSettings": {
"fill": {
"type": "Color",
"value": "#ffffff"
},
"__parse": true
},
"__parse": true
},
{
"name": "Floral",
"nodeSettings": {
"fill": {
"type": "Color",
"value": "#8f6497"
},
"__parse": true
},
"children": [
{
"name": "Lavender",
"nodeSettings": {
"fill": {
"type": "Color",
"value": "#7b6084"
},
"__parse": true
},
"value": 1,
"__parse": true
},
{
"name": "Rose",
"nodeSettings": {
"fill": {
"type": "Color",
"value": "#8b334a"
},
"__parse": true
},
"value": 1,
"__parse": true
},
{
"name": "Hibiscus",
"nodeSettings": {
"fill": {
"type": "Color",
"value": "#ae4360"
},
"__parse": true
},
"value": 1,
"__parse": true
},
{
"name": "Jasmine",
"nodeSettings": {
"fill": {
"type": "Color",
"value": "#e7d0dd"
},
"__parse": true
},
"value": 1,
"__parse": true
},
{
"name": "Coffee blossom",
"nodeSettings": {
"fill": {
"type": "Color",
"value": "#e7d1db"
},
"__parse": true
},
"value": 1,
"__parse": true
},
{
"name": "Chamomile",
"nodeSettings": {
"fill": {
"type": "Color",
"value": "#e5d9b6"
},
"__parse": true
},
"value": 1,
"__parse": true
},
{
"name": "Elderflower",
"nodeSettings": {
"fill": {
"type": "Color",
"value": "#e0e0dc"
},
"__parse": true
},
"value": 1,
"__parse": true
}
],
"__parse": true
},
{
"value": 0.1,
"nodeSettings": {
"fill": {
"type": "Color",
"value": "#ffffff"
},
"__parse": true
},
"__parse": true
}
],
"__parse": true
}
]
},
{
"series-0": {
"type": "Sunburst",
"settings": {
"singleBranchOnly": true,
"downDepth": 2,
"initialDepth": 2,
"topDepth": 1,
"innerRadius": 100,
"valueField": "value",
"categoryField": "name",
"childDataField": "children",
"selectedDataItem": "@self.dataItems.0"
},
"properties": {
"data": "#data-0",
"slices": {
"properties": {
"template": {
"settings": {
"templateField": "nodeSettings"
}
}
}
},
"labels": {
"properties": {
"template": {
"settings": {
"paddingLeft": 10,
"paddingRight": 10,
"paddingTop": 5,
"paddingBottom": 5,
"baseRadius": {
"type": "Percent",
"value": 100
},
"centerX": {
"type": "Percent",
"value": 100
},
"textAlign": "start"
}
}
}
},
"nodes": {
"properties": {
"template": {
"settings": {
"tooltipText": "{category}"
}
}
}
}
}
}
}
]
}