| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495 |
- import React, { Component } from "react";
- import ContentWrapper from "@/components/Layout/ContentWrapper";
- import { Container, Row, Col, Card, CardHeader, CardBody } from "reactstrap";
- import ReactApexChart from "react-apexcharts";
- class ChartDataBar extends React.Component {
- constructor(props) {
- super(props);
- this.state = {
- series: [
- {
- data: [
- 44, 55, 41, 64, 22, 43, 21, 44, 42, 67, 43, 86, 42, 99, 131, 313,
- ],
- },
- ],
- options: {
- chart: {
- type: "bar",
- height: 430,
- },
- plotOptions: {
- bar: {
- horizontal: true,
- dataLabels: {
- position: "top",
- },
- },
- },
- chart: {
- toolbar: {
- show: true,
- tools: {
- download: false,
- },
- },
- },
- colors: ["#B2B0D2"],
- dataLabels: {
- enabled: true,
- offsetX: -6,
- style: {
- fontSize: "12px",
- colors: ["#333333"],
- },
- },
- stroke: {
- show: true,
- width: 1,
- colors: ["#fff"],
- },
- tooltip: {
- shared: true,
- intersect: false,
- },
- xaxis: {
- categories: [
- "I",
- "II",
- "III",
- "IV",
- "V",
- "VI",
- "VII",
- "VIII",
- "IX",
- "X",
- "XI",
- "XII",
- "XIII",
- "XIV",
- "XV",
- "XVI",
- ],
- },
- },
- };
- }
- render() {
- return (
- <div id="chart">
- <ReactApexChart
- options={this.state.options}
- series={this.state.series}
- type="bar"
- height={430}
- />
- </div>
- );
- }
- }
- export default ChartDataBar;
|