diff --git a/build.zip b/build.zip deleted file mode 100644 index 4a8d9a2..0000000 Binary files a/build.zip and /dev/null differ diff --git a/src/components/SemiDonut/index.js b/src/components/SemiDonut/index.js index 227378a..ad7614e 100644 --- a/src/components/SemiDonut/index.js +++ b/src/components/SemiDonut/index.js @@ -1,4 +1,7 @@ import React, { Component } from "react"; + +import "./index.scss"; + // import ReactApexChart from "react-apexcharts"; // import ReactApexChart from "apexcharts"; import Chart from "react-apexcharts"; @@ -12,7 +15,9 @@ class SemiDonut extends Component { type: "donut", }, legend: { - show: false, + show: true, + position: "top", + // horizontalAlign: "center", }, plotOptions: { pie: { diff --git a/src/components/SemiDonut/index.scss b/src/components/SemiDonut/index.scss new file mode 100644 index 0000000..aac6b5b --- /dev/null +++ b/src/components/SemiDonut/index.scss @@ -0,0 +1,13 @@ +.apexcharts-legend { + justify-content: center !important; + display: flex; + overflow: auto; + padding: 0 10px; + position: absolute !important; + left: 0px; + top: 200px !important; +} + +.apexcharts-canvas { + top: -33px !important; +}