lambo-design-bi 0.0.173 → 0.0.174

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lambo-design-bi",
3
- "version": "0.0.173",
3
+ "version": "0.0.174",
4
4
  "description": "Vue2 BI 数据可视化组件库",
5
5
  "main": "index.js",
6
6
  "author": "finch",
@@ -1398,11 +1398,14 @@ export function getECharts(type, dataX, dataY, dataDim) {
1398
1398
  })
1399
1399
  sum += dataY[0][i]
1400
1400
  }
1401
-
1401
+ let title33 = ''
1402
+ if(dataDim && dataDim.length > 0){
1403
+ title33 = formatTitle(dataDim[0])
1404
+ }
1402
1405
  opt = {
1403
1406
  backgroundColor: '#fff',
1404
1407
  title: {
1405
- text: formatTitle(dataDim[0]),
1408
+ text: title33,
1406
1409
  textAlign: 'center',
1407
1410
  textStyle: {
1408
1411
  fontSize: '10px',
@@ -1519,10 +1522,14 @@ export function getECharts(type, dataX, dataY, dataDim) {
1519
1522
  'value': dataY[0][i],
1520
1523
  });
1521
1524
  }
1525
+ let title34 = ''
1526
+ if(dataDim && dataDim.length > 0){
1527
+ title34 = formatTitle(dataDim[0])
1528
+ }
1522
1529
  opt = {
1523
1530
  backgroundColor: '#fff',
1524
1531
  title: {
1525
- text: formatTitle(dataDim[0]),
1532
+ text: title34,
1526
1533
  textAlign: 'center',
1527
1534
  textStyle: {
1528
1535
  fontSize: '10px',