Share Download code Jump to the code Open in the playground


This example shows how to transform a CSV file into a Ogma's network visualization. The dataset contains edges network data for character relationships within George R. R. Martin's A Storm of Swords, the third novel in his series A Song of Ice and Fire (also known as the HBO television adaptation Game of Thrones). This data was originally compiled by A. Beveridge and J. Shan, "Network of Thrones," Math Horizons Magazine , Vol. 23, No. 4 (2016), pp. 18-22.. The Papa Parse library is used to correctly parse the CSV file.