ZoomCharts Documentation
Version: 1.21.1 (2024-11-08)
Switch to Version 2.0 (BETA)
Switch to Version 2.0 (BETA)
- var t = new NetChart({
- container: document.getElementById("demo"),
- area: { height: 350 },
- data: { url: "/dvsl/data/net-chart/company-network.json" },
- navigation: {
- mode: "focusnodes",
- initialNodes: ["1886"],
- focusNodeExpansionRadius: 12
- },
- interaction: {
- resizing: { enabled: false },
- zooming: {
- zoomExtent: [0.01, 2],
- autoZoomExtent: [0.01, 1]
- }
- },
- style: {
- linkHovered: {
- shadowBlur: 0,
- shadowColor: "transparent"
- },
- link: {
- fillColor: "rgba(86,185,247,0.8)"
- },
- nodeHovered: {
- fillColor: "rgba(47,195,47,0.8)",
- shadowBlur: 0,
- shadowColor: "transparent"
- },
- nodeExpanded: {
- shadowBlur: 0,
- shadowColor: "transparent"
- },
- node: {
- shadowBlur: 0,
- shadowColor: "transparent"
- },
- nodeFocused: {
- shadowBlur: 0,
- shadowColor: "transparent"
- },
- nodeSelected: {
- fillColor: "rgba(47,195,47,0.8)",
- shadowBlur: 0,
- shadowColor: "transparent"
- },
- selection: {
- shadowBlur: 0,
- shadowColor: "transparent"
- }
- }
- });