Skip to main content
100%

Chathurya ICE-6 Scatter Plot

✓ Published0🌍 Public
CChathurya
Last edited Mar 20, 2023
Created on Mar 17, 2023

This scatter plot visualizes the World Happiness Report dataset, showing the relationship between Positive Affect and Life Choices of people, with each point colored by country. The visualization uses circle marks to represent individual data points and includes a color legend to distinguish between countries. Built with D3 v7, the code imports from `d3-scale-chromatic` and `schemeCategory10` for the color scale, while the axes and legend are implemented in separate modules. The data is loaded from a local CSV file using `csvParse`, with numeric columns converted to proper data types before plotting.

AI-generated description

A scatter plot of the world happiness report Dataset with a color legend.

See also:

  • selection.join
  • d3-scale-chromatic
  • ColorBrewer In colorLegend.js file we are writing code for Legend and giving colors, alignment, radius, padding, margin In axes.js file we are writing code for X and Y axis their sizes, direction, alginment, font, margins
MIT Licensed

Similar vizzes