React Chart js Line Graph App - DEV Community 👩‍💻👨‍💻 yarn add react-chartjs-2 chart.js. After the dependencies are installed, now we will create a LineGraph.js file in src folder where we will write the code for our graph. In this file, we will need to import the Line graph from react chartjs in the following manner: import { Line } from "react-chartjs-2"; Next we will define the x and y axis ...