onesight-charts 2.0.0 → 2.0.1

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.
@@ -15,7 +15,7 @@ import * as echarts from 'echarts';
15
15
  import moment from 'moment';
16
16
  import 'moment/locale/zh-cn';
17
17
  import React, { useCallback, useEffect, useRef } from 'react';
18
- import { canvasEllipsisMiddle, changeDataTypeEn, computePos, dealBarPath, isZH, numberFormatNull } from "../../utils/chartUtils";
18
+ import { canvasEllipsisMiddle, changeDataTypeEn, computePos, isZH, numberFormatNull } from "../../utils/chartUtils";
19
19
  import "./style.scss";
20
20
  var COLORS = ['#358FFF',
21
21
  // facebook
@@ -920,10 +920,6 @@ function VerticalStackedBar(props) {
920
920
  });
921
921
  currentIndex = event.dataIndex;
922
922
  });
923
- myChart.off('finished');
924
- myChart.on('finished', function () {
925
- dealBarPath(myDom, true);
926
- });
927
923
  myChart.setOption(option, true);
928
924
 
929
925
  // 如果显示总计项,确保总计项始终显示(不能被隐藏)
@@ -866,10 +866,6 @@ function VerticalStackedBar(props) {
866
866
  });
867
867
  currentIndex = event.dataIndex;
868
868
  });
869
- myChart.off("finished");
870
- myChart.on("finished", () => {
871
- (0, import_chartUtils.dealBarPath)(myDom, true);
872
- });
873
869
  myChart.setOption(option, true);
874
870
  if (showTotal) {
875
871
  myChart.setOption({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "onesight-charts",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "private": false,
5
5
  "description": "OneSight前端图表公共组件库",
6
6
  "license": "MIT",