Draw dot and line with svg

This commit is contained in:
Julia Friesel
2018-09-17 18:33:12 +02:00
parent 961009d74f
commit 7d6e45b1e2
3 changed files with 27 additions and 51 deletions
+10 -16
View File
@@ -3,32 +3,26 @@ import {primaryColor, shadesOfRed} from '../../styles/index'
const colorTemperature = '#765285'
const colorTemperatureLight = '#a67fb5'
const dotWidth = 10
const lineWidth = 2
const dotRadius = 5
const lineWidth = 1.5
const colorLtl = '#feb47b'
const styles = {
curve: {
borderStyle: 'solid',
borderColor: colorTemperature,
borderWidth: lineWidth,
stroke: colorTemperature,
strokeWidth: lineWidth,
},
curveExcluded: {
borderColor: colorTemperatureLight,
borderWidth: lineWidth,
borderStyle: 'dotted'
stroke: colorTemperatureLight,
strokeWidth: lineWidth
},
curveDots: {
backgroundColor: colorTemperature,
width: dotWidth,
height: dotWidth,
borderRadius: 50
fill: colorTemperature,
r: dotRadius
},
curveDotsExcluded: {
backgroundColor: colorTemperatureLight,
width: dotWidth,
height: dotWidth,
borderRadius: 50
fill: colorTemperatureLight,
r: dotRadius
},
column: {
label: {