@@ -18,7 +18,7 @@ import {
18
18
* @param {string } domID - 图表dom元素ID。
19
19
* @param {Object } options - 可选参数。
20
20
* @param {string } options.type - 图表类型。
21
- * @param {Chart .Datasets } options.datasets - 数据来源
21
+ * @param {ChartView .Datasets } options.datasets - 数据来源
22
22
* @param {Array.<Object> } options.chartOptions - 图表可选参数。
23
23
* @param {Array.<Object> } options.chartOptions.xAxis - 图表X轴。
24
24
* @param {string } options.chartOptions.xAxis.field - 图表X轴字段名。
@@ -30,7 +30,7 @@ import {
30
30
* @usage
31
31
*/
32
32
/**
33
- * @typedef {Object } Chart .Datasets - 数据来源
33
+ * @typedef {Object } ChartView .Datasets - 数据来源
34
34
* @property {string } [type = 'iServer'] - 服务类型 iServer, iPortal。
35
35
* @property {string } url - 服务地址。
36
36
* @property {boolean } [withCredentials = false] - 设置请求是否带cookie
@@ -51,7 +51,7 @@ export class ChartView {
51
51
}
52
52
53
53
/**
54
- * @function Chart .prototype.onAdd
54
+ * @function ChartView .prototype.onAdd
55
55
* @description 创建图表之后成功回调
56
56
* @param {function } addChart - 回调函数。
57
57
*/
@@ -60,7 +60,7 @@ export class ChartView {
60
60
}
61
61
62
62
/**
63
- * @function Chart .prototype._fillDataToView
63
+ * @function ChartView .prototype._fillDataToView
64
64
* @description 填充数据到 view。
65
65
* @private
66
66
*/
@@ -76,23 +76,23 @@ export class ChartView {
76
76
}
77
77
78
78
/**
79
- * @function Chart .prototype.getStyle
79
+ * @function ChartView .prototype.getStyle
80
80
* @description 获取图表样式。
81
81
*/
82
82
getStyle ( ) {
83
83
return this . viewModel . getStyle ( )
84
84
}
85
85
86
86
/**
87
- * @function Chart .prototype.getFeatures
87
+ * @function ChartView .prototype.getFeatures
88
88
* @description 获取地图服务,数据服务请求返回的数据。
89
89
*/
90
90
getFeatures ( ) {
91
91
return this . viewModel . getFeatures ( ) ;
92
92
}
93
93
94
94
/**
95
- * @function Chart .prototype.setStyle
95
+ * @function ChartView .prototype.setStyle
96
96
* @description 设置图表样式。
97
97
* @param {Object } style - 图表样式,参考Echarts-options样式设置。
98
98
*/
@@ -102,7 +102,7 @@ export class ChartView {
102
102
}
103
103
104
104
/**
105
- * @function Chart .prototype.changeType
105
+ * @function ChartView .prototype.changeType
106
106
* @description 改变图表类型。
107
107
* @param {string } type - 图表类型。
108
108
*/
@@ -115,9 +115,9 @@ export class ChartView {
115
115
}
116
116
117
117
/**
118
- * @function Chart .prototype.updateData
118
+ * @function ChartView .prototype.updateData
119
119
* @description 更新图表数据。
120
- * @param {Chart .Datasets } datasets - 数据来源。
120
+ * @param {ChartView .Datasets } datasets - 数据来源。
121
121
* @param {Object } chartOption - X,Y轴信息。
122
122
*/
123
123
updateData ( datasets , chartOption ) {
@@ -131,7 +131,7 @@ export class ChartView {
131
131
}
132
132
133
133
/**
134
- * @function Chart .prototype._createChart
134
+ * @function ChartView .prototype._createChart
135
135
* @description 创建图表。
136
136
* @private
137
137
* @param {Object } data - 图表数据。
@@ -151,7 +151,7 @@ export class ChartView {
151
151
}
152
152
153
153
/**
154
- * @function Chart .prototype._updateChart
154
+ * @function ChartView .prototype._updateChart
155
155
* @description 更新图表。
156
156
* @private
157
157
* @param {Object } options - 图表参数。
0 commit comments