Data Visualization for React Developers React and Bar Chart Exercise
Transcript from the "React and Bar Chart Exercise" Lesson
>> Shirley Wu: Let's do this exercise of drawing the bar chart. Now that we've calculated all of the data, and we figured out how to calculate the data, let's use react to do the rendering. And so here's the starter code, so go to under visualizations, go to Chart.js and then in these examples, we're just going to put the data calculations and to get derived state from props.
[00:00:31] Return it as state, and then use that to render a bunch of rectangles. And then if you do it right, it should show up right here.