FusionCharts - Gallery Example - DragNode Chart in JavaScript
Created using FusionCharts Suite XT - www.fusioncharts.com
HTML
<script src="https://cdn.fusioncharts.com/fusioncharts/latest/fusioncharts.js"></script>
<script src="https://cdn.fusioncharts.com/fusioncharts/latest/themes/fusioncharts.theme.fusion.js"></script>
<!-- Dragnode chart showing process flow for construction of a store. -->
<div id="chart-container">FusionCharts will render here</div>
JavaScript
const dataSource = {
chart: {
caption: "Amazon Prime Video Categorization",
theme: "fusion",
viewmode: "1",
showrestorebtn: "0",
valuefontcolor: "#FFFFFF",
yaxismaxvalue: "1000",
yaxisminvalue: "0",
divlinealpha: "0"
},
dataset: [
{
data: [
{
id: "01",
label: "Home",
x: "50",
y: "900",
shape: "rectangle",
width: "80",
height: "40"
},
{
id: "02",
label: "TV Shows",
x: "20",
y: "500",
shape: "rectangle",
width: "80",
height: "40"
},
{
id: "02.1",
label: "Thriller",
x: "2",
y: "100",
shape: "rectangle",
width: "60",
height: "40"
},
{
id: "02.2",
label: "Drama",
x: "12",
y: "100",
shape: "rectangle",
width: "60",
height: "40"
},
{
id: "02.3",
label: "Comedy",
x: "22",
y: "100",
shape: "rectangle",
width: "60",
height: "40"
},
{
id: "03",
label: "Movies",
x: "50",
y: "500",
shape: "rectangle",
width: "80",
height: "40"
},
{
id: "03.1",
label: "Drama",
x: "35",
y: "100",
shape: "rectangle",
width: "60",
height: "40"
},
{
id: "03.2",
label: "Action",
x: "45",
y: "100",
shape: "rectangle",
width: "60",
height: "40"
},
{
id: "03.3",
label: "Horror",
x: "55",
y: "100",
shape: "rectangle",
width: "60",
height: "40"
},
{
id: "03.5",
label:...