From 3d12e5e452b79354bfe8fb07a83416db85831ba2 Mon Sep 17 00:00:00 2001 From: Julia Friesel Date: Sat, 11 Aug 2018 15:56:33 +0200 Subject: [PATCH] try doing the math --- components/chart/config.js | 2 +- components/chart/day-column.js | 86 +++++++++++++++++----------------- 2 files changed, 45 insertions(+), 43 deletions(-) diff --git a/components/chart/config.js b/components/chart/config.js index e9d5f95..573ff2b 100644 --- a/components/chart/config.js +++ b/components/chart/config.js @@ -5,7 +5,7 @@ const config = { low: 35, high: 40 }, - xAxisRangeInDays: 50 + xAxisRangeInDays: 1000 } const margin = 3 diff --git a/components/chart/day-column.js b/components/chart/day-column.js index bc9ebba..8f65978 100644 --- a/components/chart/day-column.js +++ b/components/chart/day-column.js @@ -9,7 +9,7 @@ import { getOrCreateCycleDay } from '../../db' import cycleModule from '../../lib/cycle' import setUpFertilityStatusFunc from './nfp-lines' import { horizontalGrid } from './y-axis' -import slowlog from 'react-native-slowlog' +//import slowlog from 'react-native-slowlog' const getCycleDayNumber = cycleModule().getCycleDayNumber const label = styles.column.label @@ -18,7 +18,7 @@ const getFhmAndLtlInfo = setUpFertilityStatusFunc() export default class DayColumn extends Component { constructor(props) { super(props) - slowlog(this, /.*/, {threshold: 30}) + //slowlog(this, /.*/, {threshold: 30}) } makeDayColumn(data, index) { const { @@ -68,8 +68,6 @@ export default class DayColumn extends Component { // /> : null} // />) - // onPress: () => this.passDateToDayView(dateString), - //