Class: DVRadarChart

DVRadarChart

new DVRadarChart(args)

A DVisual graph element indicate a Radar Chart
Parameters:
Name Type Description
args Array.<Object> a array contain arguments below
Properties
Name Type Attributes Default Description
X Array(string) a series of string,indicate for each player you want to draw,()
Y Array(Array(double)) a series of value,it's length should be player's number,each element of this should be an array for arguments' number
arguments Array(string) a series of string,indicate each arguments.
argumax double <optional>
10 the maxium value for argument.(unified for all argument)
argumin double <optional>
0 the minium value for argument.(unified for all argument)
legendOuterBox boolean <optional>
true whether draw the outer box of legend
colors Array(DVColor) <optional>
!!randomColor!! the colors for each player
Source:
Example
new DVRadarChart({'X':["型号1","型号2"],'Y':[[6,7,3,5,6,9],[8,6,7,2,8,6]],'arguments':["速度","能力","强度","战斗力","成本","价格"]})

Methods

draw(dv)

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

prepare(dv)

prepare the needed elements on the first time to draw it
Parameters:
Name Type Description
dv DVisual the Dvisual instance you want to draw
Source: