navbar, homepage init, first nivo chart

This commit is contained in:
2024-02-25 01:15:49 -05:00
parent 5aac68b937
commit 8960e3a247
20 changed files with 1104 additions and 273 deletions
+123
View File
@@ -0,0 +1,123 @@
import React from "react";
import PortfolioChart from "../charts/PortfolioChart";
import Module from "./Module";
function Portfolio() {
const data = [
{
"id": "japan",
"color": "hsl(173, 70%, 50%)",
"data": [
{
"x": "plane",
"y": 274,
},
{
"x": "helicopter",
"y": 197,
},
{
"x": "boat",
"y": 175,
},
{
"x": "train",
"y": 181,
},
{
"x": "subway",
"y": 54,
},
{
"x": "bus",
"y": 91,
},
{
"x": "car",
"y": 68,
},
{
"x": "moto",
"y": 244,
},
{
"x": "bicycle",
"y": 298,
},
{
"x": "horse",
"y": 286,
},
{
"x": "skateboard",
"y": 0,
},
{
"x": "others",
"y": 214,
},
],
},
{
"id": "france",
"color": "hsl(346, 70%, 50%)",
"data": [
{
"x": "plane",
"y": 166,
},
{
"x": "helicopter",
"y": 147,
},
{
"x": "boat",
"y": 276,
},
{
"x": "train",
"y": 132,
},
{
"x": "subway",
"y": 165,
},
{
"x": "bus",
"y": 47,
},
{
"x": "car",
"y": 27,
},
{
"x": "moto",
"y": 40,
},
{
"x": "bicycle",
"y": 80,
},
{
"x": "horse",
"y": 274,
},
{
"x": "skateboard",
"y": 109,
},
{
"x": "others",
"y": 211,
},
],
},
];
return (
// ADD MODULE
<PortfolioChart data={data} />
);
}
export default Portfolio;