Skip to content
Snippets Groups Projects
Commit c184485c authored by Julia Friesel's avatar Julia Friesel
Browse files

Add mucus icon to chart

parent fc014f3e
No related branches found
No related tags found
No related merge requests found
...@@ -79,6 +79,12 @@ export default class CycleChart extends Component { ...@@ -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>
) )
......
...@@ -45,9 +45,21 @@ const styles = { ...@@ -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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment