fall back on a default red styling for narratives

This commit is contained in:
Lachie Kermode
2018-11-30 14:46:44 +00:00
parent 70dbcd96e0
commit a2d5fdf3da
5 changed files with 20 additions and 6 deletions

View File

@@ -84,10 +84,16 @@ const initial = {
palette: d3.schemeCategory10,
narratives: {
narrative_1: {
default: {
style: 'dotted', // ['dotted', 'solid']
opacity: 0.4, // range between 0 and 1
stroke: '#ffffff', // Any hex or rgb code
stroke: 'red', // Any hex or rgb code
strokeWidth: 2
},
narrative_1: {
style: 'solid', // ['dotted', 'solid']
opacity: 0.4, // range between 0 and 1
stroke: 'red', // Any hex or rgb code
strokeWidth: 2
}
}