Files
journal_com/js/not_map.js
2023-10-13 13:19:22 +08:00

1213 lines
52 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
// 获取地址栏信息
function getQueryString(name) {
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
var r = window.location.search.substr(1).match(reg);
if (r != null) return unescape(r[2]);
return null;
}
var footer_map_ID = getQueryString('footer_id'); //footer
var country_data = [
{"name": "Canada", "value": 0}, //{"name": "Canada", "value": 3}
{"name": "Russia", "value": 0}, //{"name": "Russia", "value": 1}
{"name": "China", "value": 0}, //{"name": "China", "value": 2},
{"name": "United States", "value": 0}, // {"name": "United States", "value": 17}
{"name": "Singapore Rep.", "value": 0},
{"name": "Dominican Rep.", "value": 0},
{"name": "Palestine", "value": 0},
{"name": "Bahamas", "value": 0},
{"name": "Timor-Leste", "value": 0},
{"name": "Afghanistan", "value": 0},
{"name": "Guinea-Bissau", "value": 0},
{"name": "Côte d'Ivoire", "value": 0},
{"name": "Siachen Glacier", "value": 0},
{"name": "Br. Indian Ocean Ter.", "value": 0},
{"name": "Angola", "value": 0},
{"name": "Albania", "value": 0}, //{"name": "Albania", "value": 1}
{"name": "United Arab Emirates", "value": 0},
{"name": "Argentina", "value": 0},
{"name": "Armenia", "value": 0},
{"name": "French Southern and Antarctic Lands", "value": 0},
{"name": "Australia", "value": 0}, //{"name": "Australia", "value": 2}
{"name": "Austria", "value": 0},
{"name": "Azerbaijan", "value": 0},
{"name": "Burundi", "value": 0},
{"name": "Belgium", "value": 0},
{"name": "Benin", "value": 0},
{"name": "Burkina Faso", "value": 0},
{"name": "Bangladesh", "value": 0}, //{"name": "Bengal", "value": 1}
{"name": "Bulgaria", "value": 0},
{"name": "The Bahamas", "value": 0},
{"name": "Bosnia and Herz.", "value": 0},
{"name": "Belarus", "value": 0},
{"name": "Belize", "value": 0},
{"name": "Bermuda", "value": 0},
{"name": "Bolivia", "value": 0},
{"name": "Brazil", "value": 0},
{"name": "Brunei", "value": 0},
{"name": "Bhutan", "value": 0},
{"name": "Botswana", "value": 0},
{"name": "Central African Rep.", "value": 0},
{"name": "Switzerland", "value": 0},
{"name": "Chile", "value": 0},
{"name": "Ivory Coast", "value": 0},
{"name": "Cameroon", "value": 0},
{"name": "Dem. Rep. Congo", "value": 0},
{"name": "Congo", "value": 0},
{"name": "Colombia", "value": 0},
{"name": "Costa Rica", "value": 0},
{"name": "Cuba", "value": 0},
{"name": "N. Cyprus", "value": 0},
{"name": "Cyprus", "value": 0},
{"name": "Czech Rep.", "value": 0},
{"name": "Germany", "value": 0},
{"name": "Djibouti", "value": 0},
{"name": "Denmark", "value": 0}, //{"name": "Denmark", "value": 1}
{"name": "Algeria", "value": 0},
{"name": "Ecuador", "value": 0},
{"name": "Egypt", "value": 0}, //{"name": "Egypt", "value": 1}
{"name": "Eritrea", "value": 0},
{"name": "Spain", "value": 0},
{"name": "Estonia", "value": 0},
{"name": "Ethiopia", "value": 0},
{"name": "Finland", "value": 0},
{"name": "Fiji", "value": 0},
{"name": "Falkland Islands", "value": 0},
{"name": "France", "value": 0}, //{"name": "France", "value": 1}
{"name": "Gabon", "value": 0},
{"name": "United Kingdom", "value": 0},
{"name": "Georgia", "value": 0},
{"name": "Ghana", "value": 0},
{"name": "Guinea", "value": 0},
{"name": "Gambia", "value": 0},
{"name": "Guinea Bissau", "value": 0},
{"name": "Eq. Guinea", "value": 0},
{"name": "Greece", "value": 0}, //{"name": "Greece", "value": 1}
{"name": "Greenland", "value": 0},
{"name": "Guatemala", "value": 0},
{"name": "French Guiana", "value": 0},
{"name": "Guyana", "value": 0},
{"name": "Honduras", "value": 0},
{"name": "Croatia", "value": 0}, //{"name": "Croatia", "value": 1}
{"name": "Haiti", "value": 0},
{"name": "Hungary", "value": 0},
{"name": "Indonesia", "value": 0},
{"name": "India", "value": 0}, //{"name": "India", "value": 18}
{"name": "Ireland", "value": 0},
{"name": "Iran", "value": 0}, //{"name": "Iran", "value": 5}
{"name": "Iraq", "value": 0}, //{"name": "Iraq", "value": 1}
{"name": "Iceland", "value": 0},
{"name": "Israel", "value": 0},
{"name": "Italy", "value": 0},
{"name": "Jamaica", "value": 0},
{"name": "Jordan", "value": 0},
{"name": "Japan", "value": 0},
{"name": "Kazakhstan", "value": 0},
{"name": "Kenya", "value": 0},
{"name": "Kyrgyzstan", "value": 0},
{"name": "Cambodia", "value": 0},
{"name": "Korea", "value": 0},
{"name": "Kosovo", "value": 0},
{"name": "Kuwait", "value": 0},
{"name": "Lao PDR", "value": 0},
{"name": "Lebanon", "value": 0},
{"name": "Liberia", "value": 0},
{"name": "Libya", "value": 0},
{"name": "Sri Lanka", "value": 0},
{"name": "Lesotho", "value": 0},
{"name": "Lithuania", "value": 0},
{"name": "Luxembourg", "value": 0},
{"name": "Latvia", "value": 0},
{"name": "Morocco", "value": 0},
{"name": "Moldova", "value": 0},
{"name": "Madagascar", "value": 0},
{"name": "Mexico", "value": 0},
{"name": "Macedonia", "value": 0},
{"name": "Mali", "value": 0},
{"name": "Myanmar", "value": 0},
{"name": "Montenegro", "value": 0},
{"name": "Mongolia", "value": 0},
{"name": "Mozambique", "value": 0},
{"name": "Mauritania", "value": 0},
{"name": "Malawi", "value": 0},
{"name": "Malaysia", "value": 0}, //{"name": "Malaysia", "value": 2}
{"name": "Namibia", "value": 0},
{"name": "New Caledonia", "value": 0},
{"name": "Niger", "value": 0},
{"name": "Nigeria", "value": 0},
{"name": "Nicaragua", "value": 0},
{"name": "Netherlands", "value": 0},
{"name": "Norway", "value": 0},
{"name": "Nepal", "value": 0}, //{"name": "Nepal", "value": 1}
{"name": "New Zealand", "value": 0},
{"name": "Oman", "value": 0},
{"name": "Pakistan", "value": 0}, //{"name": "Pakistan", "value": 1},
{"name": "Panama", "value": 0},
{"name": "Peru", "value": 0},
{"name": "Philippines", "value": 0},
{"name": "Papua New Guinea", "value": 0},
{"name": "Poland", "value": 0},
{"name": "Puerto Rico", "value": 0},
{"name": "Dem. Rep. Korea", "value": 0},
{"name": "Portugal", "value": 0},
{"name": "Paraguay", "value": 0},
{"name": "Qatar", "value": 0},
{"name": "Romania", "value": 0},
{"name": "Rwanda", "value": 0},
{"name": "W. Sahara", "value": 0},
{"name": "Saudi Arabia", "value": 0},
{"name": "Sudan", "value": 0}, //{"name": "Sultan", "value": 1}
{"name": "S. Sudan", "value": 0},
{"name": "Senegal", "value": 0},
{"name": "Solomon Is.", "value": 0},
{"name": "Sierra Leone", "value": 0},
{"name": "El Salvador", "value": 0},
{"name": "Somaliland", "value": 0},
{"name": "Somalia", "value": 0},
{"name": "Serbia", "value": 0}, //{"name": "Serbia", "value": 1}
{"name": "Suriname", "value": 0},
{"name": "Slovakia", "value": 0},
{"name": "Slovenia", "value": 0},
{"name": "Sweden", "value": 0},
{"name": "Swaziland", "value": 0},
{"name": "Syria", "value": 0},
{"name": "Chad", "value": 0},
{"name": "Togo", "value": 0},
{"name": "Thailand", "value": 0},
{"name": "Tajikistan", "value": 0},
{"name": "Turkmenistan", "value": 0},
{"name": "East Timor", "value": 0},
{"name": "Trinidad and Tobago", "value": 0},
{"name": "Tunisia", "value": 0},
{"name": "Turkey", "value": 0}, //{"name": "Turkey", "value": 1}
{"name": "Tanzania", "value": 0},
{"name": "Uganda", "value": 0},
{"name": "Ukraine", "value": 0},
{"name": "Uruguay", "value": 0},
{"name": "Uzbekistan", "value": 0},
{"name": "Venezuela", "value": 0},
{"name": "Vietnam", "value": 0}, //{"name": "Vietnam", "value": 1}
{"name": "Vanuatu", "value": 0},
{"name": "West Bank", "value": 0},
{"name": "Yemen", "value": 0},
{"name": "South Africa", "value": 0},
{"name": "Zambia", "value": 0},
{"name": "Zimbabwe", "value": 0},
]
if (footer_map_ID == '125') {
// 编委国际化图表
$('.topics>div').prepend('<div><p style="text-align: center;margin-top: 30px;font-size: 22px;font-weight: bolder">Countries/Regions</p>' +
'<div id="worldMap_notice" style="width: 100%;height: 500px;margin: 0 auto 50px auto"></div></div>' +
'<p style="padding: 20px;line-height: 20px;border-bottom: 1px solid #eee;margin-bottom: 25px;font-size: 16px;color: #888">The geographic diversity of the Editorial Board is marked on the world map. All members of the Editorial Board have identified their affiliated institutions and academic titles, along with the corresponding country or geographic region. TMR Publishing Group remains neutral with regard to any jurisdictional claims.</p>');
$.ajax({
type: 'post', url: apiUrl + 'api/Journal/getBWGJH1',
data: {
"journal_id": Jour_num
},
success: function (result) {
if (result.code == 0) {
var country_shu = result.data.country;
for (var i in country_data) {
for (var j in country_shu) {
if (country_data[i].name == j) {
country_data[i].value = country_shu[j]
} else if (country_data[i].name == 'Bangladesh' && j == 'Bengal') {
country_data[i].value = country_shu[j]
} else if (country_data[i].name == 'Sudan' && j == 'Sultan') {
country_data[i].value = country_shu[j]
} else if (country_data[i].name == 'United States' && j == 'U.S.A') {
country_data[i].value = country_shu[j]
}
}
}
// 绘制图表
var worldChart = echarts.init(document.getElementById('worldMap_notice'));
// 数据
var dataMap = country_data
var option = {
backgroundColor: "#fff",
title: { //地图显示标题
show: false,
text: '',
top: "30px",
left: 'center',
textStyle: {color: '#000'}
},
visualMap: { //图列显示柱
type: 'piecewise',
left: 30,
realtime: false,
calculable: true,
color: ['#2e89bf', '#5a97c6', '#75a3c7', '#8cb3d1', '#abbfd0', '#eff5fb'],
pieces: [
{gte: 16, label: '>17'}, // (10, Infinity]
{gte: 12, lte: 16, label: '13-16'}, // (1, 9]
{gte: 8, lte: 12, label: '9-12'}, // (1, 9]
{gte: 4, lte: 8, label: '5-8'}, // (1, 9]
{gte: 1, lte: 4, label: '1-4'}, // (1, 9]
{lt: 1, label: '0'} // (-Infinity, 1)
]
},
toolbox: { //工具栏
show: false,
orient: 'vertical',
top: 50,
itemGap: 20,
left: 30,
feature: {
dataView: {readOnly: false},
restore: {},
saveAsImage: {}
}
},
tooltip: { //提示框组件
show: true,
trigger: 'item',
// backgroundColor:"#4169E1",//提示标签背景颜色
formatter: ''
},
series: [{
name: " ",
type: 'map',
mapType: 'world',
roam: true,
zoom: 1,
mapLocation: {y: 100},
data: dataMap, //绑定数据
// nameMap: nameComparison,
symbolSize: 12,
label: {
normal: {show: false},
emphasis: {show: true}
},
itemStyle: {
normal: {
areaColor: "#e9a633",//区域颜色
},
emphasis: {
borderColor: 'transparent',
areaColor: "#e9a633",//区域颜色
borderWidth: 1
}
}
}],
};
worldChart.setOption(option);
} else {
// ShowDanger("请求失败!");
}
},
error: function () {
ShowDanger("error");
}
})
} else if (footer_map_ID == '2') {
// 编委国际化图表
$('.topics>div').prepend('<div><p style="text-align: center;margin-top: 30px;font-size: 22px;font-weight: bolder">Countries/Regions</p>' +
'<div id="worldMap_notice" style="width: 100%;height: 500px;margin: 0 auto 50px auto"></div></div>' +
'<p style="padding: 20px;line-height: 20px;border-bottom: 1px solid #eee;margin-bottom: 25px;font-size: 16px;color: #888">The geographic diversity of the Editorial Board is marked on the world map. All members of the Editorial Board have identified their affiliated institutions and academic titles, along with the corresponding country or geographic region. TMR Publishing Group remains neutral with regard to any jurisdictional claims.</p>');
$.ajax({
type: 'post', url: apiUrl + 'api/Journal/getBWGJH1',
data: {
"journal_id": Jour_num
},
success: function (result) {
if (result.code == 0) {
var country_shu = result.data.country;
for (var i in country_data) {
for (var j in country_shu) {
if (country_data[i].name == j) {
country_data[i].value = country_shu[j]
} else if (country_data[i].name == 'Korea' && j == 'The Republic of Korea') {
country_data[i].value = country_shu[j]
} else if (country_data[i].name == 'United States' && j == 'U.S.A') {
country_data[i].value = country_shu[j]
}
}
}
// 绘制图表
var worldChart = echarts.init(document.getElementById('worldMap_notice'));
// 数据
var dataMap = country_data
var option = {
backgroundColor: "#fff",
title: { //地图显示标题
show: false,
text: '',
top: "30px",
left: 'center',
textStyle: {color: '#000'}
},
visualMap: { //图列显示柱
type: 'piecewise',
left: 30,
realtime: false,
calculable: true,
color: ['#2e89bf', '#5a97c6', '#75a3c7', '#8cb3d1', '#abbfd0', '#eff5fb'],
pieces: [
{gte: 16, label: '>17'}, // (10, Infinity]
{gte: 12, lte: 16, label: '13-16'}, // (1, 9]
{gte: 8, lte: 12, label: '9-12'}, // (1, 9]
{gte: 4, lte: 8, label: '5-8'}, // (1, 9]
{gte: 1, lte: 4, label: '1-4'}, // (1, 9]
{lt: 1, label: '0'} // (-Infinity, 1)
]
},
toolbox: { //工具栏
show: false,
orient: 'vertical',
top: 50,
itemGap: 20,
left: 30,
feature: {
dataView: {readOnly: false},
restore: {},
saveAsImage: {}
}
},
tooltip: { //提示框组件
show: true,
trigger: 'item',
// backgroundColor:"#4169E1",//提示标签背景颜色
formatter: ''
},
series: [{
name: " ",
type: 'map',
mapType: 'world',
roam: true,
zoom: 1,
mapLocation: {y: 100},
data: dataMap, //绑定数据
// nameMap: nameComparison,
symbolSize: 12,
label: {
normal: {show: false},
emphasis: {show: true}
},
itemStyle: {
normal: {
areaColor: "#e9a633",//区域颜色
},
emphasis: {
borderColor: 'transparent',
areaColor: "#e9a633",//区域颜色
borderWidth: 1
}
}
}],
};
worldChart.setOption(option);
} else {
// ShowDanger("请求失败!");
}
},
error: function () {
ShowDanger("error");
}
})
} else if (footer_map_ID == '186') {
// 编委国际化图表
$('.topics>div').prepend('<div><p style="text-align: center;margin-top: 30px;font-size: 22px;font-weight: bolder">Countries/Regions</p>' +
'<div id="worldMap_notice" style="width: 100%;height: 500px;margin: 0 auto 50px auto"></div></div>' +
'<p style="padding: 20px;line-height: 20px;border-bottom: 1px solid #eee;margin-bottom: 25px;font-size: 16px;color: #888">The geographic diversity of the Editorial Board is marked on the world map. All members of the Editorial Board have identified their affiliated institutions and academic titles, along with the corresponding country or geographic region. TMR Publishing Group remains neutral with regard to any jurisdictional claims.</p>');
$.ajax({
type: 'post', url: apiUrl + 'api/Journal/getBWGJH1',
data: {
"journal_id": Jour_num
},
success: function (result) {
if (result.code == 0) {
var country_shu = result.data.country;
for (var i in country_data) {
for (var j in country_shu) {
if (country_data[i].name == j) {
country_data[i].value = country_shu[j]
} else if (country_data[i].name == 'United States' && j == 'U.S.A') {
country_data[i].value = country_shu[j]
}
}
}
// 绘制图表
var worldChart = echarts.init(document.getElementById('worldMap_notice'));
// 数据
var dataMap = country_data
var option = {
backgroundColor: "#fff",
title: { //地图显示标题
show: false,
text: '',
top: "30px",
left: 'center',
textStyle: {color: '#000'}
},
visualMap: { //图列显示柱
type: 'piecewise',
left: 30,
realtime: false,
calculable: true,
color: ['#2e89bf', '#5a97c6', '#75a3c7', '#8cb3d1', '#abbfd0', '#eff5fb'],
pieces: [
{gte: 16, label: '>17'}, // (10, Infinity]
{gte: 12, lte: 16, label: '13-16'}, // (1, 9]
{gte: 8, lte: 12, label: '9-12'}, // (1, 9]
{gte: 4, lte: 8, label: '5-8'}, // (1, 9]
{gte: 1, lte: 4, label: '1-4'}, // (1, 9]
{lt: 1, label: '0'} // (-Infinity, 1)
]
},
toolbox: { //工具栏
show: false,
orient: 'vertical',
top: 50,
itemGap: 20,
left: 30,
feature: {
dataView: {readOnly: false},
restore: {},
saveAsImage: {}
}
},
tooltip: { //提示框组件
show: true,
trigger: 'item',
// backgroundColor:"#4169E1",//提示标签背景颜色
formatter: ''
},
series: [{
name: " ",
type: 'map',
mapType: 'world',
roam: true,
zoom: 1,
mapLocation: {y: 100},
data: dataMap, //绑定数据
// nameMap: nameComparison,
symbolSize: 12,
label: {
normal: {show: false},
emphasis: {show: true}
},
itemStyle: {
normal: {
areaColor: "#e9a633",//区域颜色
},
emphasis: {
borderColor: 'transparent',
areaColor: "#e9a633",//区域颜色
borderWidth: 1
}
}
}],
};
worldChart.setOption(option);
} else {
// ShowDanger("请求失败!");
}
},
error: function () {
ShowDanger("error");
}
})
} else if (footer_map_ID == '108') {
// 编委国际化图表
$('.topics>div').prepend('<div><p style="text-align: center;margin-top: 30px;font-size: 22px;font-weight: bolder">Countries/Regions</p>' +
'<div id="worldMap_notice" style="width: 100%;height: 500px;margin: 0 auto 50px auto"></div></div>' +
'<p style="padding: 20px;line-height: 20px;border-bottom: 1px solid #eee;margin-bottom: 25px;font-size: 16px;color: #888">The geographic diversity of the Editorial Board is marked on the world map. All members of the Editorial Board have identified their affiliated institutions and academic titles, along with the corresponding country or geographic region. TMR Publishing Group remains neutral with regard to any jurisdictional claims.</p>');
$.ajax({
type: 'post', url: apiUrl + 'api/Journal/getBWGJH1',
data: {
"journal_id": Jour_num
},
success: function (result) {
if (result.code == 0) {
var country_shu = result.data.country;
for (var i in country_data) {
for (var j in country_shu) {
if (country_data[i].name == j) {
country_data[i].value = country_shu[j]
} else if (country_data[i].name == 'United States' && j == 'U.S.A') {
country_data[i].value = country_shu[j]
}
}
}
// 绘制图表
var worldChart = echarts.init(document.getElementById('worldMap_notice'));
// 数据
var dataMap = country_data
var option = {
backgroundColor: "#fff",
title: { //地图显示标题
show: false,
text: '',
top: "30px",
left: 'center',
textStyle: {color: '#000'}
},
visualMap: { //图列显示柱
type: 'piecewise',
left: 30,
realtime: false,
calculable: true,
color: ['#2e89bf', '#5a97c6', '#75a3c7', '#8cb3d1', '#abbfd0', '#eff5fb'],
pieces: [
{gte: 16, label: '>17'}, // (10, Infinity]
{gte: 12, lte: 16, label: '13-16'}, // (1, 9]
{gte: 8, lte: 12, label: '9-12'}, // (1, 9]
{gte: 4, lte: 8, label: '5-8'}, // (1, 9]
{gte: 1, lte: 4, label: '1-4'}, // (1, 9]
{lt: 1, label: '0'} // (-Infinity, 1)
]
},
toolbox: { //工具栏
show: false,
orient: 'vertical',
top: 50,
itemGap: 20,
left: 30,
feature: {
dataView: {readOnly: false},
restore: {},
saveAsImage: {}
}
},
tooltip: { //提示框组件
show: true,
trigger: 'item',
// backgroundColor:"#4169E1",//提示标签背景颜色
formatter: ''
},
series: [{
name: " ",
type: 'map',
mapType: 'world',
roam: true,
zoom: 1,
mapLocation: {y: 100},
data: dataMap, //绑定数据
// nameMap: nameComparison,
symbolSize: 12,
label: {
normal: {show: false},
emphasis: {show: true}
},
itemStyle: {
normal: {
areaColor: "#e9a633",//区域颜色
},
emphasis: {
borderColor: 'transparent',
areaColor: "#e9a633",//区域颜色
borderWidth: 1
}
}
}],
};
worldChart.setOption(option);
} else {
// ShowDanger("请求失败!");
}
},
error: function () {
ShowDanger("error");
}
})
} else if (footer_map_ID == '177') {
// 编委国际化图表
$('.topics>div').prepend('<div><p style="text-align: center;margin-top: 30px;font-size: 22px;font-weight: bolder">Countries/Regions</p>' +
'<div id="worldMap_notice" style="width: 100%;height: 500px;margin: 0 auto 50px auto"></div></div>' +
'<p style="padding: 20px;line-height: 20px;border-bottom: 1px solid #eee;margin-bottom: 25px;font-size: 16px;color: #888">The geographic diversity of the Editorial Board is marked on the world map. All members of the Editorial Board have identified their affiliated institutions and academic titles, along with the corresponding country or geographic region. TMR Publishing Group remains neutral with regard to any jurisdictional claims.</p>');
$.ajax({
type: 'post', url: apiUrl + 'api/Journal/getBWGJH1',
data: {
"journal_id": Jour_num
},
success: function (result) {
if (result.code == 0) {
var country_shu = result.data.country;
for (var i in country_data) {
for (var j in country_shu) {
if (country_data[i].name == j) {
country_data[i].value = country_shu[j]
} else if (country_data[i].name == 'United States' && j == 'U.S.A') {
country_data[i].value = country_shu[j]
}
}
}
// 绘制图表
var worldChart = echarts.init(document.getElementById('worldMap_notice'));
// 数据
var dataMap = country_data
var option = {
backgroundColor: "#fff",
title: { //地图显示标题
show: false,
text: '',
top: "30px",
left: 'center',
textStyle: {color: '#000'}
},
visualMap: { //图列显示柱
type: 'piecewise',
left: 30,
realtime: false,
calculable: true,
color: ['#2e89bf', '#5a97c6', '#75a3c7', '#8cb3d1', '#abbfd0', '#eff5fb'],
pieces: [
{gte: 16, label: '>17'}, // (10, Infinity]
{gte: 12, lte: 16, label: '13-16'}, // (1, 9]
{gte: 8, lte: 12, label: '9-12'}, // (1, 9]
{gte: 4, lte: 8, label: '5-8'}, // (1, 9]
{gte: 1, lte: 4, label: '1-4'}, // (1, 9]
{lt: 1, label: '0'} // (-Infinity, 1)
]
},
toolbox: { //工具栏
show: false,
orient: 'vertical',
top: 50,
itemGap: 20,
left: 30,
feature: {
dataView: {readOnly: false},
restore: {},
saveAsImage: {}
}
},
tooltip: { //提示框组件
show: true,
trigger: 'item',
// backgroundColor:"#4169E1",//提示标签背景颜色
formatter: ''
},
series: [{
name: " ",
type: 'map',
mapType: 'world',
roam: true,
zoom: 1,
mapLocation: {y: 100},
data: dataMap, //绑定数据
// nameMap: nameComparison,
symbolSize: 12,
label: {
normal: {show: false},
emphasis: {show: true}
},
itemStyle: {
normal: {
areaColor: "#e9a633",//区域颜色
},
emphasis: {
borderColor: 'transparent',
areaColor: "#e9a633",//区域颜色
borderWidth: 1
}
}
}],
};
worldChart.setOption(option);
} else {
// ShowDanger("请求失败!");
}
},
error: function () {
ShowDanger("error");
}
})
} else if (footer_map_ID == '64') {
// 编委国际化图表
$('.topics>div').prepend('<div><p style="text-align: center;margin-top: 30px;font-size: 22px;font-weight: bolder">Countries/Regions</p>' +
'<div id="worldMap_notice" style="width: 100%;height: 500px;margin: 0 auto 50px auto"></div></div>' +
'<p style="padding: 20px;line-height: 20px;border-bottom: 1px solid #eee;margin-bottom: 25px;font-size: 16px;color: #888">The geographic diversity of the Editorial Board is marked on the world map. All members of the Editorial Board have identified their affiliated institutions and academic titles, along with the corresponding country or geographic region. TMR Publishing Group remains neutral with regard to any jurisdictional claims.</p>');
$.ajax({
type: 'post', url: apiUrl + 'api/Journal/getBWGJH1',
data: {
"journal_id": Jour_num
},
success: function (result) {
if (result.code == 0) {
var country_shu = result.data.country;
for (var i in country_data) {
for (var j in country_shu) {
if (country_data[i].name == j) {
country_data[i].value = country_shu[j]
} else if (country_data[i].name == 'United States' && j == 'U.S.A') {
country_data[i].value = country_shu[j]
}
}
}
// 绘制图表
var worldChart = echarts.init(document.getElementById('worldMap_notice'));
// 数据
var dataMap = country_data
var option = {
backgroundColor: "#fff",
title: { //地图显示标题
show: false,
text: '',
top: "30px",
left: 'center',
textStyle: {color: '#000'}
},
visualMap: { //图列显示柱
type: 'piecewise',
left: 30,
realtime: false,
calculable: true,
color: ['#2e89bf', '#5a97c6', '#75a3c7', '#8cb3d1', '#abbfd0', '#eff5fb'],
pieces: [
{gte: 16, label: '>17'}, // (10, Infinity]
{gte: 12, lte: 16, label: '13-16'}, // (1, 9]
{gte: 8, lte: 12, label: '9-12'}, // (1, 9]
{gte: 4, lte: 8, label: '5-8'}, // (1, 9]
{gte: 1, lte: 4, label: '1-4'}, // (1, 9]
{lt: 1, label: '0'} // (-Infinity, 1)
]
},
toolbox: { //工具栏
show: false,
orient: 'vertical',
top: 50,
itemGap: 20,
left: 30,
feature: {
dataView: {readOnly: false},
restore: {},
saveAsImage: {}
}
},
tooltip: { //提示框组件
show: true,
trigger: 'item',
// backgroundColor:"#4169E1",//提示标签背景颜色
formatter: ''
},
series: [{
name: " ",
type: 'map',
mapType: 'world',
roam: true,
zoom: 1,
mapLocation: {y: 100},
data: dataMap, //绑定数据
// nameMap: nameComparison,
symbolSize: 12,
label: {
normal: {show: false},
emphasis: {show: true}
},
itemStyle: {
normal: {
areaColor: "#e9a633",//区域颜色
},
emphasis: {
borderColor: 'transparent',
areaColor: "#e9a633",//区域颜色
borderWidth: 1
}
}
}],
};
worldChart.setOption(option);
} else {
// ShowDanger("请求失败!");
}
},
error: function () {
ShowDanger("error");
}
})
} else if (footer_map_ID == '88') {
// 编委国际化图表
$('.topics>div').prepend('<div><p style="text-align: center;margin-top: 30px;font-size: 22px;font-weight: bolder">Countries/Regions</p>' +
'<div id="worldMap_notice" style="width: 100%;height: 500px;margin: 0 auto 50px auto"></div></div>' +
'<p style="padding: 20px;line-height: 20px;border-bottom: 1px solid #eee;margin-bottom: 25px;font-size: 16px;color: #888">The geographic diversity of the Editorial Board is marked on the world map. All members of the Editorial Board have identified their affiliated institutions and academic titles, along with the corresponding country or geographic region. TMR Publishing Group remains neutral with regard to any jurisdictional claims.</p>');
$.ajax({
type: 'post', url: apiUrl + 'api/Journal/getBWGJH1',
data: {
"journal_id": Jour_num
},
success: function (result) {
if (result.code == 0) {
var country_shu = result.data.country;
for (var i in country_data) {
for (var j in country_shu) {
if (country_data[i].name == j) {
country_data[i].value = country_shu[j]
} else if (country_data[i].name == 'United States' && j == 'U.S.A') {
country_data[i].value = country_shu[j]
}
}
}
// 绘制图表
var worldChart = echarts.init(document.getElementById('worldMap_notice'));
// 数据
var dataMap = country_data
var option = {
backgroundColor: "#fff",
title: { //地图显示标题
show: false,
text: '',
top: "30px",
left: 'center',
textStyle: {color: '#000'}
},
visualMap: { //图列显示柱
type: 'piecewise',
left: 30,
realtime: false,
calculable: true,
color: ['#2e89bf', '#5a97c6', '#75a3c7', '#8cb3d1', '#abbfd0', '#eff5fb'],
pieces: [
{gte: 16, label: '>17'}, // (10, Infinity]
{gte: 12, lte: 16, label: '13-16'}, // (1, 9]
{gte: 8, lte: 12, label: '9-12'}, // (1, 9]
{gte: 4, lte: 8, label: '5-8'}, // (1, 9]
{gte: 1, lte: 4, label: '1-4'}, // (1, 9]
{lt: 1, label: '0'} // (-Infinity, 1)
]
},
toolbox: { //工具栏
show: false,
orient: 'vertical',
top: 50,
itemGap: 20,
left: 30,
feature: {
dataView: {readOnly: false},
restore: {},
saveAsImage: {}
}
},
tooltip: { //提示框组件
show: true,
trigger: 'item',
// backgroundColor:"#4169E1",//提示标签背景颜色
formatter: ''
},
series: [{
name: " ",
type: 'map',
mapType: 'world',
roam: true,
zoom: 1,
mapLocation: {y: 100},
data: dataMap, //绑定数据
// nameMap: nameComparison,
symbolSize: 12,
label: {
normal: {show: false},
emphasis: {show: true}
},
itemStyle: {
normal: {
areaColor: "#e9a633",//区域颜色
},
emphasis: {
borderColor: 'transparent',
areaColor: "#e9a633",//区域颜色
borderWidth: 1
}
}
}],
};
worldChart.setOption(option);
} else {
// ShowDanger("请求失败!");
}
},
error: function () {
ShowDanger("error");
}
})
} else if (footer_map_ID == '391') {
// 编委国际化图表
$('.topics>div').prepend('<div><p style="text-align: center;margin-top: 30px;font-size: 22px;font-weight: bolder">Countries/Regions</p>' +
'<div id="worldMap_notice" style="width: 100%;height: 500px;margin: 0 auto 50px auto"></div></div>' +
'<p style="padding: 20px;line-height: 20px;border-bottom: 1px solid #eee;margin-bottom: 25px;font-size: 16px;color: #888">The geographic diversity of the Editorial Board is marked on the world map. All members of the Editorial Board have identified their affiliated institutions and academic titles, along with the corresponding country or geographic region. TMR Publishing Group remains neutral with regard to any jurisdictional claims.</p>');
$.ajax({
type: 'post', url: apiUrl + 'api/Journal/getBWGJH1',
data: {
"journal_id": Jour_num
},
success: function (result) {
if (result.code == 0) {
var country_shu = result.data.country;
for (var i in country_data) {
for (var j in country_shu) {
if (country_data[i].name == j) {
country_data[i].value = country_shu[j]
} else if (country_data[i].name == 'United States' && j == 'U.S.A') {
country_data[i].value = country_shu[j]
}
}
}
// 绘制图表
var worldChart = echarts.init(document.getElementById('worldMap_notice'));
// 数据
var dataMap = country_data
var option = {
backgroundColor: "#fff",
title: { //地图显示标题
show: false,
text: '',
top: "30px",
left: 'center',
textStyle: {color: '#000'}
},
visualMap: { //图列显示柱
type: 'piecewise',
left: 30,
realtime: false,
calculable: true,
color: ['#2e89bf', '#5a97c6', '#75a3c7', '#8cb3d1', '#abbfd0', '#eff5fb'],
pieces: [
{gte: 16, label: '>17'}, // (10, Infinity]
{gte: 12, lte: 16, label: '13-16'}, // (1, 9]
{gte: 8, lte: 12, label: '9-12'}, // (1, 9]
{gte: 4, lte: 8, label: '5-8'}, // (1, 9]
{gte: 1, lte: 4, label: '1-4'}, // (1, 9]
{lt: 1, label: '0'} // (-Infinity, 1)
]
},
toolbox: { //工具栏
show: false,
orient: 'vertical',
top: 50,
itemGap: 20,
left: 30,
feature: {
dataView: {readOnly: false},
restore: {},
saveAsImage: {}
}
},
tooltip: { //提示框组件
show: true,
trigger: 'item',
// backgroundColor:"#4169E1",//提示标签背景颜色
formatter: ''
},
series: [{
name: " ",
type: 'map',
mapType: 'world',
roam: true,
zoom: 1,
mapLocation: {y: 100},
data: dataMap, //绑定数据
// nameMap: nameComparison,
symbolSize: 12,
label: {
normal: {show: false},
emphasis: {show: true}
},
itemStyle: {
normal: {
areaColor: "#e9a633",//区域颜色
},
emphasis: {
borderColor: 'transparent',
areaColor: "#e9a633",//区域颜色
borderWidth: 1
}
}
}],
};
worldChart.setOption(option);
} else {
// ShowDanger("请求失败!");
}
},
error: function () {
ShowDanger("error");
}
})
}
// 侧栏小地图
// tmr,life,感染,胃肠,精准,历史与哲学
// Jour_num == "1"||Jour_num == "4"||Jour_num == "7"||Jour_num == "8"||Jour_num == "13"||Jour_num == "14"
if (Jour_num == "1"||Jour_num == "8"||Jour_num == "14") {
// 编委国际化图表
$.ajax({
type: 'post', url: apiUrl + 'api/Journal/getAuthorFB',
data: {
"journal_id": Jour_num
},
success: function (result) {
if (result.code == 0) {
var country_shu = result.data.countrys;
var pm_num = 0;
var paiming = ''
for (var i in country_data) {
for (var j in country_shu) {
if (country_data[i].name == country_shu[j].author_country) {
country_data[i].value = country_shu[j].sum
} else if (country_data[i].name == 'Bangladesh' && j == 'Bengal') {
country_data[i].value = country_shu[j]
} else if (country_data[i].name == 'Sudan' && j == 'Sultan') {
country_data[i].value = country_shu[j]
} else if (country_data[i].name == 'Korea' && j == 'The Republic of Korea') {
country_data[i].value = country_shu[j]
} else if (country_data[i].name == 'United States' && country_shu[j].author_country == 'U.S.A') {
country_data[i].value = country_shu[j].sum
}
pm_num = pm_num + 1
if (country_shu[j].sum >= 3 && pm_num <= 10) {
paiming += '<li style="color:#006699;"><font style="width: 30px;display: inline-block">' + pm_num + '</font>' +
'<font style="width: 140px;display: inline-block">' + country_shu[j].author_country + '</font>' +
'<font style="width: 20px;display: inline-block">' + country_shu[j].sum + '</font></li>'
}
}
}
$('.tmr_side_map .map_paiming').html(paiming);
// 绘制图表
var worldChart = echarts.init(document.getElementById('worldMap'));
// 数据
var dataMap = country_data
var option = {
backgroundColor: "#fff",
title: { //地图显示标题
show: false,
text: '',
top: "50px",
left: 'center',
textStyle: {color: '#000'}
},
visualMap: { //图列显示柱
show: false,
type: 'piecewise',
// top: 10,
left: 30,
realtime: false,
calculable: true,
color: ['#2e89bf', '#5a97c6', '#75a3c7', '#8cb3d1', '#abbfd0', '#eff5fb'],
pieces: [
{gte: 16, label: '>17'}, // (10, Infinity]
{gte: 12, lte: 16, label: '13-16'}, // (1, 9]
{gte: 8, lte: 12, label: '9-12'}, // (1, 9]
{gte: 4, lte: 8, label: '5-8'}, // (1, 9]
{gte: 1, lte: 4, label: '1-4'}, // (1, 9]
{lt: 1, label: '0'} // (-Infinity, 1)
]
},
toolbox: { //工具栏
show: false,
orient: 'vertical',
top: 50,
itemGap: 20,
left: 30,
feature: {
dataView: {readOnly: false},
restore: {},
saveAsImage: {}
}
},
tooltip: { //提示框组件
show: true,
trigger: 'item',
// backgroundColor:"#4169E1",//提示标签背景颜色
formatter: ''
},
series: [{
name: " ",
type: 'map',
mapType: 'world',
roam: true,
zoom: 1,
top: 20,
mapLocation: {y: 100},
data: dataMap, //绑定数据
// nameMap: nameComparison,
symbolSize: 12,
label: {
normal: {show: false},
emphasis: {show: true}
},
itemStyle: {
normal: {
areaColor: "#e9a633",//区域颜色
},
emphasis: {
borderColor: 'transparent',
areaColor: "#e9a633",//区域颜色
borderWidth: 1
}
}
}],
};
worldChart.setOption(option);
} else {
// ShowDanger("请求失败!");
}
},
error: function () {
ShowDanger("error");
}
})
}