Skip to content

mcorace/01-ghd3

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 

Repository files navigation

Assignment 1 - Hello World: GitHub and d3

Link to page: http://mcorace.github.io/01-ghd3/index.html

Resources

The following sites were used to identify different attributes of d3 shapes and how to implement them.

https://www.dashingd3js.com/svg-basic-shapes-and-d3js

https://stackoverflow.com/questions/25418333/how-to-draw-straight-line-in-d3-js-horizontally-and-vertically

https://stackoverflow.com/questions/13204562/proper-format-for-drawing-polygon-data-in-d3

Description

This assinment was completed to simulate an image from my favorite book series. The illustration represents the different factions in the series The Stormlight Archive, by Brandon Sanderson. Here is the image I derived my project from. alt text

My final submission is a simplified version of this, but it allowed me to become familiar with d3 shape attributes. I used the line, rectangle, circle, and polygon shapes together to construct this image. It was helpful to learn how to organize shapes on a screen with d3 and fit objects within an svg. It was also important to learn how layering works for d3.

Ideally I would have been able to implement a way to display the name of each faction when the mouse hovered over, but I was unable to implement it for more than a single circle. I attempted to use a tooltip, but it only allowed for a single name to be displayed, no matter what circle was highlighted.

About

Repo for Assignment 1

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • HTML 100.0%