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.
59 lines
1.1 KiB
59 lines
1.1 KiB
3 years ago
|
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",
|
||
|
},
|
||
|
plotOptions: {
|
||
|
pie: {
|
||
|
startAngle: -90,
|
||
|
endAngle: 90,
|
||
|
offsetY: 10,
|
||
|
},
|
||
|
},
|
||
|
grid: {
|
||
|
padding: {
|
||
|
bottom: -80,
|
||
|
},
|
||
|
},
|
||
|
responsive: [
|
||
|
{
|
||
|
breakpoint: 480,
|
||
|
options: {
|
||
|
chart: {
|
||
|
width: 200,
|
||
|
},
|
||
|
legend: {
|
||
|
position: "bottom",
|
||
|
},
|
||
|
},
|
||
|
},
|
||
|
],
|
||
|
},
|
||
|
|
||
|
series: [44, 44, 44, 44, 44],
|
||
|
};
|
||
|
}
|
||
|
|
||
|
render() {
|
||
|
return (
|
||
|
<Chart
|
||
|
options={this.state.options}
|
||
|
series={this.state.series}
|
||
|
type="donut"
|
||
|
height="250"
|
||
|
width="100%"
|
||
|
/>
|
||
|
);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
export default SemiDonut;
|