Skip to content

Interface: SunburstTraceMarkerPattern ​

Hatch pattern of the sector fill (drawn in screen px, for print and grayscale).

Properties ​

PropertyTypeDefault valueDescription
bgcolor?PerPointColorundefinedPattern background. Default: the fill color with fillmode: 'overlay', else transparent, or one per sector.
fgcolor?PerPointColorundefinedPattern color. Default: the fill color with fillmode: 'replace', else white or dark grey, whichever contrasts with bgcolor, or one per sector.
fgopacity?numberundefinedOpacity of the pattern color. Default 0.5 with fillmode: 'overlay', else 1. Range: 0 – 1
fillmode?"replace" | "overlay""replace"'replace': the pattern in the fill color on bgcolor (default transparent) replaces the fill; 'overlay': the pattern is drawn over the fill color, in its contrast color at half opacity by default.
shape?PerPoint<"" | "/" | "\" | "x" | "-" | "|" | "+" | ".">""Hatch shape: diagonal ('/', '\\', 'x'), horizontal and vertical ('-', `'
size?PerPointNumber8Size of the pattern's tiles in CSS px: the spacing of its lines or dots, or one per sector. Minimum: 0
solidity?PerPointNumber0.3Fraction of the area the pattern covers: 0 shows only the background, 1 only the pattern color, or one per sector. Range: 0 – 1

Released under the MIT License.