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.
|
|
|
import React, { Component } from "react";
|
|
|
|
// import ReactApexChart from "react-apexcharts";
|
|
|
|
// import ReactApexChart from "apexcharts";
|
|
|
|
import Chart from "react-apexcharts";
|
|
|
|
|
|
|
|
class SemiDonut extends Component {
|
|
|
|
constructor(props) {
|
|
|
|
super(props);
|
|
|
|
this.state = {
|
|
|
|
options: {
|
|
|
|
chart: {
|
|
|
|
type: "donut",
|
|
|
|
},
|
|
|
|
legend: {
|
|
|
|
show: false,
|
|
|
|
},
|
|
|
|
plotOptions: {
|
|
|
|
pie: {
|
|
|
|
startAngle: -90,
|
|
|
|
endAngle: 90,
|
|
|
|
offsetY: 10,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
grid: {
|
|
|
|
padding: {
|
|
|
|
bottom: 0,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
responsive: [
|
|
|
|
{
|
|
|
|
breakpoint: 480,
|
|
|
|
options: {
|
|
|
|
chart: {
|
|
|
|
width: 200,
|
|
|
|
},
|
|
|
|
legend: {
|
|
|
|
position: "bottom",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
series: [44, 44, 44, 44],
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
render() {
|
|
|
|
return (
|
|
|
|
<Chart
|
|
|
|
options={this.state.options}
|
|
|
|
series={this.state.series}
|
|
|
|
type="donut"
|
|
|
|
height="320px"
|
|
|
|
width="100%"
|
|
|
|
/>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export default SemiDonut;
|