doc: add LineGraph

This commit is contained in:
Leon Xu committed 2022-05-02 22:08:40 -07:00
1 parent 8ac44ad071
commit ee76daa535
1 file changed
+3
+3
View File
@@ -10,6 +10,7 @@ import axios from "axios";
import InfoBox from "./InfoBox";
import Map from "./Map";
import Table from "./Table";
import LineGraph from "./LineGraph";
import { sortData } from "./util";
import "./App.css";
@@ -17,6 +18,7 @@ function App() {
const [countries, setCountries] = useState([]);
const [country, setCountry] = useState("worldwide");
const [countryInfo, setCountryInfo] = useState({});
const [casesType, setCasesType] = useState("cases");
const [tableData, setTableData] = useState([]);
useEffect(() => {
@@ -101,6 +103,7 @@ function App() {
<h3>Live Cases by Country</h3>
<Table countries={tableData} />
<h3>Worldwide new cases</h3>
<LineGraph casesType={casesType} />
</CardContent>
</Card>
</section>