forked from p51497208/geo_info_platform
Merge branch 'master' of http://git.trustie.net/qiubing/geo_info_platform
This commit is contained in:
commit
1bdbf1a0d8
|
@ -4,7 +4,6 @@
|
||||||
<list default="true" id="0b71a6a1-d7aa-4903-a1f1-4488fea56112" name="Default Changelist" comment="">
|
<list default="true" id="0b71a6a1-d7aa-4903-a1f1-4488fea56112" name="Default Changelist" comment="">
|
||||||
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/js/map.js" beforeDir="false" afterPath="$PROJECT_DIR$/js/map.js" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/js/map.js" beforeDir="false" afterPath="$PROJECT_DIR$/js/map.js" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/test.html" beforeDir="false" afterPath="$PROJECT_DIR$/test.html" afterDir="false" />
|
|
||||||
</list>
|
</list>
|
||||||
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
|
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
|
||||||
<option name="SHOW_DIALOG" value="false" />
|
<option name="SHOW_DIALOG" value="false" />
|
||||||
|
@ -17,7 +16,7 @@
|
||||||
<file pinned="false" current-in-tab="false">
|
<file pinned="false" current-in-tab="false">
|
||||||
<entry file="file://$PROJECT_DIR$/test.html">
|
<entry file="file://$PROJECT_DIR$/test.html">
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
<state relative-caret-position="327">
|
<state relative-caret-position="10032">
|
||||||
<caret line="528" column="49" selection-start-line="528" selection-start-column="42" selection-end-line="528" selection-end-column="49" />
|
<caret line="528" column="49" selection-start-line="528" selection-start-column="42" selection-end-line="528" selection-end-column="49" />
|
||||||
<folding>
|
<folding>
|
||||||
<element signature="n#style#0;n#div#1;n#body#0;n#html#0;n#!!top" expanded="true" />
|
<element signature="n#style#0;n#div#1;n#body#0;n#html#0;n#!!top" expanded="true" />
|
||||||
|
@ -29,12 +28,8 @@
|
||||||
<file pinned="false" current-in-tab="false">
|
<file pinned="false" current-in-tab="false">
|
||||||
<entry file="file://$PROJECT_DIR$/echarts_map_test 1.html">
|
<entry file="file://$PROJECT_DIR$/echarts_map_test 1.html">
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
<state relative-caret-position="179">
|
<state relative-caret-position="3192">
|
||||||
<caret line="929" column="32" selection-start-line="929" selection-start-column="32" selection-end-line="929" selection-end-column="39" />
|
<caret line="168" column="32" selection-start-line="166" selection-start-column="12" selection-end-line="168" selection-end-column="32" />
|
||||||
<folding>
|
|
||||||
<element signature="n#style#0;n#div#0;n#!!top" expanded="true" />
|
|
||||||
<element signature="n#style#0;n#div#1;n#!!top" expanded="true" />
|
|
||||||
</folding>
|
|
||||||
</state>
|
</state>
|
||||||
</provider>
|
</provider>
|
||||||
</entry>
|
</entry>
|
||||||
|
@ -56,14 +51,8 @@
|
||||||
<file pinned="false" current-in-tab="false">
|
<file pinned="false" current-in-tab="false">
|
||||||
<entry file="file://$PROJECT_DIR$/demo_1.html">
|
<entry file="file://$PROJECT_DIR$/demo_1.html">
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
<state relative-caret-position="388">
|
<state relative-caret-position="31502">
|
||||||
<caret line="1658" column="38" lean-forward="true" selection-start-line="1658" selection-start-column="38" selection-end-line="1658" selection-end-column="38" />
|
<caret line="1658" column="38" lean-forward="true" selection-start-line="1658" selection-start-column="38" selection-end-line="1658" selection-end-column="38" />
|
||||||
<folding>
|
|
||||||
<element signature="n#style#0;n#div#0;n#!!top" expanded="true" />
|
|
||||||
<element signature="n#style#0;n#div#1;n#!!top" expanded="true" />
|
|
||||||
<element signature="n#style#0;n#div#0;n#!!top" expanded="true" />
|
|
||||||
<element signature="n#style#0;n#div#1;n#!!top" expanded="true" />
|
|
||||||
</folding>
|
|
||||||
</state>
|
</state>
|
||||||
</provider>
|
</provider>
|
||||||
</entry>
|
</entry>
|
||||||
|
@ -71,8 +60,8 @@
|
||||||
<file pinned="false" current-in-tab="false">
|
<file pinned="false" current-in-tab="false">
|
||||||
<entry file="file://$PROJECT_DIR$/map.html">
|
<entry file="file://$PROJECT_DIR$/map.html">
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
<state relative-caret-position="2261">
|
<state relative-caret-position="10792">
|
||||||
<caret line="119" column="43" selection-start-line="119" selection-start-column="38" selection-end-line="119" selection-end-column="43" />
|
<caret line="568" column="7" lean-forward="true" selection-start-line="568" selection-start-column="7" selection-end-line="568" selection-end-column="7" />
|
||||||
</state>
|
</state>
|
||||||
</provider>
|
</provider>
|
||||||
</entry>
|
</entry>
|
||||||
|
@ -80,7 +69,7 @@
|
||||||
<file pinned="false" current-in-tab="false">
|
<file pinned="false" current-in-tab="false">
|
||||||
<entry file="file://$PROJECT_DIR$/js/demo.js">
|
<entry file="file://$PROJECT_DIR$/js/demo.js">
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
<state relative-caret-position="-569">
|
<state>
|
||||||
<folding>
|
<folding>
|
||||||
<element signature="n#!!doc" expanded="true" />
|
<element signature="n#!!doc" expanded="true" />
|
||||||
</folding>
|
</folding>
|
||||||
|
@ -91,8 +80,8 @@
|
||||||
<file pinned="false" current-in-tab="true">
|
<file pinned="false" current-in-tab="true">
|
||||||
<entry file="file://$PROJECT_DIR$/js/map.js">
|
<entry file="file://$PROJECT_DIR$/js/map.js">
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
<state relative-caret-position="234">
|
<state relative-caret-position="191">
|
||||||
<caret line="458" column="32" selection-start-line="458" selection-start-column="32" selection-end-line="458" selection-end-column="32" />
|
<caret line="476" column="36" selection-start-line="476" selection-start-column="36" selection-end-line="476" selection-end-column="36" />
|
||||||
</state>
|
</state>
|
||||||
</provider>
|
</provider>
|
||||||
</entry>
|
</entry>
|
||||||
|
@ -101,16 +90,17 @@
|
||||||
</component>
|
</component>
|
||||||
<component name="FindInProjectRecents">
|
<component name="FindInProjectRecents">
|
||||||
<findStrings>
|
<findStrings>
|
||||||
<find>班公湖</find>
|
|
||||||
<find>任意</find>
|
<find>任意</find>
|
||||||
<find>api.ownthink</find>
|
<find>api.ownthink</find>
|
||||||
<find>知识</find>
|
<find>知识</find>
|
||||||
<find>china</find>
|
<find>china</find>
|
||||||
<find>交易量</find>
|
<find>交易量</find>
|
||||||
<find>backg</find>
|
|
||||||
<find>brush</find>
|
<find>brush</find>
|
||||||
<find>geo:</find>
|
<find>geo:</find>
|
||||||
<find>brush:</find>
|
<find>brush:</find>
|
||||||
|
<find>backg</find>
|
||||||
|
<find>班公湖</find>
|
||||||
|
<find>http</find>
|
||||||
</findStrings>
|
</findStrings>
|
||||||
</component>
|
</component>
|
||||||
<component name="Git.Settings">
|
<component name="Git.Settings">
|
||||||
|
@ -143,7 +133,6 @@
|
||||||
<foldersAlwaysOnTop value="true" />
|
<foldersAlwaysOnTop value="true" />
|
||||||
</navigator>
|
</navigator>
|
||||||
<panes>
|
<panes>
|
||||||
<pane id="Scope" />
|
|
||||||
<pane id="ProjectPane">
|
<pane id="ProjectPane">
|
||||||
<subPane>
|
<subPane>
|
||||||
<expand>
|
<expand>
|
||||||
|
@ -155,6 +144,7 @@
|
||||||
<select />
|
<select />
|
||||||
</subPane>
|
</subPane>
|
||||||
</pane>
|
</pane>
|
||||||
|
<pane id="Scope" />
|
||||||
</panes>
|
</panes>
|
||||||
</component>
|
</component>
|
||||||
<component name="PropertiesComponent">
|
<component name="PropertiesComponent">
|
||||||
|
@ -188,18 +178,19 @@
|
||||||
<updated>1576569407340</updated>
|
<updated>1576569407340</updated>
|
||||||
<workItem from="1576569409159" duration="1687000" />
|
<workItem from="1576569409159" duration="1687000" />
|
||||||
<workItem from="1576671812636" duration="1016000" />
|
<workItem from="1576671812636" duration="1016000" />
|
||||||
<workItem from="1576723846646" duration="4765000" />
|
<workItem from="1576723846646" duration="6468000" />
|
||||||
|
<workItem from="1576743516593" duration="368000" />
|
||||||
</task>
|
</task>
|
||||||
<servers />
|
<servers />
|
||||||
</component>
|
</component>
|
||||||
<component name="TimeTrackingManager">
|
<component name="TimeTrackingManager">
|
||||||
<option name="totallyTimeSpent" value="7468000" />
|
<option name="totallyTimeSpent" value="9539000" />
|
||||||
</component>
|
</component>
|
||||||
<component name="ToolWindowManager">
|
<component name="ToolWindowManager">
|
||||||
<frame x="0" y="23" width="1440" height="820" extended-state="0" />
|
<frame x="0" y="23" width="1440" height="820" extended-state="0" />
|
||||||
<editor active="true" />
|
<editor active="true" />
|
||||||
<layout>
|
<layout>
|
||||||
<window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.15379113" />
|
<window_info content_ui="combo" id="Project" order="0" visible="true" weight="0.15593705" />
|
||||||
<window_info id="Structure" order="1" side_tool="true" weight="0.25" />
|
<window_info id="Structure" order="1" side_tool="true" weight="0.25" />
|
||||||
<window_info id="Favorites" order="2" side_tool="true" />
|
<window_info id="Favorites" order="2" side_tool="true" />
|
||||||
<window_info anchor="bottom" id="Message" order="0" />
|
<window_info anchor="bottom" id="Message" order="0" />
|
||||||
|
@ -212,7 +203,7 @@
|
||||||
<window_info anchor="bottom" id="Docker" order="7" show_stripe_button="false" />
|
<window_info anchor="bottom" id="Docker" order="7" show_stripe_button="false" />
|
||||||
<window_info anchor="bottom" id="Database Changes" order="8" />
|
<window_info anchor="bottom" id="Database Changes" order="8" />
|
||||||
<window_info anchor="bottom" id="Version Control" order="9" />
|
<window_info anchor="bottom" id="Version Control" order="9" />
|
||||||
<window_info anchor="bottom" id="Terminal" order="10" visible="true" weight="0.25686812" />
|
<window_info active="true" anchor="bottom" id="Terminal" order="10" visible="true" weight="0.26785713" />
|
||||||
<window_info anchor="bottom" id="Event Log" order="11" side_tool="true" />
|
<window_info anchor="bottom" id="Event Log" order="11" side_tool="true" />
|
||||||
<window_info anchor="bottom" id="Messages" order="12" />
|
<window_info anchor="bottom" id="Messages" order="12" />
|
||||||
<window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
|
<window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
|
||||||
|
@ -260,6 +251,32 @@
|
||||||
<entry file="file://$PROJECT_DIR$/image/3.jpg">
|
<entry file="file://$PROJECT_DIR$/image/3.jpg">
|
||||||
<provider selected="true" editor-type-id="images" />
|
<provider selected="true" editor-type-id="images" />
|
||||||
</entry>
|
</entry>
|
||||||
|
<entry file="file://$PROJECT_DIR$/china.js">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state>
|
||||||
|
<folding>
|
||||||
|
<element signature="n#!!doc" expanded="true" />
|
||||||
|
</folding>
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
<entry file="file://$PROJECT_DIR$/test.html">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state relative-caret-position="10032">
|
||||||
|
<caret line="528" column="49" selection-start-line="528" selection-start-column="42" selection-end-line="528" selection-end-column="49" />
|
||||||
|
<folding>
|
||||||
|
<element signature="n#style#0;n#div#1;n#body#0;n#html#0;n#!!top" expanded="true" />
|
||||||
|
</folding>
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
<entry file="file://$PROJECT_DIR$/echarts_map_test 1.html">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state relative-caret-position="3192">
|
||||||
|
<caret line="168" column="32" selection-start-line="166" selection-start-column="12" selection-end-line="168" selection-end-column="32" />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
<entry file="file://$PROJECT_DIR$/demo.html">
|
<entry file="file://$PROJECT_DIR$/demo.html">
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
<state relative-caret-position="2527">
|
<state relative-caret-position="2527">
|
||||||
|
@ -274,18 +291,19 @@
|
||||||
</entry>
|
</entry>
|
||||||
<entry file="file://$PROJECT_DIR$/demo_1.html">
|
<entry file="file://$PROJECT_DIR$/demo_1.html">
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
<state relative-caret-position="388">
|
<state relative-caret-position="31502">
|
||||||
<caret line="1658" column="38" lean-forward="true" selection-start-line="1658" selection-start-column="38" selection-end-line="1658" selection-end-column="38" />
|
<caret line="1658" column="38" lean-forward="true" selection-start-line="1658" selection-start-column="38" selection-end-line="1658" selection-end-column="38" />
|
||||||
<folding>
|
|
||||||
<element signature="n#style#0;n#div#0;n#!!top" expanded="true" />
|
|
||||||
<element signature="n#style#0;n#div#1;n#!!top" expanded="true" />
|
|
||||||
<element signature="n#style#0;n#div#0;n#!!top" expanded="true" />
|
|
||||||
<element signature="n#style#0;n#div#1;n#!!top" expanded="true" />
|
|
||||||
</folding>
|
|
||||||
</state>
|
</state>
|
||||||
</provider>
|
</provider>
|
||||||
</entry>
|
</entry>
|
||||||
<entry file="file://$PROJECT_DIR$/china.js">
|
<entry file="file://$PROJECT_DIR$/map.html">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state relative-caret-position="10792">
|
||||||
|
<caret line="568" column="7" lean-forward="true" selection-start-line="568" selection-start-column="7" selection-end-line="568" selection-end-column="7" />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
<entry file="file://$PROJECT_DIR$/js/demo.js">
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
<state>
|
<state>
|
||||||
<folding>
|
<folding>
|
||||||
|
@ -294,47 +312,10 @@
|
||||||
</state>
|
</state>
|
||||||
</provider>
|
</provider>
|
||||||
</entry>
|
</entry>
|
||||||
<entry file="file://$PROJECT_DIR$/js/demo.js">
|
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
|
||||||
<state relative-caret-position="-569">
|
|
||||||
<folding>
|
|
||||||
<element signature="n#!!doc" expanded="true" />
|
|
||||||
</folding>
|
|
||||||
</state>
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
<entry file="file://$PROJECT_DIR$/map.html">
|
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
|
||||||
<state relative-caret-position="2261">
|
|
||||||
<caret line="119" column="43" selection-start-line="119" selection-start-column="38" selection-end-line="119" selection-end-column="43" />
|
|
||||||
</state>
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
<entry file="file://$PROJECT_DIR$/echarts_map_test 1.html">
|
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
|
||||||
<state relative-caret-position="179">
|
|
||||||
<caret line="929" column="32" selection-start-line="929" selection-start-column="32" selection-end-line="929" selection-end-column="39" />
|
|
||||||
<folding>
|
|
||||||
<element signature="n#style#0;n#div#0;n#!!top" expanded="true" />
|
|
||||||
<element signature="n#style#0;n#div#1;n#!!top" expanded="true" />
|
|
||||||
</folding>
|
|
||||||
</state>
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
<entry file="file://$PROJECT_DIR$/test.html">
|
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
|
||||||
<state relative-caret-position="327">
|
|
||||||
<caret line="528" column="49" selection-start-line="528" selection-start-column="42" selection-end-line="528" selection-end-column="49" />
|
|
||||||
<folding>
|
|
||||||
<element signature="n#style#0;n#div#1;n#body#0;n#html#0;n#!!top" expanded="true" />
|
|
||||||
</folding>
|
|
||||||
</state>
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
<entry file="file://$PROJECT_DIR$/js/map.js">
|
<entry file="file://$PROJECT_DIR$/js/map.js">
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
<state relative-caret-position="234">
|
<state relative-caret-position="191">
|
||||||
<caret line="458" column="32" selection-start-line="458" selection-start-column="32" selection-end-line="458" selection-end-column="32" />
|
<caret line="476" column="36" selection-start-line="476" selection-start-column="36" selection-end-line="476" selection-end-column="36" />
|
||||||
</state>
|
</state>
|
||||||
</provider>
|
</provider>
|
||||||
</entry>
|
</entry>
|
||||||
|
|
81
js/map.js
81
js/map.js
|
@ -188,7 +188,10 @@ var geoCoordMap = {
|
||||||
"菏泽":[115.480656,35.23375],
|
"菏泽":[115.480656,35.23375],
|
||||||
"合肥":[117.27,31.86],
|
"合肥":[117.27,31.86],
|
||||||
"武汉":[114.31,30.52],
|
"武汉":[114.31,30.52],
|
||||||
"大庆":[125.03,46.58]
|
"大庆":[125.03,46.58],
|
||||||
|
"班公湖": [78.744718,33.670094],
|
||||||
|
"洞朗": [88.951476,27.298102],
|
||||||
|
"桑多河谷":[92.21,26.97]
|
||||||
};
|
};
|
||||||
|
|
||||||
var data = [
|
var data = [
|
||||||
|
@ -381,7 +384,10 @@ var data = [
|
||||||
{name: "菏泽", value: 194},
|
{name: "菏泽", value: 194},
|
||||||
{name: "合肥", value: 229},
|
{name: "合肥", value: 229},
|
||||||
{name: "武汉", value: 273},
|
{name: "武汉", value: 273},
|
||||||
{name: "大庆", value: 279}
|
{name: "大庆", value: 279},
|
||||||
|
{name: "班公湖", value: 300},
|
||||||
|
{name: "洞朗", value: 210},
|
||||||
|
{name: "桑多河谷", value: 200}
|
||||||
];
|
];
|
||||||
|
|
||||||
var convertData = function (data) {
|
var convertData = function (data) {
|
||||||
|
@ -468,7 +474,7 @@ option = {
|
||||||
map: 'china',
|
map: 'china',
|
||||||
left: '140',
|
left: '140',
|
||||||
right: '10%',
|
right: '10%',
|
||||||
center: [99.98561551896913, 30.205000490896193],
|
center: [99.98561551896913, 33.205000490896193],
|
||||||
zoom: 0.6,
|
zoom: 0.6,
|
||||||
label: {
|
label: {
|
||||||
emphasis: {
|
emphasis: {
|
||||||
|
@ -659,36 +665,43 @@ myChart.setOption(option);
|
||||||
myChart.on('brushselected', renderBrushed);
|
myChart.on('brushselected', renderBrushed);
|
||||||
// myChart.on('focusnodeadjacency', renderFocusNodeJacency);
|
// myChart.on('focusnodeadjacency', renderFocusNodeJacency);
|
||||||
myChart.on('click', function (params) {
|
myChart.on('click', function (params) {
|
||||||
$('.fixed-left').css({left: 0}).addClass('collpased');
|
console.log('init方法===》》》', window.initial);
|
||||||
// $('.screen-btn').css({left: '360px'});
|
var name = params.name;
|
||||||
if (!$('.fixed-left').hasClass('active')) {
|
console.log(name);
|
||||||
$('.screen-btn').css({left: '360px'});
|
// window.loadData && window.loadData(name);
|
||||||
}
|
console.log(window.myChartGraph)
|
||||||
$('.collpase-icon').addClass('icon-shouqi').removeClass('icon-zhankai');
|
// window.myChartGraph && window.myChartGraph.restore && window.myChartGraph.restore();
|
||||||
const {seriesId, seriesIndex, seriesName, dataIndex, data, value } = params;
|
window.initial && window.initial(name);
|
||||||
myChart.dispatchAction({
|
$('.fixed-left').css({left: 0}).addClass('collpased');
|
||||||
type: 'focusNodeAdjacency',
|
// $('.screen-btn').css({left: '360px'});
|
||||||
seriesId,
|
if (!$('.fixed-left').hasClass('active')) {
|
||||||
seriesIndex,
|
$('.screen-btn').css({left: '360px'});
|
||||||
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
|
|
||||||
}
|
}
|
||||||
});
|
$('.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
|
||||||
|
}
|
||||||
|
});
|
||||||
});
|
});
|
22
map.html
22
map.html
|
@ -126,9 +126,6 @@
|
||||||
<script type="text/javascript" src="./js/jQuery-1.8.3.min.js"></script>
|
<script type="text/javascript" src="./js/jQuery-1.8.3.min.js"></script>
|
||||||
<script type="text/javascript" src="./js/jquery.easy_slides.js"></script>
|
<script type="text/javascript" src="./js/jquery.easy_slides.js"></script>
|
||||||
<script type="text/javascript" src="./js/demo.js"></script>
|
<script type="text/javascript" src="./js/demo.js"></script>
|
||||||
<script src="./js/map.js"></script>
|
|
||||||
|
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
var graphContainer = document.getElementById('mainGraph');
|
var graphContainer = document.getElementById('mainGraph');
|
||||||
|
@ -373,6 +370,15 @@
|
||||||
alert("nothing")
|
alert("nothing")
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
graphList = {"keyword":{
|
||||||
|
"nodes":[],
|
||||||
|
"links":[]
|
||||||
|
}}
|
||||||
|
currentGraph = {
|
||||||
|
nodes: {},
|
||||||
|
links: {},
|
||||||
|
};
|
||||||
|
category = 1;
|
||||||
fillInfo(result, name)
|
fillInfo(result, name)
|
||||||
nodeMap = {};
|
nodeMap = {};
|
||||||
graph = graphList.keyword
|
graph = graphList.keyword
|
||||||
|
@ -402,11 +408,15 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
redrawGraph();
|
redrawGraph();
|
||||||
loadVideo('西藏');
|
loadVideo(name);
|
||||||
|
// myChartGraph.resize();
|
||||||
}
|
}
|
||||||
|
|
||||||
init("西藏")
|
init("西藏")
|
||||||
|
|
||||||
|
window.loadData = loadData;
|
||||||
|
window.initial = init;
|
||||||
|
window.myChartGraph = myChartGraph;
|
||||||
myChartGraph.on('click', function(params) {
|
myChartGraph.on('click', function(params) {
|
||||||
if (params.dataType === "node") {
|
if (params.dataType === "node") {
|
||||||
const node = nodeMap[params.data.name];
|
const node = nodeMap[params.data.name];
|
||||||
|
@ -468,6 +478,7 @@
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
// window.init = init;
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
$('.slider_one_big_picture').EasySlides({
|
$('.slider_one_big_picture').EasySlides({
|
||||||
'autoplay': true,
|
'autoplay': true,
|
||||||
|
@ -565,7 +576,6 @@
|
||||||
// })
|
// })
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
$(function(){
|
$(function(){
|
||||||
$(".show_detail").hover(function(){
|
$(".show_detail").hover(function(){
|
||||||
|
@ -593,5 +603,7 @@
|
||||||
$(".voicePanel").removeClass("active");
|
$(".voicePanel").removeClass("active");
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<script src="./js/map.js"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
Loading…
Reference in New Issue