diff --git a/components/chart.js b/components/chart.js index a05403c..3539161 100644 --- a/components/chart.js +++ b/components/chart.js @@ -78,7 +78,6 @@ export default class CycleChart extends Component { fill="lightgrey" strokeWidth="1" stroke="grey" - onPress={() => this.passDateToDayView(columnInfo.label)} /> { + return ( + this.passDateToDayView(columnInfo.label)} + /> + ) + }) + } + placeBleedingSymbolsOnColumns() { return this.state.bleedIconCoordinates.map(x => { return () @@ -150,6 +165,10 @@ export default class CycleChart extends Component { { this.makeTemperatureCurves() } + {/* we place a trasnparent rectangle over every day column */} + {/* so that all elements including the line and circles are clickable */} + { this.placeTouchHandlerRectangles() } + )