Skip to content
Snippets Groups Projects
Commit f184cd65 authored by sixertoy's avatar sixertoy
Browse files

:penguin: fix des images et du css des bar-chart

parent 7e1dd15f
No related branches found
No related tags found
No related merge requests found
import "./bar-chart.scss";
// Adapted from https://github.com/eipex2/nivo-cra/tree/master/src/
import { ResponsiveBar } from "@nivo/bar";
import PropTypes from "prop-types";
......@@ -44,10 +46,10 @@ class BarChart extends Component {
const imagePosX = x + width / 2 - size / 2;
const imagePosY = y + height / 2 - size / 2;
const decileImageKey = key.substring(0, key.indexOf("."));
const xlinkHref = `../static/images/decile${decileImageKey}.png`;
const xlinkHref = `/static/images/decile${decileImageKey}.png`;
return (
// const iddecile=key.substring(0,key.indexOf(".")
<img
<image
key={key}
alt=""
height={imageSize}
......@@ -142,7 +144,7 @@ class BarChart extends Component {
<img
alt="Deciles de la population"
height="30"
src={`../static/images/decile${content.id}.png`}
src={`/static/images/decile${content.id}.png`}
width="30"
/>
{`décile : ${Math.round(content.value * 10) / 10}Md€`}
......
// import "styles/chart.scss";
import classicalBuilding from "@iconify/icons-twemoji/classical-building";
import { Icon } from "@iconify/react";
import { Cached as CachedIcon } from "@material-ui/icons";
import { AccountBalance as AccountBalanceIcon } from "@material-ui/icons";
import { Face as FaceIcon } from "@material-ui/icons";
import {
Button, Card, CardContent, Typography,
} from "@material-ui/core";
import { withStyles } from "@material-ui/core/styles";
import {
AccountBalance as AccountBalanceIcon,
Cached as CachedIcon,
Face as FaceIcon,
} from "@material-ui/icons";
import PropTypes from "prop-types";
import { PureComponent } from "react";
......
......@@ -23,6 +23,7 @@ async function start() {
------------------------------------ */
server.use("/", express.static(path.join(__dirname, "public")));
server.use("/static", express.static(path.join(__dirname, "static")));
// Ouverture de la popin de confirmation de connexion
// depuis l'URL /connection/:token
// recue via le mail contenant le magic-link
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment