diff --git a/src/visits/helpers/LineCHartCard.scss b/src/visits/helpers/LineCHartCard.scss new file mode 100644 index 00000000..28272db8 --- /dev/null +++ b/src/visits/helpers/LineCHartCard.scss @@ -0,0 +1,9 @@ +@import '../../utils/base'; + +.line-chart-card__body canvas { + height: 300px !important; + + @media (min-width: $mdMin) { + height: 350px !important; + } +} diff --git a/src/visits/helpers/LineChartCard.js b/src/visits/helpers/LineChartCard.js index d319d905..59437d14 100644 --- a/src/visits/helpers/LineChartCard.js +++ b/src/visits/helpers/LineChartCard.js @@ -14,6 +14,7 @@ import { reverse } from 'ramda'; import moment from 'moment'; import { VisitType } from '../types'; import { fillTheGaps } from '../../utils/helpers/visits'; +import './LineCHartCard.scss'; const propTypes = { title: PropTypes.string, @@ -86,6 +87,7 @@ const LineChartCard = ({ title, visits, highlightedVisits }) => { ].filter(Boolean), }; const options = { + maintainAspectRatio: false, legend: { display: false }, scales: { yAxes: [ @@ -115,8 +117,8 @@ const LineChartCard = ({ title, visits, highlightedVisits }) => { - - + + );