Class: DVSector

DVSector

new DVSector(args)

A DVisual graph element indicate a sector
Parameters:
Name Type Description
args Array.<Object> a array contain arguments below
Properties
Name Type Attributes Default Description
x double the center's x value
y double the center's y value
radius double the radius of sector
sDeg double the stared angle Degree
eDeg double the end angle Degree
color DVColor <optional>
DVgetRandomColor(1,0.6)[0] the color of the dot,random in default
pop boolean <optional>
false whether poo out this sector
shadow boolean <optional>
true whether draw text's shadow.
style string <optional>
'fill' the style of this sector,should be one of 'fill','stroke','transFill' means translucent fill.
innerText string <optional>
'' the text you want to shao in the center of sector
ring_ratio double <optional>
0 the ring ratio,to calculate the text location
Source:

Methods

draw(dv)

draw the sector on dv's canvas
Parameters:
Name Type Description
dv DVisual the Dvisual instance you want to draw
Source: