Part of the Data Visualization Course in IE School of Human Sciences and Technology. Code was adapted from YouthBrea's block: Scatter Plot and changed to the match the dataset that was used.
An example scatter plot with color legend using D3 and d3-legend.
This scatter plot shows the dataset of Movies. Originally published at http://app.rawgraphs.io/, this small dataset records Movies records, including the Production budget, Box Office returns, ROI and IMDB ratings.
In this scatter plot, Y axis is the ratings present on the IMDB site and X axis is representing the production budget for each movie. Each circle one movie and the size of the circle represents the ROI for the movie. Each colour of the circle represents a different genre and hovering over the circle would show the name of the movie and the ROI of the specific movie.
forked from YouthBread's block: Scatter Plot
https://d3js.org/d3.v4.min.js
https://cdnjs.cloudflare.com/ajax/libs/d3-legend/2.24.0/d3-legend.min.js