mirror of
https://github.com/dylanbenzi/yellowbird.git
synced 2026-11-27 01:07:01 +00:00
124 lines
1.5 KiB
TypeScript
124 lines
1.5 KiB
TypeScript
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;
|