Class: DVDot

DVDot

new DVDot(args)

A DVisual graph element indicate a dot.(bubble)
Parameters:
Name Type Description
args Array.<Object> a array contain arguments below
Properties
Name Type Attributes Default Description
x double the x value of the dot
y double the y value of the dot,0 in default
color DVColor <optional>
new DVColor() the color of the dot,black in default
style string <optional>
'fill' the style of this dot,should be one of 'fill','stroke' and 'bubble'
bubbleText string <optional>
'' the text show in the bubble
shadow boolean <optional>
'true' whether draw dot's shadow.
radius double <optional>
'2' the radius of this dot(a circle)
lineWidth double <optional>
'1' the lineWidth of this dot(a circle)
Source:
Example
new DVDot({'x':100,'y':100});

Methods

draw(dv)

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