diff --git a/js/map.js b/js/map.js
index 7ff720e..c4ef4ad 100644
--- a/js/map.js
+++ b/js/map.js
@@ -665,36 +665,43 @@ myChart.setOption(option);
myChart.on('brushselected', renderBrushed);
// myChart.on('focusnodeadjacency', renderFocusNodeJacency);
myChart.on('click', function (params) {
-$('.fixed-left').css({left: 0}).addClass('collpased');
-// $('.screen-btn').css({left: '360px'});
-if (!$('.fixed-left').hasClass('active')) {
- $('.screen-btn').css({left: '360px'});
-}
-$('.collpase-icon').addClass('icon-shouqi').removeClass('icon-zhankai');
- const {seriesId, seriesIndex, seriesName, dataIndex, data, value } = params;
- myChart.dispatchAction({
- type: 'focusNodeAdjacency',
- seriesId,
- seriesIndex,
- seriesName,
- // 使用 dataIndex 来定位节点。
- dataIndex,
- });
- const count = params.data[params.data.length - 1];
- this.setOption({
- yAxis: {
- data: data
- },
- xAxis: {
- axisLabel: {show: !!count}
- },
- title: {
- id: 'statistic',
- text: count ? '平均: ' + (1000 / count).toFixed(4) : ''
- },
- series: {
- id: 'bar',
- data: name
+ console.log('init方法===》》》', window.initial);
+ var name = params.name;
+ console.log(name);
+ // window.loadData && window.loadData(name);
+ console.log(window.myChartGraph)
+ // window.myChartGraph && window.myChartGraph.restore && window.myChartGraph.restore();
+ window.initial && window.initial(name);
+ $('.fixed-left').css({left: 0}).addClass('collpased');
+ // $('.screen-btn').css({left: '360px'});
+ if (!$('.fixed-left').hasClass('active')) {
+ $('.screen-btn').css({left: '360px'});
}
-});
+ $('.collpase-icon').addClass('icon-shouqi').removeClass('icon-zhankai');
+ const {seriesId, seriesIndex, seriesName, dataIndex, data, value } = params;
+ myChart.dispatchAction({
+ type: 'focusNodeAdjacency',
+ seriesId,
+ seriesIndex,
+ seriesName,
+ // 使用 dataIndex 来定位节点。
+ dataIndex,
+ });
+ const count = (params.data && params.data[params.data.length - 1]) || 0;
+ this.setOption({
+ yAxis: {
+ data: data
+ },
+ xAxis: {
+ axisLabel: {show: !!count}
+ },
+ title: {
+ id: 'statistic',
+ text: count ? '平均: ' + (1000 / count).toFixed(4) : ''
+ },
+ series: {
+ id: 'bar',
+ data: name
+ }
+ });
});
\ No newline at end of file
diff --git a/map.html b/map.html
index cd86761..909d9ac 100755
--- a/map.html
+++ b/map.html
@@ -129,9 +129,6 @@
-
-
-
-
+
+