{"id":17218,"date":"2024-05-23T17:59:44","date_gmt":"2024-05-23T17:59:44","guid":{"rendered":"https:\/\/www.anychart.com\/blog\/?p=17218"},"modified":"2024-05-23T18:05:05","modified_gmt":"2024-05-23T18:05:05","slug":"network-graph-guide","status":"publish","type":"post","link":"https:\/\/www.anychart.com\/blog\/2024\/05\/23\/network-graph-guide\/","title":{"rendered":"How to Build Network Graph with JavaScript"},"content":{"rendered":"<p><a href=\"https:\/\/www.anychart.com\/blog\/2024\/05\/23\/network-graph-guide\/\" target=\"_blank\"><img decoding=\"async\" class=\"alignnone size-full wp-image-17225\" src=\"https:\/\/www.anychart.com\/blog\/wp-content\/uploads\/2024\/04\/volkswagen-network-graph-min.png\" alt=\"Network Graph with JavaScript: Guide\" width=\"100%\" srcset=\"https:\/\/www.anychart.com\/blog\/wp-content\/uploads\/2024\/04\/volkswagen-network-graph-min.png 1280w, https:\/\/www.anychart.com\/blog\/wp-content\/uploads\/2024\/04\/volkswagen-network-graph-min-300x169.png 300w, https:\/\/www.anychart.com\/blog\/wp-content\/uploads\/2024\/04\/volkswagen-network-graph-min-768x432.png 768w, https:\/\/www.anychart.com\/blog\/wp-content\/uploads\/2024\/04\/volkswagen-network-graph-min-1024x576.png 1024w\" sizes=\"(max-width: 1280px) 100vw, 1280px\" \/><\/a><strong>Network graphs<\/strong> are a practical and effective tool in data visualization, particularly useful for illustrating the relationships and connections within complex systems. These\u00a0charts are\u00a0useful for understanding structures in various contexts, from social networks to corporate\u00a0hierarchies. In this tutorial, we&#8217;ll delve into\u00a0a quick path to creating\u00a0a compelling, interactive network graph using JavaScript.<\/p>\n<p>We&#8217;ll use the <strong>Volkswagen Group<\/strong> as our example, mapping out its subsidiaries and product lines to showcase how network graphs can make complex organizational structures understandable and accessible. By the end of this step-by-step guide, you&#8217;ll have a clear understanding of how\u00a0to quickly construct and customize\u00a0a JS-based network graph. Buckle up, as it&#8217;s time to hit the road!<\/p>\n<p><!--more Read the JS charting tutorial \u00bb--><\/p>\n<h2>Understanding Network Graphs<\/h2>\n<p>Network graphs consist of <a href=\"https:\/\/www.anychart.com\/chartopedia\/chart-type\/network-graph\/\">nodes and edges<\/a> \u2014 <strong>nodes<\/strong> represent entities such as individuals or organizations, while <strong>edges<\/strong> depict the relationships between them. These visuals are invaluable for dissecting and displaying the architecture of complex networks, revealing both overt and subtle connections.<\/p>\n<p>In practical terms, network graphs can help illustrate the hierarchy within a corporation, the interaction between different departments, or the flow of communication or resources. Visually, these graphs use various elements like node size, color, and edge thickness to convey information about the importance, type, and strength of relationships.<\/p>\n<p>Below is a preview of what we will create by the end of this tutorial \u2014 a fully interactive network graph that not only serves as a visual map of the Volkswagen Group but also utilizes the dynamic features of JavaScript for a deeper exploration of data.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-17228\" src=\"https:\/\/www.anychart.com\/blog\/wp-content\/uploads\/2024\/04\/vw-group-network-graph-js.png\" alt=\"Network Graph\" width=\"100%\" srcset=\"https:\/\/www.anychart.com\/blog\/wp-content\/uploads\/2024\/04\/vw-group-network-graph-js.png 1400w, https:\/\/www.anychart.com\/blog\/wp-content\/uploads\/2024\/04\/vw-group-network-graph-js-300x171.png 300w, https:\/\/www.anychart.com\/blog\/wp-content\/uploads\/2024\/04\/vw-group-network-graph-js-768x439.png 768w, https:\/\/www.anychart.com\/blog\/wp-content\/uploads\/2024\/04\/vw-group-network-graph-js-1024x585.png 1024w\" sizes=\"(max-width: 1400px) 100vw, 1400px\" \/><\/p>\n<h2>Step-by-Step Guide to Building a Network Graph<\/h2>\n<p>Creating a network graph involves several key steps, each contributing to the final outcome. Here\u2019s a brief overview of what we&#8217;ll cover in this tutorial:<\/p>\n<ol>\n<li><strong>Creating an HTML\u00a0page:<\/strong> This is where we set up the structure for our visualization, providing a canvas on which our\u00a0network graph will be displayed.<\/li>\n<li><strong>Including the necessary JavaScript\u00a0files:<\/strong> Essential for graph functionality, we&#8217;ll incorporate\u00a0scripts needed to build and manage our network graph.<\/li>\n<li><strong>Preparing the\u00a0data:<\/strong> Here, we&#8217;ll organize the data into a format that can\u00a0be smoothly visualized\u00a0in a network graph, distinguishing between different types of nodes and their connections.<\/li>\n<li><strong>Writing the JavaScript\u00a0code for\u00a0visualization:<\/strong> The final step involves scripting the logic that brings our graph to life, enabling interactivity\u00a0to better understand the\u00a0underlying data.<\/li>\n<\/ol>\n<p>Each of these steps will be detailed in the following sections, ensuring you have a clear roadmap to follow as you create your own network graph\u00a0using JavaScript. Let\u2019s dive in and start visualizing!<\/p>\n<h3>Step 1: Setting Up Your HTML<\/h3>\n<p>Start by creating the basic structure for your web page\u00a0if you are building from scratch. This includes setting up an HTML document that will host your network graph. Here is how you can write your HTML:<\/p>\n<pre><code class=\"html\">&lt;!DOCTYPE html&gt;\r\n&lt;html&gt;\r\n&lt;head&gt;\r\n  &lt;title&gt;Network Graph in JavaScript&lt;\/title&gt;\r\n  &lt;style type=\"text\/css\"&gt;\r\n    html, body, #container {\r\n      width: 100%; height: 100%; margin: 0; padding: 0;\r\n    }\r\n    &lt;\/style&gt;\r\n&lt;\/head&gt;\r\n&lt;body&gt;\r\n  &lt;div id=\"container\"&gt;&lt;\/div&gt;\r\n&lt;\/body&gt;\r\n&lt;\/html&gt;<\/code><\/pre>\n<p>This simple HTML structure is foundational. The <code>&lt;div&gt;<\/code> tag identified by <code>id=\"container\"<\/code> is where our network graph will be rendered. The accompanying CSS ensures the graph uses the entire screen, optimizing visual space and ensuring that the graph is both prominent and clear.<\/p>\n<h3>Step 2: Summoning JavaScript\u00a0Files<\/h3>\n<p>To integrate our network graph into the web environment without much hassle, let\u2019s incorporate a JavaScript charting library directly within the HTML framework. There are multiple libraries out there, although not all of them support network graphs. You can check out this comprehensive <a href=\"https:\/\/en.wikipedia.org\/wiki\/Comparison_of_JavaScript_charting_libraries\" target=\"_blank\" rel=\"nofollow\">comparison of JavaScript charting libraries<\/a>, which details some features of various libraries, including support for network graphs. Of those listed, libraries such as amCharts, AnyChart, D3.js, and HighCharts are popular options that support network graphs.<\/p>\n<p>For this tutorial, we\u2019ll utilize <a href=\"https:\/\/www.anychart.com\" target=\"_blank\">AnyChart<\/a> as an example. It&#8217;s one of the libraries I&#8217;ve used extensively over the years, and I thought it would work well to illustrate the common logic of the process and be easy enough to get started for those of you who are new to JS charting.<\/p>\n<p>Here&#8217;s how the\u00a0necessary JS scripts are woven into the HTML, positioned\u00a0within the <code>&lt;head&gt;<\/code> section. Additionally, we prepare the <code>&lt;body&gt;<\/code> section to include our forthcoming JavaScript code\u00a0using those scripts, which will dynamically render the network graph:<\/p>\n<pre><code class=\"html\">&lt;html&gt;\r\n  &lt;head&gt;\r\n    &lt;title&gt;Network Graph in JavaScript&lt;\/title&gt;\r\n    &lt;style type=\"text\/css\"&gt;\r\n      html, body, #container {\r\n        width: 100%; height: 100%; margin: 0; padding: 0;\r\n      }\r\n    &lt;\/style&gt;\r\n    &lt;script src=\"https:\/\/cdn.anychart.com\/releases\/8.12.1\/js\/anychart-core.min.js\"&gt;&lt;\/script&gt;\r\n    &lt;script src=\"https:\/\/cdn.anychart.com\/releases\/8.12.1\/js\/anychart-graph.min.js\"&gt;&lt;\/script&gt;\r\n  &lt;\/head&gt;\r\n  &lt;body&gt;\r\n    &lt;div id=\"container\"&gt;&lt;\/div&gt;\r\n    &lt;script&gt;\r\n      \/\/ JS code for the network graph will be here\r\n    &lt;\/script&gt;\r\n  &lt;\/body&gt;\r\n&lt;\/html&gt;<\/code><\/pre>\n<h3>Step 3: Sculpting\u00a0Data<\/h3>\n<p>With our HTML ready and\u00a0JS files at hand, it&#8217;s time to define our nodes and edges \u2014 the fundamental components of our network graph. This involves structuring the Volkswagen Group&#8217;s data, from the parent company to each product line.<\/p>\n<pre><code class=\"JavaScript\">var data = {\r\n  \"nodes\": [\r\n    {\"id\": \"Volkswagen Group\", \"group\": \"CoreCompany\"},\r\n    {\"id\": \"Audi\", \"group\": \"ChildCompany\"},\r\n    {\"id\": \"Audi Cars\", \"group\": \"Product\"},\r\n    \/\/ More nodes here...\r\n  ],\r\n  \"edges\": [\r\n    {\"from\": \"Volkswagen Group\", \"to\": \"Audi\"},\r\n    {\"from\": \"Audi\", \"to\": \"Audi Cars\"},\r\n    \/\/ More edges here...\r\n  ]\r\n};<\/code><\/pre>\n<h3>Step 4: Choreographing JavaScript to Visualize Network<\/h3>\n<p>This crucial step transforms the structured data into a vibrant, interactive network graph\u00a0within the provided HTML canvas. To ensure clarity and ease of understanding, I\u2019ve divided this process into three intuitive sub-steps, each demonstrated with its own code snippet.<\/p>\n<h4>Initializing<\/h4>\n<p>First, we ensure that our JavaScript visualization code executes only once the HTML document is fully loaded. This is critical as it prevents any DOM manipulation attempts before the HTML is fully prepared.<\/p>\n<pre><code class=\"JavaScript\">anychart.onDocumentReady(function () {\r\n \/\/ Initialization of the network graph will happen here\r\n});<\/code><\/pre>\n<h4>Creating\u00a0Graph Instance<\/h4>\n<p>Inside the\u00a0function, we initialize our network graph. Here, we create a graph object, a chart, using our predefined data. This instance will serve as the basis for our visualization.<\/p>\n<pre><code class=\"JavaScript\">var chart = anychart.graph(data);<\/code><\/pre>\n<h4>Setting\u00a0Container\u00a0for Graph<\/h4>\n<p>The next step is to specify where on the webpage our network graph should be visually rendered. This is linked to the HTML container we defined earlier.<\/p>\n<pre><code class=\"JavaScript\">chart.container(\"container\");<\/code><\/pre>\n<h4><\/h4>\n<h4>Rendering Graph<\/h4>\n<p>The final step is to instruct the graph to draw itself within the designated container. This action brings our data to life, displaying the complex relationships within the Volkswagen Group.<\/p>\n<pre><code class=\"JavaScript\">chart.draw();<\/code><\/pre>\n<p>These sub-steps collectively ensure that our network graph is not only initialized with the correct data and configurations but also properly placed and rendered on the web page, providing a dynamic and informative visual exploration of corporate relationships.<\/p>\n<h3>Network Graph Visualization Unfolded<\/h3>\n<p>Now that our network graph is complete, you can see the resulting\u00a0picture below, which showcases the complex structure of the Volkswagen Group. This interactive\u00a0chart is not only informative but also a testament to the power of JavaScript\u00a0when it comes to cross-platform interactive data visualization.<\/p>\n<p><iframe loading=\"lazy\" class=\"anychart-embed anychart-embed-ynzmE0im\" src=\"https:\/\/playground.anychart.com\/ynzmE0im\/iframe\" width=\"300\" height=\"150\" frameborder=\"0\" sandbox=\"allow-scripts allow-pointer-lock allow-same-origin allow-popups allow-modals allow-forms\" allowfullscreen=\"allowfullscreen\"><br \/>\n<\/iframe><br \/>\n<script type=\"text\/javascript\">(function(){\nfunction ac_add_to_head(el){\n\tvar head = document.getElementsByTagName('head')[0];\n\thead.insertBefore(el,head.firstChild);\n}\nfunction ac_add_style(css){\n\tvar ac_style = document.createElement('style');\n\tif (ac_style.styleSheet) ac_style.styleSheet.cssText = css;\n\telse ac_style.appendChild(document.createTextNode(css));\n\tac_add_to_head(ac_style);\n}\nac_add_style(\".anychart-embed-ynzmE0im{width:100%;height:600px;}\");\n})();<\/script><\/p>\n<p>For a hands-on experience, I invite you to explore this chart interactively on the <a href=\"https:\/\/playground.anychart.com\/ynzmE0im\" target=\"_blank\" rel=\"nofollow\">AnyChart Playground<\/a>, where you can modify the code, experiment with different configurations, and better understand the intricacies of network graphs. The complete HTML\/CSS\/JavaScript code\u00a0for this project is available below \u2014 use it as a reference or a starting point for your own visualization projects.<\/p>\n<pre><code class=\"html\">&lt;html&gt;\r\n  &lt;head&gt;\r\n    &lt;title&gt;Network Graph in JavaScript&lt;\/title&gt;\r\n    &lt;style type=\"text\/css\"&gt;\r\n      html, body, #container {\r\n        width: 100%; height: 100%; margin: 0; padding: 0;\r\n      }\r\n    &lt;\/style&gt;\r\n    &lt;script src=\"https:\/\/cdn.anychart.com\/releases\/8.12.1\/js\/anychart-core.min.js\"&gt;&lt;\/script&gt;\r\n    &lt;script src=\"https:\/\/cdn.anychart.com\/releases\/8.12.1\/js\/anychart-graph.min.js\"&gt;&lt;\/script&gt;\r\n  &lt;\/head&gt;\r\n  &lt;body&gt;\r\n    &lt;div id=\"container\"&gt;&lt;\/div&gt;\r\n    &lt;script&gt;\r\n      anychart.onDocumentReady(function () {\r\n        \/\/ Create data\r\n        const data = {\r\n          \"nodes\": [\r\n            \/\/ parent company\r\n            {\"id\": \"Volkswagen Group\", \"group\": \"CoreCompany\"},\r\n            \/\/ child companies\r\n            {\"id\": \"Audi\", \"group\": \"ChildCompany\"},\r\n            {\"id\": \"CUPRA\", \"group\": \"ChildCompany\"},\r\n            {\"id\": \"Ducati\", \"group\": \"ChildCompany\"},\r\n            {\"id\": \"Lamborghini\", \"group\": \"ChildCompany\"},\r\n            {\"id\": \"MAN\", \"group\": \"ChildCompany\"},\r\n            {\"id\": \"Porsche\", \"group\": \"ChildCompany\"},\r\n            {\"id\": \"Scania\", \"group\": \"ChildCompany\"},\r\n            {\"id\": \"SEAT\", \"group\": \"ChildCompany\"},\r\n            {\"id\": \"\u0160koda\", \"group\": \"ChildCompany\"},\r\n            {\"id\": \"Volkswagen\", \"group\": \"ChildCompany\"},\r\n            \/\/ products\r\n            {\"id\": \"Audi Cars\", \"group\": \"Product\"},\r\n            {\"id\": \"Audi SUVs\", \"group\": \"Product\"},\r\n            {\"id\": \"Audi Electric Vehicles\", \"group\": \"Product\"},\r\n            {\"id\": \"CUPRA Performance Cars\", \"group\": \"Product\"},\r\n            {\"id\": \"CUPRA SUVs\", \"group\": \"Product\"},\r\n            {\"id\": \"Ducati Motorcycles\", \"group\": \"Product\"},\r\n            {\"id\": \"Lamborghini Sports Cars\", \"group\": \"Product\"},\r\n            {\"id\": \"Lamborghini SUVs\", \"group\": \"Product\"},\r\n            {\"id\": \"MAN Trucks\", \"group\": \"Product\"},\r\n            {\"id\": \"MAN Buses\", \"group\": \"Product\"},\r\n            {\"id\": \"Porsche Sports Cars\", \"group\": \"Product\"},\r\n            {\"id\": \"Porsche SUVs\", \"group\": \"Product\"},\r\n            {\"id\": \"Porsche Sedans\", \"group\": \"Product\"},\r\n            {\"id\": \"Scania Trucks\", \"group\": \"Product\"},\r\n            {\"id\": \"Scania Buses\", \"group\": \"Product\"},\r\n            {\"id\": \"SEAT Cars\", \"group\": \"Product\"},\r\n            {\"id\": \"SEAT SUVs\", \"group\": \"Product\"},\r\n            {\"id\": \"SEAT Electric Vehicles\", \"group\": \"Product\"},\r\n            {\"id\": \"\u0160koda Cars\", \"group\": \"Product\"},\r\n            {\"id\": \"\u0160koda SUVs\", \"group\": \"Product\"},\r\n            {\"id\": \"\u0160koda Electric Vehicles\", \"group\": \"Product\"},\r\n            {\"id\": \"Volkswagen Cars\", \"group\": \"Product\"},\r\n            {\"id\": \"Volkswagen SUVs\", \"group\": \"Product\"},\r\n            {\"id\": \"Volkswagen Vans\", \"group\": \"Product\"},\r\n            {\"id\": \"Volkswagen Trucks\", \"group\": \"Product\"}\r\n          ],\r\n          \"edges\": [\r\n            \/\/ parent to child companies\r\n            {\"from\": \"Volkswagen Group\", \"to\": \"Audi\"},\r\n            {\"from\": \"Volkswagen Group\", \"to\": \"CUPRA\"},\r\n            {\"from\": \"Volkswagen Group\", \"to\": \"Ducati\"},\r\n            {\"from\": \"Volkswagen Group\", \"to\": \"Lamborghini\"},\r\n            {\"from\": \"Volkswagen Group\", \"to\": \"MAN\"},\r\n            {\"from\": \"Volkswagen Group\", \"to\": \"Porsche\"},\r\n            {\"from\": \"Volkswagen Group\", \"to\": \"Scania\"},\r\n            {\"from\": \"Volkswagen Group\", \"to\": \"SEAT\"},\r\n            {\"from\": \"Volkswagen Group\", \"to\": \"\u0160koda\"},\r\n            {\"from\": \"Volkswagen Group\", \"to\": \"Volkswagen\"},\r\n            \/\/ child companies to products\r\n            {\"from\": \"Audi\", \"to\": \"Audi Cars\"},\r\n            {\"from\": \"Audi\", \"to\": \"Audi SUVs\"},\r\n            {\"from\": \"Audi\", \"to\": \"Audi Electric Vehicles\"},\r\n            {\"from\": \"CUPRA\", \"to\": \"CUPRA Performance Cars\"},\r\n            {\"from\": \"CUPRA\", \"to\": \"CUPRA SUVs\"},\r\n            {\"from\": \"Ducati\", \"to\": \"Ducati Motorcycles\"},\r\n            {\"from\": \"Lamborghini\", \"to\": \"Lamborghini Sports Cars\"},\r\n            {\"from\": \"Lamborghini\", \"to\": \"Lamborghini SUVs\"},\r\n            {\"from\": \"MAN\", \"to\": \"MAN Trucks\"},\r\n            {\"from\": \"MAN\", \"to\": \"MAN Buses\"},\r\n            {\"from\": \"Porsche\", \"to\": \"Porsche Sports Cars\"},\r\n            {\"from\": \"Porsche\", \"to\": \"Porsche SUVs\"},\r\n            {\"from\": \"Porsche\", \"to\": \"Porsche Sedans\"},\r\n            {\"from\": \"Scania\", \"to\": \"Scania Trucks\"},\r\n            {\"from\": \"Scania\", \"to\": \"Scania Buses\"},\r\n            {\"from\": \"SEAT\", \"to\": \"SEAT Cars\"},\r\n            {\"from\": \"SEAT\", \"to\": \"SEAT SUVs\"},\r\n            {\"from\": \"SEAT\", \"to\": \"SEAT Electric Vehicles\"},\r\n            {\"from\": \"\u0160koda\", \"to\": \"\u0160koda Cars\"},\r\n            {\"from\": \"\u0160koda\", \"to\": \"\u0160koda SUVs\"},\r\n            {\"from\": \"\u0160koda\", \"to\": \"\u0160koda Electric Vehicles\"},\r\n            {\"from\": \"Volkswagen\", \"to\": \"Volkswagen Cars\"},\r\n            {\"from\": \"Volkswagen\", \"to\": \"Volkswagen SUVs\"},\r\n            {\"from\": \"Volkswagen\", \"to\": \"Volkswagen Vans\"},\r\n            {\"from\": \"Volkswagen\", \"to\": \"Volkswagen Trucks\"}\r\n          ]};\r\n        \/\/ Initialize the network graph with the provided data structure\r\n        const chart = anychart.graph(data);\r\n        \/\/ Specify the HTML container ID where the chart will be rendered\r\n        chart.container(\"container\");\r\n        \/\/ Initiate the rendering of the chart\r\n        chart.draw();\r\n      });\r\n    &lt;\/script&gt;\r\n  &lt;\/body&gt;\r\n&lt;\/html&gt;<\/code><\/pre>\n<h2>Customizing\u00a0JavaScript Network Graph<\/h2>\n<p>After establishing a basic network graph of the Volkswagen Group, let&#8217;s enhance its functionality and aesthetics. This part of our tutorial will guide you through\u00a0some of the various customization options, showing you how to evolve your basic\u00a0JavaScript network graph into a more informative and visually appealing visualization.<\/p>\n<p>Each customization step builds upon the previous code, introducing new features and modifications, and providing the viewer with a deeper understanding of the relationships within the Volkswagen corporate structure.<\/p>\n<h3>Displaying Node Labels<\/h3>\n<p>Understanding what each node represents is crucial in a network graph. By default, node labels might not be displayed, but we can easily enable them to make our graph more informative.<\/p>\n<pre><code class=\"JavaScript\">chart.nodes().labels().enabled(true);<\/code><\/pre>\n<p>Enabling labels on nodes ensures that each node is clearly identified, making it easier for users to understand the data at a glance without needing to interact with each node individually.<\/p>\n<h3>Configuring Edge Tooltips<\/h3>\n<p>To enhance user interaction, tooltips can provide additional information when hovering over connections (edges) between nodes. This step involves configuring a tooltip format that shows the relationship between connected nodes.<\/p>\n<pre><code class=\"JavaScript\">chart.edges().tooltip().format(\"{%from} owns {%to}\");<\/code><\/pre>\n<p>This tooltip configuration helps to clarify the connections within the graph, showing direct ownership or affiliation between the parent company and its subsidiaries, enhancing the user&#8217;s comprehension and interaction with the graph.<\/p>\n<h3>Customizing Node Appearance<\/h3>\n<p>Visual differentiation helps to quickly identify types of nodes. We can customize the appearance of nodes based on their group classification, such as distinguishing between the core company, child companies, and products.<\/p>\n<pre><code class=\"JavaScript\">\/\/ 1) configure settings for nodes representing the core company\r\nchart.group('CoreCompany')\r\n  .stroke('none')\r\n  .height(45)\r\n  .fill('red')\r\n  .labels().fontSize(15);\r\n\/\/ 2) configure settings for nodes representing child companies\r\nchart.group('ChildCompany')\r\n  .stroke('none')\r\n  .height(25)\r\n  .labels().fontSize(12);\r\n\/\/ 3) configure settings for nodes representing products\r\nchart.group('Product')\r\n  .shape('square')\r\n  .stroke('black', 1)\r\n  .height(15)\r\n  .labels().enabled(false);<\/code><\/pre>\n<p>These settings enhance the visual hierarchy of the graph. The core company node is more prominent, child companies are easily distinguishable, and product nodes are less emphasized but clearly structured, aiding in the quick visual processing of the graph&#8217;s structure.<\/p>\n<h3>Setting Chart Title<\/h3>\n<p>Adding a title to the chart provides context and introduces the visual content. It&#8217;s a simple but effective way to inform viewers about the purpose of the network graph.<\/p>\n<pre><code class=\"JavaScript\">chart.title(\"Volkswagen Group Network\");<\/code><\/pre>\n<p>The title &#8220;Volkswagen Group Network&#8221; immediately informs the viewer of the graph&#8217;s focus, adding a professional touch and enhancing the overall clarity.<\/p>\n<h3>Final\u00a0Network Graph Visualization<\/h3>\n<p>With these customizations, our network graph is now a detailed and interactive visualization, ready for in-depth exploration. Below is the complete code incorporating all the enhancements discussed. This version of the\u00a0JS-based network graph is not only a tool for displaying static data but also a dynamic map of the Volkswagen Group&#8217;s complex structure.<\/p>\n<p><iframe loading=\"lazy\" class=\"anychart-embed anychart-embed-gY6dpyeV\" src=\"https:\/\/playground.anychart.com\/gY6dpyeV\/iframe\" width=\"300\" height=\"150\" frameborder=\"0\" sandbox=\"allow-scripts allow-pointer-lock allow-same-origin allow-popups allow-modals allow-forms\" allowfullscreen=\"allowfullscreen\"><br \/>\n<\/iframe><br \/>\n<script type=\"text\/javascript\">(function(){\nfunction ac_add_to_head(el){\n\tvar head = document.getElementsByTagName('head')[0];\n\thead.insertBefore(el,head.firstChild);\n}\nfunction ac_add_style(css){\n\tvar ac_style = document.createElement('style');\n\tif (ac_style.styleSheet) ac_style.styleSheet.cssText = css;\n\telse ac_style.appendChild(document.createTextNode(css));\n\tac_add_to_head(ac_style);\n}\nac_add_style(\".anychart-embed-gY6dpyeV{width:100%;height:600px;}\");\n})();<\/script><\/p>\n<p>I invite you to view and interact with this chart on the <a href=\"https:\/\/playground.anychart.com\/gY6dpyeV\" target=\"_blank\" rel=\"nofollow\">AnyChart Playground <\/a>to see\u00a0it in action and to tweak the code further to suit your specific needs. For your convenience, the full network graph code is also provided below:<\/p>\n<pre><code class=\"html\">&lt;html&gt;\r\n  &lt;head&gt;\r\n    &lt;title&gt;Network Graph in JavaScript&lt;\/title&gt;\r\n    &lt;style type=\"text\/css\"&gt;\r\n      html, body, #container {\r\n        width: 100%; height: 100%; margin: 0; padding: 0;\r\n      }\r\n    &lt;\/style&gt;\r\n    &lt;script src=\"https:\/\/cdn.anychart.com\/releases\/8.12.1\/js\/anychart-core.min.js\"&gt;&lt;\/script&gt;\r\n    &lt;script src=\"https:\/\/cdn.anychart.com\/releases\/8.12.1\/js\/anychart-graph.min.js\"&gt;&lt;\/script&gt;\r\n  &lt;\/head&gt;\r\n  &lt;body&gt;\r\n    &lt;div id=\"container\"&gt;&lt;\/div&gt;\r\n    &lt;script&gt;\r\n      anychart.onDocumentReady(function () {\r\n        \/\/ Create data\r\n        const data = {\r\n          \"nodes\": [\r\n            \/\/ parent company\r\n            {\"id\": \"Volkswagen Group\", \"group\": \"CoreCompany\"},\r\n            \/\/ child companies\r\n            {\"id\": \"Audi\", \"group\": \"ChildCompany\"},\r\n            {\"id\": \"CUPRA\", \"group\": \"ChildCompany\"},\r\n            {\"id\": \"Ducati\", \"group\": \"ChildCompany\"},\r\n            {\"id\": \"Lamborghini\", \"group\": \"ChildCompany\"},\r\n            {\"id\": \"MAN\", \"group\": \"ChildCompany\"},\r\n            {\"id\": \"Porsche\", \"group\": \"ChildCompany\"},\r\n            {\"id\": \"Scania\", \"group\": \"ChildCompany\"},\r\n            {\"id\": \"SEAT\", \"group\": \"ChildCompany\"},\r\n            {\"id\": \"\u0160koda\", \"group\": \"ChildCompany\"},\r\n            {\"id\": \"Volkswagen\", \"group\": \"ChildCompany\"},\r\n            \/\/ products\r\n            {\"id\": \"Audi Cars\", \"group\": \"Product\"},\r\n            {\"id\": \"Audi SUVs\", \"group\": \"Product\"},\r\n            {\"id\": \"Audi Electric Vehicles\", \"group\": \"Product\"},\r\n            {\"id\": \"CUPRA Performance Cars\", \"group\": \"Product\"},\r\n            {\"id\": \"CUPRA SUVs\", \"group\": \"Product\"},\r\n            {\"id\": \"Ducati Motorcycles\", \"group\": \"Product\"},\r\n            {\"id\": \"Lamborghini Sports Cars\", \"group\": \"Product\"},\r\n            {\"id\": \"Lamborghini SUVs\", \"group\": \"Product\"},\r\n            {\"id\": \"MAN Trucks\", \"group\": \"Product\"},\r\n            {\"id\": \"MAN Buses\", \"group\": \"Product\"},\r\n            {\"id\": \"Porsche Sports Cars\", \"group\": \"Product\"},\r\n            {\"id\": \"Porsche SUVs\", \"group\": \"Product\"},\r\n            {\"id\": \"Porsche Sedans\", \"group\": \"Product\"},\r\n            {\"id\": \"Scania Trucks\", \"group\": \"Product\"},\r\n            {\"id\": \"Scania Buses\", \"group\": \"Product\"},\r\n            {\"id\": \"SEAT Cars\", \"group\": \"Product\"},\r\n            {\"id\": \"SEAT SUVs\", \"group\": \"Product\"},\r\n            {\"id\": \"SEAT Electric Vehicles\", \"group\": \"Product\"},\r\n            {\"id\": \"\u0160koda Cars\", \"group\": \"Product\"},\r\n            {\"id\": \"\u0160koda SUVs\", \"group\": \"Product\"},\r\n            {\"id\": \"\u0160koda Electric Vehicles\", \"group\": \"Product\"},\r\n            {\"id\": \"Volkswagen Cars\", \"group\": \"Product\"},\r\n            {\"id\": \"Volkswagen SUVs\", \"group\": \"Product\"},\r\n            {\"id\": \"Volkswagen Vans\", \"group\": \"Product\"},\r\n            {\"id\": \"Volkswagen Trucks\", \"group\": \"Product\"}\r\n            ],\r\n          \"edges\": [\r\n            \/\/ parent to child companies\r\n            {\"from\": \"Volkswagen Group\", \"to\": \"Audi\"},\r\n            {\"from\": \"Volkswagen Group\", \"to\": \"CUPRA\"},\r\n            {\"from\": \"Volkswagen Group\", \"to\": \"Ducati\"},\r\n            {\"from\": \"Volkswagen Group\", \"to\": \"Lamborghini\"},\r\n            {\"from\": \"Volkswagen Group\", \"to\": \"MAN\"},\r\n            {\"from\": \"Volkswagen Group\", \"to\": \"Porsche\"},\r\n            {\"from\": \"Volkswagen Group\", \"to\": \"Scania\"},\r\n            {\"from\": \"Volkswagen Group\", \"to\": \"SEAT\"},\r\n            {\"from\": \"Volkswagen Group\", \"to\": \"\u0160koda\"},\r\n            {\"from\": \"Volkswagen Group\", \"to\": \"Volkswagen\"},\r\n            \/\/ child companies to products\r\n            {\"from\": \"Audi\", \"to\": \"Audi Cars\"},\r\n            {\"from\": \"Audi\", \"to\": \"Audi SUVs\"},\r\n            {\"from\": \"Audi\", \"to\": \"Audi Electric Vehicles\"},\r\n            {\"from\": \"CUPRA\", \"to\": \"CUPRA Performance Cars\"},\r\n            {\"from\": \"CUPRA\", \"to\": \"CUPRA SUVs\"},\r\n            {\"from\": \"Ducati\", \"to\": \"Ducati Motorcycles\"},\r\n            {\"from\": \"Lamborghini\", \"to\": \"Lamborghini Sports Cars\"},\r\n            {\"from\": \"Lamborghini\", \"to\": \"Lamborghini SUVs\"},\r\n            {\"from\": \"MAN\", \"to\": \"MAN Trucks\"},\r\n            {\"from\": \"MAN\", \"to\": \"MAN Buses\"},\r\n            {\"from\": \"Porsche\", \"to\": \"Porsche Sports Cars\"},\r\n            {\"from\": \"Porsche\", \"to\": \"Porsche SUVs\"},\r\n            {\"from\": \"Porsche\", \"to\": \"Porsche Sedans\"},\r\n            {\"from\": \"Scania\", \"to\": \"Scania Trucks\"},\r\n            {\"from\": \"Scania\", \"to\": \"Scania Buses\"},\r\n            {\"from\": \"SEAT\", \"to\": \"SEAT Cars\"},\r\n            {\"from\": \"SEAT\", \"to\": \"SEAT SUVs\"},\r\n            {\"from\": \"SEAT\", \"to\": \"SEAT Electric Vehicles\"},\r\n            {\"from\": \"\u0160koda\", \"to\": \"\u0160koda Cars\"},\r\n            {\"from\": \"\u0160koda\", \"to\": \"\u0160koda SUVs\"},\r\n            {\"from\": \"\u0160koda\", \"to\": \"\u0160koda Electric Vehicles\"},\r\n            {\"from\": \"Volkswagen\", \"to\": \"Volkswagen Cars\"},\r\n            {\"from\": \"Volkswagen\", \"to\": \"Volkswagen SUVs\"},\r\n            {\"from\": \"Volkswagen\", \"to\": \"Volkswagen Vans\"},\r\n            {\"from\": \"Volkswagen\", \"to\": \"Volkswagen Trucks\"}\r\n          ]};\r\n        \/\/ Initialize the network graph with the provided data structure\r\n        const chart = anychart.graph(data);\r\n        \/\/ Customization step #1:\r\n        \/\/ display chart node labels\r\n        chart.nodes().labels().enabled(true);\r\n        \/\/ Customization step #2:\r\n        \/\/ configure edge tooltips\r\n        chart.edges().tooltip().format(\"{%from} owns {%to}\");\r\n        \/\/ Customization step #3:\r\n        \/\/ customizing node appearance:\r\n        \/\/ 1) configure settings for nodes representing the core company\r\n        chart.group('CoreCompany')\r\n          .stroke('none')\r\n          .height(45)\r\n          .fill('red')\r\n          .labels().fontSize(15);\r\n        \/\/ 2) configure settings for nodes representing child companies\r\n        chart.group('ChildCompany')\r\n          .stroke('none')\r\n          .height(25)\r\n          .labels().fontSize(12);\r\n        \/\/ 3) configure settings for nodes representing products\r\n        chart.group('Product')\r\n          .shape('square')\r\n          .stroke('black', 1)\r\n          .height(15)\r\n          .labels().enabled(false);\r\n        \/\/ Customization step #4:\r\n        \/\/ set the title of the chart for context\r\n        chart.title(\"Volkswagen Group Network\");\r\n        \/\/ Specify the HTML container ID where the chart will be rendered\r\n        chart.container(\"container\");\r\n        \/\/ Initiate the rendering of the chart\r\n        chart.draw();\r\n      });\r\n    &lt;\/script&gt;\r\n  &lt;\/body&gt;\r\n&lt;\/html&gt;<\/code><\/pre>\n<h2>Conclusion<\/h2>\n<p>Congratulations on completing this tutorial on crafting a dynamic JavaScript network graph! You&#8217;ve not only learned to visualize complex structures\u00a0but also how to customize the graph to enhance its clarity and interactivity.<\/p>\n<p>As you continue to explore the possibilities within network graph visualizations, I encourage you to delve deeper, experiment with <a href=\"https:\/\/docs.anychart.com\/Basic_Charts\/Network_Graph\" target=\"_blank\" rel=\"nofollow\">further customization<\/a>, and look for some <a href=\"https:\/\/www.anychart.com\/products\/anychart\/gallery\/Network_Graph\/\">inspiring chart examples<\/a> out there.<\/p>\n<p>The skills you&#8217;ve acquired today are just the beginning. Keep experimenting, tweaking, and learning to unlock the full potential of data visualization in your projects. Happy charting!<\/p>\n<hr \/>\n<p><strong><em>Published with permission of Alex Carter. Originally appeared on <a href=\"https:\/\/dzone.com\/articles\/how-to-create-a-network-graph-using-javascript\" target=\"_blank\" rel=\"nofollow\">DZone<\/a> under the title &#8220;How To Create a Network Graph Using JavaScript&#8221; on May 22, 2024.<\/p>\n<p>To further hone your new skills, check out the <a href=\"https:\/\/www.anychart.com\/blog\/2024\/04\/18\/creating-network-graph\/\">Network Graph Tutorial<\/a> originally published on our blog earlier, visualizing the Solar System network step by step.<\/p>\n<p>Explore more <a href=\"https:\/\/www.anychart.com\/blog\/category\/javascript-chart-tutorials\/\">JavaScript charting tutorials<\/a> and continue improving your interactive data visualization expertise.<\/p>\n<p>Have an idea for a guest post or want to repost your article featuring AnyChart published elsewhere? Just <a href=\"https:\/\/www.anychart.com\/support\/\">contact us<\/a>.<\/em><\/strong><\/p>\n<hr \/>\n<p><!-- SyntaxHighlighter --><link rel=\"stylesheet\" href=\"\/\/cdnjs.cloudflare.com\/ajax\/libs\/highlight.js\/9.12.0\/styles\/default.min.css\"><link rel=\"stylesheet\" href=\"\/\/cdnjs.cloudflare.com\/ajax\/libs\/highlight.js\/9.12.0\/styles\/atom-one-light.min.css\"><script src=\"\/\/cdnjs.cloudflare.com\/ajax\/libs\/highlight.js\/9.12.0\/highlight.min.js\"><\/script><script>hljs.initHighlightingOnLoad();<\/script><\/p>\n<!-- AddThis Advanced Settings generic via filter on the_content --><!-- AddThis Share Buttons generic via filter on the_content -->","protected":false},"excerpt":{"rendered":"<p>Network graphs are a practical and effective tool in data visualization, particularly useful for illustrating the relationships and connections within complex systems. These\u00a0charts are\u00a0useful for understanding structures in various contexts, from social networks to corporate\u00a0hierarchies. In this tutorial, we&#8217;ll delve into\u00a0a quick path to creating\u00a0a compelling, interactive network graph using JavaScript. We&#8217;ll use the Volkswagen [&hellip;]<!-- AddThis Advanced Settings generic via filter on get_the_excerpt --><!-- AddThis Share Buttons generic via filter on get_the_excerpt --><\/p>\n","protected":false},"author":28,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,263,23,13,279,4],"tags":[3173,3684,260,3685,3617,1758,3149,284,3687,3693,3694,3682,3681,282,620,1292,880,806,1759,3352,509,2220,2838,54,1760,2757,256,3377,844,313,1370,133,774,775,1498,805,1762,2013,2014,32,55,167,146,433,152,2949,151,36,907,141,249,3111,81,57,1238,142,96,99,3586,58,65,56,101,3526,957,783,3691,3692,3630,3099,3689,3690,3688,172,3100,293,2427,3683,3686,2816,1763,804,3407],"class_list":["post-17218","post","type-post","status-publish","format-standard","hentry","category-anychart-charting-component","category-big-data","category-html5","category-javascript","category-javascript-chart-tutorials","category-tips-and-tricks","tag-app-development","tag-automotive","tag-best-data-visualization-examples","tag-car-manufacturer","tag-car-sales","tag-chart-design","tag-chart-development","tag-chart-examples","tag-connections","tag-corporate-hierarchy","tag-corporate-hierarchy-visualization","tag-corporate-network","tag-corporate-structure","tag-data","tag-data-analytics-examples","tag-data-chart","tag-data-charting","tag-data-charts","tag-data-design","tag-data-graphic","tag-data-graphics","tag-data-visual","tag-data-visualisation","tag-data-visualization","tag-data-visualization-design","tag-data-visualization-development","tag-data-visualization-examples","tag-data-visualization-guide","tag-data-visualization-tutorial","tag-data-visuals","tag-data-viz-examples","tag-dataviz","tag-dataviz-examples","tag-dataviz-projects","tag-example","tag-front-end-development","tag-guest-post","tag-html","tag-html-charts","tag-html5","tag-html5-charts","tag-interactive-charts","tag-interactive-data-visualization","tag-interactive-graphics","tag-interactive-infographic","tag-interactive-infographics","tag-interactive-visualizations","tag-javascript","tag-javascript-chart-tutorial","tag-javascript-charting","tag-javascript-charting-api","tag-javascript-charting-features","tag-javascript-charting-library","tag-javascript-charts","tag-javascript-graph","tag-javascript-graphics","tag-javascript-graphics-library","tag-javascript-library","tag-js","tag-js-chart","tag-js-charting","tag-js-charts","tag-js-graphics","tag-js-library","tag-network-graph","tag-relationships","tag-social-network","tag-social-network-visualization","tag-software-development","tag-storytelling-examples","tag-structure","tag-structure-visualization","tag-system","tag-tutorial","tag-visual-storytelling-examples","tag-visualization","tag-volkswagen","tag-volkswagen-group","tag-volkswagen-group-network","tag-web-design","tag-web-developers","tag-web-development","tag-website-development","wpautop"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Network Graph Guide \u2014 JavaScript Charting Tutorial<\/title>\n<meta name=\"description\" content=\"Learn how to quickly create an interactive network graph in JavaScript, visualizing Volkswagen&#039;s structure with easy steps &amp; ready-to-use JS chart examples.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.anychart.com\/blog\/2024\/05\/23\/network-graph-guide\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How To Create a Network Graph with JavaScript\" \/>\n<meta property=\"og:description\" content=\"Learn how to quickly create an interactive network graph in JavaScript, visualizing Volkswagen&#039;s structure with easy steps &amp; ready-to-use JS chart examples.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.anychart.com\/blog\/2024\/05\/23\/network-graph-guide\/\" \/>\n<meta property=\"og:site_name\" content=\"AnyChart News\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/AnyCharts\" \/>\n<meta property=\"article:published_time\" content=\"2024-05-23T17:59:44+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-05-23T18:05:05+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.anychart.com\/blog\/wp-content\/uploads\/2024\/04\/volkswagen-network-graph-tutorial-min.png\" \/>\n<meta name=\"author\" content=\"Alex Carter | DZone\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"How To Create a Network Graph with JavaScript\" \/>\n<meta name=\"twitter:description\" content=\"Learn how to quickly create an interactive network graph in JavaScript, visualizing Volkswagen&#039;s structure with easy steps &amp; ready-to-use JS chart examples.\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/www.anychart.com\/blog\/wp-content\/uploads\/2024\/04\/volkswagen-network-graph-tutorial-min.png\" \/>\n<meta name=\"twitter:creator\" content=\"@AnyChart\" \/>\n<meta name=\"twitter:site\" content=\"@AnyChart\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Alex Carter | DZone\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"15 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.anychart.com\/blog\/2024\/05\/23\/network-graph-guide\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.anychart.com\/blog\/2024\/05\/23\/network-graph-guide\/\"},\"author\":{\"name\":\"Alex Carter | DZone\",\"@id\":\"https:\/\/www.anychart.com\/blog\/#\/schema\/person\/bc461b01f3478b42215a2d221c7e6e66\"},\"headline\":\"How to Build Network Graph with JavaScript\",\"datePublished\":\"2024-05-23T17:59:44+00:00\",\"dateModified\":\"2024-05-23T18:05:05+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.anychart.com\/blog\/2024\/05\/23\/network-graph-guide\/\"},\"wordCount\":1690,\"commentCount\":0,\"image\":{\"@id\":\"https:\/\/www.anychart.com\/blog\/2024\/05\/23\/network-graph-guide\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.anychart.com\/blog\/wp-content\/uploads\/2024\/04\/volkswagen-network-graph-min.png\",\"keywords\":[\"app development\",\"automotive\",\"best data visualization examples\",\"car manufacturer\",\"car sales\",\"chart design\",\"chart development\",\"chart examples\",\"connections\",\"corporate\u00a0hierarchy\",\"corporate\u00a0hierarchy visualization\",\"corporate network\",\"corporate structure\",\"data\",\"data analytics examples\",\"data chart\",\"data charting\",\"data charts\",\"data design\",\"data graphic\",\"data graphics\",\"data visual\",\"data visualisation\",\"Data Visualization\",\"data visualization design\",\"data visualization development\",\"data visualization examples\",\"data visualization guide\",\"data visualization tutorial\",\"data visuals\",\"data viz examples\",\"dataviz\",\"dataviz examples\",\"dataviz projects\",\"example\",\"front-end development\",\"guest post\",\"HTML\",\"HTML charts\",\"HTML5\",\"html5 charts\",\"interactive charts\",\"interactive data visualization\",\"interactive graphics\",\"interactive infographic\",\"interactive infographics\",\"interactive visualizations\",\"JavaScript\",\"javascript chart tutorial\",\"javascript charting\",\"javascript charting api\",\"JavaScript charting features\",\"JavaScript charting library\",\"javascript charts\",\"javascript graph\",\"javascript graphics\",\"JavaScript graphics library\",\"JavaScript library\",\"js\",\"js chart\",\"js charting\",\"js charts\",\"JS graphics\",\"js library\",\"network graph\",\"relationships\",\"social network\",\"social network visualization\",\"software development\",\"storytelling examples\",\"structure\",\"structure visualization\",\"system\",\"tutorial\",\"visual storytelling examples\",\"visualization\",\"Volkswagen\",\"Volkswagen Group\",\"Volkswagen Group Network\",\"web design\",\"web developers\",\"web development\",\"website development\"],\"articleSection\":[\"AnyChart Charting Component\",\"Big Data\",\"HTML5\",\"JavaScript\",\"JavaScript Chart Tutorials\",\"Tips and Tricks\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.anychart.com\/blog\/2024\/05\/23\/network-graph-guide\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.anychart.com\/blog\/2024\/05\/23\/network-graph-guide\/\",\"url\":\"https:\/\/www.anychart.com\/blog\/2024\/05\/23\/network-graph-guide\/\",\"name\":\"Network Graph Guide \u2014 JavaScript Charting Tutorial\",\"isPartOf\":{\"@id\":\"https:\/\/www.anychart.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.anychart.com\/blog\/2024\/05\/23\/network-graph-guide\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.anychart.com\/blog\/2024\/05\/23\/network-graph-guide\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.anychart.com\/blog\/wp-content\/uploads\/2024\/04\/volkswagen-network-graph-min.png\",\"datePublished\":\"2024-05-23T17:59:44+00:00\",\"dateModified\":\"2024-05-23T18:05:05+00:00\",\"author\":{\"@id\":\"https:\/\/www.anychart.com\/blog\/#\/schema\/person\/bc461b01f3478b42215a2d221c7e6e66\"},\"description\":\"Learn how to quickly create an interactive network graph in JavaScript, visualizing Volkswagen's structure with easy steps & ready-to-use JS chart examples.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.anychart.com\/blog\/2024\/05\/23\/network-graph-guide\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.anychart.com\/blog\/2024\/05\/23\/network-graph-guide\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.anychart.com\/blog\/2024\/05\/23\/network-graph-guide\/#primaryimage\",\"url\":\"https:\/\/www.anychart.com\/blog\/wp-content\/uploads\/2024\/04\/volkswagen-network-graph-min.png\",\"contentUrl\":\"https:\/\/www.anychart.com\/blog\/wp-content\/uploads\/2024\/04\/volkswagen-network-graph-min.png\",\"width\":1280,\"height\":720},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.anychart.com\/blog\/2024\/05\/23\/network-graph-guide\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.anychart.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Build Network Graph with JavaScript\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.anychart.com\/blog\/#website\",\"url\":\"https:\/\/www.anychart.com\/blog\/\",\"name\":\"AnyChart News\",\"description\":\"AnyChart JS Charts\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.anychart.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.anychart.com\/blog\/#\/schema\/person\/bc461b01f3478b42215a2d221c7e6e66\",\"name\":\"Alex Carter | DZone\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.anychart.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/2e58321be059ad03e5bc80192cbce1a29aa677db419339665b5f5be3f4732263?s=96&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/2e58321be059ad03e5bc80192cbce1a29aa677db419339665b5f5be3f4732263?s=96&r=g\",\"caption\":\"Alex Carter | DZone\"},\"url\":\"https:\/\/www.anychart.com\/blog\/author\/alexcarter\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Network Graph Guide \u2014 JavaScript Charting Tutorial","description":"Learn how to quickly create an interactive network graph in JavaScript, visualizing Volkswagen's structure with easy steps & ready-to-use JS chart examples.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.anychart.com\/blog\/2024\/05\/23\/network-graph-guide\/","og_locale":"en_US","og_type":"article","og_title":"How To Create a Network Graph with JavaScript","og_description":"Learn how to quickly create an interactive network graph in JavaScript, visualizing Volkswagen's structure with easy steps & ready-to-use JS chart examples.","og_url":"https:\/\/www.anychart.com\/blog\/2024\/05\/23\/network-graph-guide\/","og_site_name":"AnyChart News","article_publisher":"https:\/\/www.facebook.com\/AnyCharts","article_published_time":"2024-05-23T17:59:44+00:00","article_modified_time":"2024-05-23T18:05:05+00:00","og_image":[{"url":"https:\/\/www.anychart.com\/blog\/wp-content\/uploads\/2024\/04\/volkswagen-network-graph-tutorial-min.png","type":"","width":"","height":""}],"author":"Alex Carter | DZone","twitter_card":"summary_large_image","twitter_title":"How To Create a Network Graph with JavaScript","twitter_description":"Learn how to quickly create an interactive network graph in JavaScript, visualizing Volkswagen's structure with easy steps & ready-to-use JS chart examples.","twitter_image":"https:\/\/www.anychart.com\/blog\/wp-content\/uploads\/2024\/04\/volkswagen-network-graph-tutorial-min.png","twitter_creator":"@AnyChart","twitter_site":"@AnyChart","twitter_misc":{"Written by":"Alex Carter | DZone","Est. reading time":"15 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.anychart.com\/blog\/2024\/05\/23\/network-graph-guide\/#article","isPartOf":{"@id":"https:\/\/www.anychart.com\/blog\/2024\/05\/23\/network-graph-guide\/"},"author":{"name":"Alex Carter | DZone","@id":"https:\/\/www.anychart.com\/blog\/#\/schema\/person\/bc461b01f3478b42215a2d221c7e6e66"},"headline":"How to Build Network Graph with JavaScript","datePublished":"2024-05-23T17:59:44+00:00","dateModified":"2024-05-23T18:05:05+00:00","mainEntityOfPage":{"@id":"https:\/\/www.anychart.com\/blog\/2024\/05\/23\/network-graph-guide\/"},"wordCount":1690,"commentCount":0,"image":{"@id":"https:\/\/www.anychart.com\/blog\/2024\/05\/23\/network-graph-guide\/#primaryimage"},"thumbnailUrl":"https:\/\/www.anychart.com\/blog\/wp-content\/uploads\/2024\/04\/volkswagen-network-graph-min.png","keywords":["app development","automotive","best data visualization examples","car manufacturer","car sales","chart design","chart development","chart examples","connections","corporate\u00a0hierarchy","corporate\u00a0hierarchy visualization","corporate network","corporate structure","data","data analytics examples","data chart","data charting","data charts","data design","data graphic","data graphics","data visual","data visualisation","Data Visualization","data visualization design","data visualization development","data visualization examples","data visualization guide","data visualization tutorial","data visuals","data viz examples","dataviz","dataviz examples","dataviz projects","example","front-end development","guest post","HTML","HTML charts","HTML5","html5 charts","interactive charts","interactive data visualization","interactive graphics","interactive infographic","interactive infographics","interactive visualizations","JavaScript","javascript chart tutorial","javascript charting","javascript charting api","JavaScript charting features","JavaScript charting library","javascript charts","javascript graph","javascript graphics","JavaScript graphics library","JavaScript library","js","js chart","js charting","js charts","JS graphics","js library","network graph","relationships","social network","social network visualization","software development","storytelling examples","structure","structure visualization","system","tutorial","visual storytelling examples","visualization","Volkswagen","Volkswagen Group","Volkswagen Group Network","web design","web developers","web development","website development"],"articleSection":["AnyChart Charting Component","Big Data","HTML5","JavaScript","JavaScript Chart Tutorials","Tips and Tricks"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.anychart.com\/blog\/2024\/05\/23\/network-graph-guide\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.anychart.com\/blog\/2024\/05\/23\/network-graph-guide\/","url":"https:\/\/www.anychart.com\/blog\/2024\/05\/23\/network-graph-guide\/","name":"Network Graph Guide \u2014 JavaScript Charting Tutorial","isPartOf":{"@id":"https:\/\/www.anychart.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.anychart.com\/blog\/2024\/05\/23\/network-graph-guide\/#primaryimage"},"image":{"@id":"https:\/\/www.anychart.com\/blog\/2024\/05\/23\/network-graph-guide\/#primaryimage"},"thumbnailUrl":"https:\/\/www.anychart.com\/blog\/wp-content\/uploads\/2024\/04\/volkswagen-network-graph-min.png","datePublished":"2024-05-23T17:59:44+00:00","dateModified":"2024-05-23T18:05:05+00:00","author":{"@id":"https:\/\/www.anychart.com\/blog\/#\/schema\/person\/bc461b01f3478b42215a2d221c7e6e66"},"description":"Learn how to quickly create an interactive network graph in JavaScript, visualizing Volkswagen's structure with easy steps & ready-to-use JS chart examples.","breadcrumb":{"@id":"https:\/\/www.anychart.com\/blog\/2024\/05\/23\/network-graph-guide\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.anychart.com\/blog\/2024\/05\/23\/network-graph-guide\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.anychart.com\/blog\/2024\/05\/23\/network-graph-guide\/#primaryimage","url":"https:\/\/www.anychart.com\/blog\/wp-content\/uploads\/2024\/04\/volkswagen-network-graph-min.png","contentUrl":"https:\/\/www.anychart.com\/blog\/wp-content\/uploads\/2024\/04\/volkswagen-network-graph-min.png","width":1280,"height":720},{"@type":"BreadcrumbList","@id":"https:\/\/www.anychart.com\/blog\/2024\/05\/23\/network-graph-guide\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.anychart.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Build Network Graph with JavaScript"}]},{"@type":"WebSite","@id":"https:\/\/www.anychart.com\/blog\/#website","url":"https:\/\/www.anychart.com\/blog\/","name":"AnyChart News","description":"AnyChart JS Charts","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.anychart.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.anychart.com\/blog\/#\/schema\/person\/bc461b01f3478b42215a2d221c7e6e66","name":"Alex Carter | DZone","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.anychart.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/2e58321be059ad03e5bc80192cbce1a29aa677db419339665b5f5be3f4732263?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/2e58321be059ad03e5bc80192cbce1a29aa677db419339665b5f5be3f4732263?s=96&r=g","caption":"Alex Carter | DZone"},"url":"https:\/\/www.anychart.com\/blog\/author\/alexcarter\/"}]}},"_links":{"self":[{"href":"https:\/\/www.anychart.com\/blog\/wp-json\/wp\/v2\/posts\/17218","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.anychart.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.anychart.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.anychart.com\/blog\/wp-json\/wp\/v2\/users\/28"}],"replies":[{"embeddable":true,"href":"https:\/\/www.anychart.com\/blog\/wp-json\/wp\/v2\/comments?post=17218"}],"version-history":[{"count":23,"href":"https:\/\/www.anychart.com\/blog\/wp-json\/wp\/v2\/posts\/17218\/revisions"}],"predecessor-version":[{"id":17368,"href":"https:\/\/www.anychart.com\/blog\/wp-json\/wp\/v2\/posts\/17218\/revisions\/17368"}],"wp:attachment":[{"href":"https:\/\/www.anychart.com\/blog\/wp-json\/wp\/v2\/media?parent=17218"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.anychart.com\/blog\/wp-json\/wp\/v2\/categories?post=17218"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.anychart.com\/blog\/wp-json\/wp\/v2\/tags?post=17218"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}