draw some zones
A zone helps to split the graph into zones. Zones are between 2 X values drawZone(zones)
zones
is an array of zone objectscolor
: the color of the zone as web color or RGB hex (will be a little bit transparent for the background, and full opacity for the text if any (sn
) if it is a string. It can also be an object with background and text fields to separate those (color:{text:'white', background:'none'}
)size
: the font-size to apply on thesn
text (css size)sn
: a short text that will be displayed vertically onto the border of the zoneextent
: an array of 2 dates/numbers which are the X min and the X max values of the zoneopacity
: the opacity of the zone. By default, it is 0.2
Last updated
Was this helpful?