Since F2 use html5 canvas as its renderer, all charts drawn support the attributes of the canvas. This chapter lists commonly used properties, see Canvas Attributes for more details.
the color of the shadow.
the level of the blurring effect; this value doesn't correspond to a number of pixels and is not affected by the current transformation matrix. The default value is 0. Negative,
the alpha value that is applied to shapes and images before they are drawn onto the canvas. The value is in the range from 0.0 (fully transparent) to 1.0 (fully opaque).Values outside the range, including
sets the type of compositing operation to apply when drawing new shapes, where type is a string identifying which of the compositing or blending mode operations to use. See MDN.
For the convenience of users, F2 provides support for two types of gradient color:
// examplestroke: 'l(90) 0:#ffffff 0.5:#7ec2f3 1:#1890ff'
// examplefill: 'r(0.5,0.5,0.1) 0:#ffffff 1:#1890ff'
determines how the end points of every line are drawn. There are three possible values for this property and those are:
determines how two connecting segments (of lines, arcs or curves) with non-zero lengths in a shape are joined together (degenerate segments with zero lengths, whose specified endpoints and control points are exactly at the same position, are skipped). See MDN.
sets the thickness of lines in space units. When getting, it returns the current value (
sets the miter limit ratio in space units. When getting, it returns the current value (
specifies the horizontal alignment of text in an element. The value can be set same as css property text-align.
sets the vertical alignment of an element. The value can be set same as css property vertical-align.
specifies the font style for text. The value can be set same as css property font-style.
specifies the font size of text. The value can be set same as css property font-size.
specifies the font family for text.The value can be set same as css property font-family.
specifies the weight of a font. The value can be set same as css property font-weight.
specifies whether or not a text should be displayed in a small-caps font. The value can be set same as css property font-variant.
specifies the height of a line. The value can be set same as css property line-height.
rotation angle for text, should be a radian value.