You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mvfront-react/components/plot.js

17 lines
373 B

import React from "react";
// const Plot = createPlotComponent(plotly);
const Plot = require("react-plotly.js").default;
export default () => (
<Plot
data={[
{
type: "bar",
x: ["Taubira", "Hidalgo", "Mélenchon"],
y: [29, 150, 85],
},
]}
layout={{ width: 1000, height: 500, title: "Nombre de voix par candidat" }}
/>
);