diff --git a/client/assets/scss/main.scss b/client/assets/scss/main.scss index 7095df4..f2ffce6 100644 --- a/client/assets/scss/main.scss +++ b/client/assets/scss/main.scss @@ -25,7 +25,6 @@ h5, h6 { margin: 0; font-weight: 400; - line-height: 1em; } p { diff --git a/client/js/components/sensors/SensorInfo.css b/client/js/components/sensors/SensorInfo.css deleted file mode 100644 index fa108b7..0000000 --- a/client/js/components/sensors/SensorInfo.css +++ /dev/null @@ -1,15 +0,0 @@ -.SensorInfo { - flex: 1; - display: flex; - flex-direction: column; - align-items: center; - flex-wrap: wrap; - min-width: 0; - width: 80%; } - .SensorInfo .selector-row { - margin-left: auto; - margin-right: auto; } - .SensorInfo .selector-row select + select { - margin-left: 5px; } - -/*# sourceMappingURL=SensorInfo.css.map */ diff --git a/client/js/components/sensors/SensorInfo.css.map b/client/js/components/sensors/SensorInfo.css.map deleted file mode 100644 index fdb5015..0000000 --- a/client/js/components/sensors/SensorInfo.css.map +++ /dev/null @@ -1,7 +0,0 @@ -{ -"version": 3, -"mappings": "AAAA,WAAW;EACP,IAAI,EAAE,CAAC;EACP,OAAO,EAAE,IAAI;EACb,cAAc,EAAE,MAAM;EACtB,WAAW,EAAE,MAAM;EACnB,SAAS,EAAE,IAAI;EACf,SAAS,EAAE,CAAC;EACZ,KAAK,EAAE,GAAG;EACV,yBAAa;IACT,WAAW,EAAE,IAAI;IACjB,YAAY,EAAE,IAAI;IAClB,yCAAa;MACT,WAAW,EAAE,GAAG", -"sources": ["SensorInfo.scss"], -"names": [], -"file": "SensorInfo.css" -} \ No newline at end of file diff --git a/client/js/components/sensors/SensorInfo.js b/client/js/components/sensors/SensorInfo.js index 7265edb..50128af 100644 --- a/client/js/components/sensors/SensorInfo.js +++ b/client/js/components/sensors/SensorInfo.js @@ -3,8 +3,8 @@ import Loading from '../utils/Loading'; import _chartjs from 'chart.js'; import Chart from 'react-chartjs'; import { - Options, - Data + ChartOptions, + DataTemplate } from './chartOptions'; @@ -62,8 +62,9 @@ export default class SensorInfo extends React.Component { } filterData(data) { - let temp = JSON.parse(JSON.stringify(Data)); - + let temp = JSON.parse(JSON.stringify(DataTemplate)); + + console.log(temp); for (let d of data) { let label = `${d.month}/${d.day}`; temp.labels.push(label); @@ -77,11 +78,11 @@ export default class SensorInfo extends React.Component { render() { let sensor = this.props.sensor; let data = this.filterData(sensor.info); - return (