File tree Expand file tree Collapse file tree 1 file changed +20
-24
lines changed
datagear-web/src/main/resources/org/datagear/web/static/script Expand file tree Collapse file tree 1 file changed +20
-24
lines changed Original file line number Diff line number Diff line change 1364
1364
return chartResult ;
1365
1365
} ;
1366
1366
1367
+ /**
1368
+ * 获取/设置图表此次更新的数据集结果数组。
1369
+ * 图表更新前会自动执行设置操作(通过chartBase.doUpdate()函数)。
1370
+ *
1371
+ * @param dataSetResults 可选,要设置的数据集结果数组
1372
+ * @returns 要获取的数据集结果数组,没有则返回null
1373
+ */
1374
+ chartBase . updateResults = function ( dataSetResults )
1375
+ {
1376
+ if ( dataSetResults === undefined )
1377
+ {
1378
+ var chartResult = this . updateResult ( ) ;
1379
+ return this . results ( chartResult ) ;
1380
+ }
1381
+ else
1382
+ {
1383
+ this . updateResult ( dataSetResults ) ;
1384
+ }
1385
+ } ;
1386
+
1367
1387
/**
1368
1388
* 重新调整图表尺寸。
1369
1389
*
4421
4441
4422
4442
// > @deprecated 兼容5.2.0版本的API,将在未来版本移除,请使用chartBase.resultOf()
4423
4443
4424
- // < @deprecated 兼容5.2.0版本的API,将在未来版本移除,请使用chartBase.updateResult()
4425
-
4426
- /**
4427
- * 获取/设置图表此次更新的数据集结果数组。
4428
- * 图表更新前会自动执行设置操作(通过chartBase.doUpdate()函数)。
4429
- *
4430
- * @param dataSetResults 可选,要设置的数据集结果数组
4431
- * @returns 要获取的数据集结果数组,没有则返回null
4432
- */
4433
- chartBase . updateResults = function ( dataSetResults )
4434
- {
4435
- if ( dataSetResults === undefined )
4436
- {
4437
- var chartResult = this . updateResult ( ) ;
4438
- return this . results ( chartResult ) ;
4439
- }
4440
- else
4441
- {
4442
- this . updateResult ( dataSetResults ) ;
4443
- }
4444
- } ;
4445
-
4446
- // > @deprecated 兼容5.2.0版本的API,将在未来版本移除,请使用chartBase.updateResult()
4447
-
4448
4444
// < @deprecated 兼容5.0.0版本的API,将在未来版本移除,请使用chartBase.dataSetFieldOfSign()
4449
4445
4450
4446
chartBase . dataSetPropertyOfSign = function ( dataSetBind , dataSign , nonEmpty )
You can’t perform that action at this time.
0 commit comments