new DVCoordinate(args)
A DVisual graph element indicate a Coordinate,the main structure of most chart
Parameters:
Name |
Type |
Description |
args |
Array.<Object>
|
a array contain arguments below
Properties
Name |
Type |
Attributes |
Default |
Description |
xGrid |
boolean
|
|
|
whether draw the grid line started from X axes |
yGrid |
boolean
|
|
|
whether draw the grid line started from Y axes |
xStyle |
string
|
<optional>
|
'value'
|
the X axes's style,'value' or 'class' |
yStyle |
string
|
<optional>
|
'value'
|
the Y axes's style,'value' or 'percentage%' |
classes |
Array(string)
|
|
|
when x's Style is 'class',you need this argument to show the texts of each class on the X-axes |
yClass |
Array(string)
|
|
|
to make the horizental chart |
xDescript |
string
|
<optional>
|
'x'
|
the X axes's description |
yDescript |
string
|
<optional>
|
'y'
|
the Y axes's description |
xSpan |
double
|
|
|
the increment on x value in each grid,(data space) |
ySpan |
double
|
|
|
the increment on y value in each grid,(data space) |
lineWidth |
double
|
<optional>
|
'1'
|
the lineWidth of text |
|
- Source:
Example
new DVCoordinate({'xDescript':"time",'yDescript':"value",'xSpan':20,'ySpan'});