ChartData.js 979 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. import React, { Component } from "react";
  2. import ContentWrapper from "@/components/Layout/ContentWrapper";
  3. import { Container, Row, Col, Card, CardHeader, CardBody } from "reactstrap";
  4. import Sparkline from "@/components/Common/Sparklines.js";
  5. import FlotChart from "@/components/Charts/Flot.js";
  6. import {
  7. ChartSpline,
  8. ChartArea,
  9. ChartBar,
  10. ChartBarStacked,
  11. ChartDonut,
  12. ChartLine,
  13. ChartPie,
  14. } from "@/components/Config/flot.setup.js";
  15. class ChartData extends Component {
  16. render() {
  17. return (
  18. <Col lg={12}>
  19. <Card className="card-default">
  20. <CardBody>
  21. <FlotChart
  22. options={ChartSpline.options}
  23. data={ChartSpline.data}
  24. className="flot-chart"
  25. height="250px"
  26. />
  27. </CardBody>
  28. <div align="center">
  29. <span>Data Statistik Pengunjung Tahun 2022</span>
  30. </div>
  31. </Card>
  32. </Col>
  33. );
  34. }
  35. }
  36. export default ChartData;