Skip to content

Commit

Permalink
Smaller for mobile.
Browse files Browse the repository at this point in the history
  • Loading branch information
Xantier committed Mar 13, 2020
1 parent dcfdb35 commit 4437ff3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Viz.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import '../node_modules/react-vis/dist/style.css';
import moment from 'moment';
import groupBy from 'lodash/groupBy';
import orderBy from 'lodash/orderBy';
import {isMobile} from 'react-device-detect';

const formattedDate = (it) => moment(it.date).format('MM/DD/YYYY'); // Murica
const mmdd = (it) => moment(it).format('DD-MM'); // Murica
Expand All @@ -26,7 +27,7 @@ const Chart = ({ data }) => {
return (
<XYPlot
xType="time"
width={800}
width={isMobile ? 400 : 800}
height={500}>
<HorizontalGridLines/>

Expand Down

0 comments on commit 4437ff3

Please sign in to comment.