Add mucus icon to chart

This commit is contained in:
Julia Friesel
2018-07-20 12:52:10 +02:00
parent fc014f3ee2
commit c184485c1d
2 changed files with 19 additions and 1 deletions
+6
View File
@@ -79,6 +79,12 @@ export default class CycleChart extends Component {
Q13.5 6.8 15 3z" /> Q13.5 6.8 15 3z" />
: null} : null}
{cycleDay && cycleDay.mucus ?
<Circle
{...styles.mucusIcon}
fill={styles.mucusIconShades[cycleDay.mucus.computedNfp]}
/> : null}
{y ? this.drawDotAndLines(y, cycleDay.temperature.exclude, index) : null} {y ? this.drawDotAndLines(y, cycleDay.temperature.exclude, index) : null}
</G> </G>
) )
+13 -1
View File
@@ -45,9 +45,21 @@ const styles = {
bleedingIcon: { bleedingIcon: {
fill: '#fb2e01', fill: '#fb2e01',
scale: 0.6, scale: 0.6,
x: 7, x: 6,
y: 3 y: 3
}, },
mucusIcon: {
cx: config.columnWidth / 2,
cy: 50,
r: 10
},
mucusIconShades: [
'#cc99cc',
'#bf7fbf',
'#b266b2',
'#a64ca6',
'#993299'
],
yAxis: { yAxis: {
height: config.chartHeight, height: config.chartHeight,
width: config.columnWidth, width: config.columnWidth,