diff --git a/src/views/design/statistics/DesignStatistics.js b/src/views/design/statistics/DesignStatistics.js new file mode 100644 index 0000000..eefc8b6 --- /dev/null +++ b/src/views/design/statistics/DesignStatistics.js @@ -0,0 +1,408 @@ +import '../../assets/css/custom.css'; +import '@styles/react/libs/flatpickr/flatpickr.scss'; +import '@styles/react/libs/tables/react-dataTable-component.scss'; +import { CustomMainLayout } from '../../components/layout/CustomMainLayout'; +import { + Button, + Col, + Row, + Card, + CardHeader, + CardTitle, + CardBody, + FormGroup, + Input, + CustomInput, + Label +} from 'reactstrap'; +import { + Search, + Calendar, + Monitor, + Tablet, + ArrowDown, + ArrowUp +} from 'react-feather'; +import { FcAlarmClock, FcWorkflow, FcBarChart } from 'react-icons/fc'; +import { Bar, Doughnut, Polar } from 'react-chartjs-2'; +import Flatpickr from 'react-flatpickr'; +export default function Flight({ + tooltipShadow, + gridLineColor, + labelColor, + successColorShade, + warningLightColor, + primary +}) { + const titleName = '비행 통계'; + const options = { + elements: { + rectangle: { + borderWidth: 2, + borderSkipped: 'bottom' + } + }, + responsive: true, + maintainAspectRatio: false, + responsiveAnimationDuration: 500, + legend: { + display: false + }, + tooltips: { + // Updated default tooltip UI + shadowOffsetX: 1, + shadowOffsetY: 1, + shadowBlur: 8, + shadowColor: tooltipShadow, + backgroundColor: '#fff', + titleFontColor: '#000', + bodyFontColor: '#000' + }, + scales: { + xAxes: [ + { + display: true, + gridLines: { + display: true, + color: gridLineColor, + zeroLineColor: gridLineColor + }, + scaleLabel: { + display: false + }, + ticks: { + fontColor: labelColor + } + } + ], + yAxes: [ + { + display: true, + gridLines: { + color: gridLineColor, + zeroLineColor: gridLineColor + }, + ticks: { + stepSize: 100, + min: 0, + max: 400, + fontColor: labelColor + } + } + ] + } + }, + data = { + labels: [ + '7/12', + '8/12', + '9/12', + '10/12', + '11/12', + '12/12', + '13/12', + '14/12', + '15/12', + '16/12', + '17/12' + ], + datasets: [ + { + data: [275, 90, 190, 205, 125, 85, 55, 87, 127, 150, 230, 280, 190], + backgroundColor: '#00bcd4', + borderColor: '#00bcd4', + barThickness: 15 + } + ] + }; + const options2 = { + responsive: true, + maintainAspectRatio: true, + responsiveAnimationDuration: 500, + cutoutPercentage: 60, + legend: { + position: 'bottom', + labels: { + usePointStyle: true, + padding: 18, + boxWidth: 8, + fontColor: labelColor, + fontSize: 14, + fontWeight: 500, + fontFamily: ['Rubik', 'Montserrat', 'NotoSansKR'] + } + }, + tooltips: { + callbacks: { + label(tooltipItem, data) { + const label = data.datasets[0].labels[tooltipItem.index] || '', + value = data.datasets[0].data[tooltipItem.index]; + const output = ` ${label} : ${value} %`; + return output; + } + }, + shadowOffsetX: 1, + shadowOffsetY: 1, + shadowBlur: 8, + shadowColor: tooltipShadow, + backgroundColor: '#fff', + titleFontColor: '#000', + bodyFontColor: '#000' + } + }, + data2 = { + labels: ['PA0001', 'PA0002', 'PA0003', 'PA0004', 'PA0005'], + datasets: [ + { + labels: ['PA0001', 'PA0002', 'PA0003', 'PA0004', 'PA0005'], + data: [10, 20, 30, 40, 80], + //레드버전 + // backgroundColor: [ + // '#ffe8d1', + // '#ffb59e', + // '#f0826b', + // '#Bd4f38', + // '#8a1c05' + // ], + backgroundColor: [ + '#ccffff', + '#99ffff', + '#66ffff', + '#33efff', + '#00bcd4' + ], + borderWidth: 0, + pointStyle: 'rectRounded' + } + ] + }; + return ( + +
+
+ + +
+ + + + + + + + + +
+ + + + 총 비행시간 + PA0001 + + + 8일 10시간 35분 12초 +
+ + 1일 35분 12초 + + + 35분 12초 +
+
+ + +
+ + + + + + + + + +
+ + + + 총 비행거리 + PA0002 + + + 10,845m +
+ + 1,201m + + + 53m +
+
+ + +
+ + + + + + + + + +
+ + + + 총 비행횟수 + PA0002 + + + 1,024,845건 +
+ + 111,201건 + + + 153건 +
+
+ +
+
+
+ + +
+
+

검색조건

+
+
+ + + 검색 + +
+
+ + +
+
+
+
+
검색조건
+
+
+ + + + + + + + + +
+
+
+
+
+
+
+
+ +
+
+
+ + + + + 비행 시간 통계 +
+ +
+ + + + + + +
+
+ + + + + +
+
+ + + + + +
+
+ + + + + +
+
+ {/* + */} +
+
+ +
+ +
+
+
+ + + + + 비행시간 TOP5 + + +
+ +
+ {/*
+
+
*/} +
+
+ +
+
+
+
+ ); +}