dependencyWheel = {
const figure = html`<div style="height: ${
Math.min(width, 1000, 1000) + "px"
}; width:${Math.min(width, 1000, 1000) + "px"};">`;
Highcharts.chart(figure, {
credits: false,
tooltip: {
distance: 100
},
selectionMarkerFill: "#ff0000",
title: {
text: "Mapa de Interações",
style: { fontSize: 15, margin: 5 }
},
accessibility: {
point: {
valueDescriptionFormat:
"{index}. De {point.from} para {point.to}: {point.weight} interações."
}
},
series: [
{
type: "dependencywheel",
name: 'Relações afetando o "interagível"',
allowPointSelect: true,
states: {
select: {
lineWidth: 5,
borderColor: "#ff0000",
color: "#ff0000",
lineWidthPlus: 5,
marker: {
enable: true,
enabledThreshold: 10,
lineWidth: 20,
radius: 10,
lineColor: "#ff0000"
}
}
},
dataLabels: {
color: "#333",
verticalAlign: "top",
align: "center",
allowOverlap: true,
textPath: {
enabled: false,
attributes: {
translateY: 10,
verticalAlign: "bottom"
}
},
style: { fontSize: 8 },
distance: 50
},
size: "95%",
keys: ["from", "to", "weight"],
data: interatyData
}
]
});
return figure;
}