feat: Allow y-region colours
This commit is contained in:
parent
10558f8cce
commit
6a853ca29d
@ -563,8 +563,8 @@ export function yRegion(y1, y2, width, label, options = {}) {
|
|||||||
let rect = createSVG("rect", {
|
let rect = createSVG("rect", {
|
||||||
className: `bar mini`, // remove class
|
className: `bar mini`, // remove class
|
||||||
styles: {
|
styles: {
|
||||||
fill: `rgba(228, 234, 239, 0.49)`,
|
fill: options.fill || `rgba(228, 234, 239, 0.49)`,
|
||||||
stroke: BASE_LINE_COLOR,
|
stroke: options.stroke || BASE_LINE_COLOR,
|
||||||
"stroke-dasharray": `${width}, ${height}`,
|
"stroke-dasharray": `${width}, ${height}`,
|
||||||
},
|
},
|
||||||
// 'data-point-index': index,
|
// 'data-point-index': index,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user