The data was originally sourced from A Wiki of Fire and Ice, a wiki dedicated to Game of Thrones. ![]() I’ve found a great dataset, The War Of The Five Kings. Load the data we are going to be visualizingĪs explained earlier, the data we will be using is based on Game of Thrones. We add these scripts to the head of our code. The Core and Graph modules are required to draw our network graph, and the Data Adapter module will help us import the Game of Thrones JSON data (more on that shortly). In this tutorial, we will be using three of them. To make good use of the An圜hart library, we need to add its dedicated modules. It lets you quickly prototype data visualizations and really helps speed up the entire development process. ![]() I personally love An圜hart because it is great for both beginners and pros alike. We will be using An圜hart JS Charts which is a very easy to use and powerful JavaScript charting library. The second step is to add all the necessary scripts. You may want to change this depending on your use case, of course. I’ve set the CSS to make the container div fill the entire page. Here we also add a title for our HTML page and create a div to contain the chart. This involves creating a basic HTML template for the chart as well as adding the necessary CSS rules. The first step towards building our network graph is to setup an HTML page. Follow me, it’s going to be a cool adventure!īasically, to build a JS-based network graph, we need to follow the same four steps as with literally any JavaScript chart: Inspired by one fun visualization created by Ben Sullins, I decided to take data about the last decade’s biggest TV series, Game of Thrones. It is an epic fantasy tale revolving around the quabbles of various faction-like houses. So in this tutorial, I will be visualizing the relationships in the world of Game of Thrones by showing who attacked whom. ![]() Right now, I will guide you through how to develop an interactive network graph for the web using JavaScript (HTML5). Instead, we are trying to discover relationships in a network or sections of a network and are less worried about individual nodes. Here, we do not focus on representing objects with the same precision we are typically used to. With these charts, you represent each object as a point, referred to as a node, and the connections between the objects as a line, referred to as either a link or an edge. Unlike more traditional chart types like bar graphs or pie charts, a network graph does a bit more than visualize numerical data. Network graphs are a special, very interesting form of data visualization.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |