This challenge is create a component that displays a scatter plot of data from an iris dataset.
See the reference solution here: http://ixc-datavis.surge.sh/
-
run
npm iin order to install required packages. -
run
npm startin to run the app in development mode.
-
Follow these coding style guidelines.
-
Do not add any additional modules/dependencies.
-
Create a component
scatter.jsxthat will display the data fromprops.datasetin a scatter plot, and at a minimum:-
Component takes its dimensions from
props.widthandprops.height. -
Each point in the scatter plot is an individual row (flower).
-
X axis is
petalWidth, and Y axis ispetalLength. -
Color each point by
species(e.g. virginica is blue, versicolor is green, setosa is orange). -
On point hover, show all stats (
species,petalWidth,petalLength,sepalWidth, andsepalLength).
-