ming-demo1
Version:
mdf metaui web
2,530 lines (2,477 loc) • 140 kB
JavaScript
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.getNewColKey = getNewColKey;
exports.getNewCol = getNewCol;
exports.getNewRowKey = getNewRowKey;
exports.getNewRow = getNewRow;
exports.getNewChartKey = getNewChartKey;
exports.getNewSubChartKey = getNewSubChartKey;
exports.getRandom = getRandom;
exports.trimCaptionForLegend = trimCaptionForLegend;
exports.trimNameForXYAxis = trimNameForXYAxis;
exports.getChartColorArr = getChartColorArr;
exports.wrapString = wrapString;
exports.getEChartElementId = getEChartElementId;
exports.upgradeConfig_ForScatter_Batch = upgradeConfig_ForScatter_Batch;
exports.upgradeConfig_ForScatter = upgradeConfig_ForScatter;
exports.upgradeConfig_ForEChartArr = upgradeConfig_ForEChartArr;
exports.getMapAllCitys = getMapAllCitys;
exports.getMapProvinceArr = getMapProvinceArr;
exports.LogChartInfo = LogChartInfo;
exports.checkTempName = checkTempName;
exports.getArrayFields = getArrayFields;
exports.getEChartConfig_Template = getEChartConfig_Template;
exports.UnionDimensionName = UnionDimensionName;
exports.canUseDimensionXOrderBy = canUseDimensionXOrderBy;
exports.sortEChartData2 = sortEChartData2;
exports.getPanelLayOutTemplate1 = getPanelLayOutTemplate1;
exports.reCalcTemplate2Height2AndRowsHeight = reCalcTemplate2Height2AndRowsHeight;
exports.reCalcRowsHeight2AndInnerRowsHeight = reCalcRowsHeight2AndInnerRowsHeight;
exports.getPanelLayOutTemplate2 = getPanelLayOutTemplate2;
exports.getPanelLayOutTemplateRow2 = getPanelLayOutTemplateRow2;
exports.getPanelLayOutTemplate3 = getPanelLayOutTemplate3;
exports.getBackStyleArr = getBackStyleArr;
exports.getBackColorArr = getBackColorArr;
exports.getSkinArr = getSkinArr;
exports.restoreEditPanel = restoreEditPanel;
exports.restoreEditPanelRows = restoreEditPanelRows;
exports.trimCondition = trimCondition;
exports.subConfig_Get = subConfig_Get;
exports.subConfigArray_Operate = subConfigArray_Operate;
exports.getColHeight = getColHeight;
exports.components = exports.panelDefaultValue = exports.panelType = exports.chartDisplayType = exports.displayStyle = exports.eChartLabel = void 0;
var _react = _interopRequireWildcard(require("react"));
var eChartDemoData = _interopRequireWildcard(require("./eChartDemoData"));
var _formatDate = require("@mdf/cube/lib/helpers/formatDate");
var _row = _interopRequireDefault(require("../basic/row"));
var _col = _interopRequireDefault(require("../basic/col"));
var eChartLabel = {
SplitChar: "/",
unionedXCode: "eChartDimensionXCode",
unionedXName: "eChartDimensionXName",
unionedSubCode: "eChartDimensionSubCode",
unionedSubName: "eChartDimensionSubName"
};
exports.eChartLabel = eChartLabel;
var keyPrefix = {
panelTemplateColKey: "colKey_",
panelTemplateRowKey: "rowKey_",
panelTemplateChartKey: "chartKey_",
panelTemplateSubChartKey: "subChartKey_"
};
var displayStyle = [1, 2, 3];
exports.displayStyle = displayStyle;
var chartDisplayType = {
rpt: "rpt",
panel: "panel",
mobile: "mobile"
};
exports.chartDisplayType = chartDisplayType;
var panelType = {
panelType1: 1,
panelType2: 2,
panelType3: 3
};
exports.panelType = panelType;
var panelDefaultValue = {
borderColor: "#DBE0E5",
backgroundColor: "",
margin: "7px",
allMargin: "18px",
allMargin2: "20px",
padding: "0px",
borderWidth: '1px',
finalControlPadding: "5px",
panel2AllBackgroundColor: "#f0f1f4",
panel2SumTextColor: "#999"
};
exports.panelDefaultValue = panelDefaultValue;
function getNewColKey() {
return keyPrefix.panelTemplateColKey + getRandom();
}
function getNewCol() {
var colEle = {
colKey: getNewColKey(),
widgetType: "none",
width: '100%',
backgroundColor: '',
backgroundImage: "",
borderWidth: panelDefaultValue.borderWidth,
borderColor: panelDefaultValue.borderColor,
padding: panelDefaultValue.padding,
margin: panelDefaultValue.margin
};
return colEle;
}
function getNewRowKey() {
return keyPrefix.panelTemplateRowKey + getRandom();
}
function getNewRow(curRow) {
var rowEle = {
rowKey: getNewRowKey(),
height: '100%',
backgroundColor: '',
backgroundImage: "",
borderWidth: panelDefaultValue.borderWidth,
borderColor: panelDefaultValue.borderColor,
padding: panelDefaultValue.padding,
margin: panelDefaultValue.margin,
cols: []
};
return rowEle;
}
function getNewChartKey() {
return keyPrefix.panelTemplateChartKey + getRandom();
}
function getNewSubChartKey() {
return keyPrefix.panelTemplateSubChartKey + getRandom();
}
function getRandom() {
return Math.floor(Math.random() * 10000000000);
}
function trimCaptionForLegend(caption, logStr) {
var str = caption.toString();
if (str.length > 15) {
str = str.substring(0, 15) + "...";
LogChartInfo("需要显示为Legend的名字超长,需要截断,截断前:" + caption + " 截断后:" + str + " 其他信息:" + logStr, "", 999);
}
return str;
}
function trimNameForXYAxis(caption, logStr) {
var str = caption.toString();
if (str.length > 10) {
str = str.substring(0, 10) + "...";
LogChartInfo("需要显示为XY轴的名字超长,需要截断,截断前:" + caption + " 截断后:" + str + " 其他信息:" + logStr, "", 999);
}
return str;
}
var components = {
weather: {
widgetType: "component",
componentConfig: {
subType: "weather",
title: "天气",
innerFName: "看板配置信息-模块配置-天气",
component: "EChartWeather",
icon: "tianqicopy"
}
},
datetime: {
widgetType: "component",
componentConfig: {
subType: "datetime",
title: "日期时间",
innerFName: "看板配置信息-模块配置-日期时间",
component: "EChartDateTime",
icon: "riqidefuben",
dateTimeConfig: {}
}
},
commonFunc: {
widgetType: "component",
componentConfig: {
subType: "commonFunc",
title: "常用功能",
innerFName: "看板配置信息-模块配置-常用功能",
component: "",
icon: "changyonggongnengcopy"
}
},
notice: {
widgetType: "component",
componentConfig: {
subType: "notice",
title: "公告",
innerFName: "看板配置信息-模块配置-公告",
component: "",
icon: "gonggaozujiancopy"
}
}
};
exports.components = components;
function getChartColorArr(length) {
var colorList = ['#1E9CFC', '#8CCB39', '#BC62F5', '#F0B702', '#F36627', '#48CDD0', '#C0E158', '#4AB1E8', '#FF5D67', '#8580E5', '#7CCC55', '#4CBEF4', '#FFC059', '#7AD4FF', '#CD77E5', '#FF9352', '#49BC99', '#CF4698'];
for (var i = 0; i < length; i++) {
colorList.push('#' + Math.floor(Math.random() * 16777215).toString(16));
}
return colorList;
}
function wrapString(value, rowLen) {
var ret = "";
var maxLength = rowLen;
var valLength = value.length;
var rowN = Math.ceil(valLength / maxLength);
if (rowN > 1) {
for (var i = 0; i < rowN; i++) {
var temp = "";
var start = i * maxLength;
var end = start + maxLength;
temp = value.substring(start, end) + "\n";
ret += temp;
}
return ret;
} else {
return value;
}
}
function getEChartElementId(id) {
id = "chart1";
return "eChartId_" + id;
}
function upgradeConfig_ForScatter_Batch(configArr) {
if (configArr && configArr.length > 0) {
configArr.forEach(function (ele) {
upgradeConfig_ForScatter(ele);
});
}
return configArr;
}
function upgradeConfig_ForScatter(config) {
var yySetting = config.yySetting;
if (yySetting.type == "scatter" && !yySetting.regionInfo) {
var regionInfo = {};
var key = yySetting.key;
if (key == 'china') {
regionInfo.region = "100000";
regionInfo.shortName = "中国";
regionInfo.parent = 0;
regionInfo.regionArr = [100000];
regionInfo.geoName = regionInfo.shortName + regionInfo.region;
} else {
var ele = getMapProvinceArr(key);
if (ele) {
regionInfo.region = ele.region;
regionInfo.shortName = ele.name;
regionInfo.parent = "100000";
regionInfo.regionArr = [100000];
regionInfo.regionArr.push(ele.region);
regionInfo.geoName = regionInfo.shortName + regionInfo.region;
} else {
LogChartInfo("upgradeConfig_ForScatter 没找到对应的待升级地区。yySetting ", JSON.stringify(yySetting), 999);
return;
}
}
yySetting.regionInfo = regionInfo;
}
return config;
}
function upgradeConfig_ForEChartArr(eChartConfig) {
if (eChartConfig.hasOwnProperty("subChartColNum") == false && eChartConfig.hasOwnProperty("subChartConfigArr") == false) {
var obj = {};
obj.subChartColNum = 1;
obj.subChartConfigArr = [];
if (!!eChartConfig.chart1) {
upgradeConfig_ForScatter(eChartConfig.chart1);
obj.subChartConfigArr.push(eChartConfig.chart1);
} else {
LogChartInfo("分组方案由支持单图改为支持多图升级整个报表的配置信息出错。eChartConfig", JSON.stringify(eChartConfig), 999);
}
eChartConfig = obj;
}
return eChartConfig;
}
function getMapAllCitys(cityCode) {
var citys = [];
citys.push({
cityCode: "110100",
cityName: "北京市"
});
citys.push({
cityCode: "120100",
cityName: "天津市"
});
citys.push({
cityCode: "310100",
cityName: "上海市"
});
citys.push({
cityCode: "500100",
cityName: "重庆市"
});
citys.push({
cityCode: "310200",
cityName: "崇明县"
});
citys.push({
cityCode: "429000",
cityName: "湖北省直辖县市"
});
citys.push({
cityCode: "522200",
cityName: "铜仁市"
});
citys.push({
cityCode: "522400",
cityName: "毕节市"
});
citys.push({
cityCode: "130100",
cityName: "石家庄市"
});
citys.push({
cityCode: "130200",
cityName: "唐山市"
});
citys.push({
cityCode: "130300",
cityName: "秦皇岛市"
});
citys.push({
cityCode: "130400",
cityName: "邯郸市"
});
citys.push({
cityCode: "130500",
cityName: "邢台市"
});
citys.push({
cityCode: "130600",
cityName: "保定市"
});
citys.push({
cityCode: "130700",
cityName: "张家口市"
});
citys.push({
cityCode: "130800",
cityName: "承德市"
});
citys.push({
cityCode: "130900",
cityName: "沧州市"
});
citys.push({
cityCode: "131000",
cityName: "廊坊市"
});
citys.push({
cityCode: "131100",
cityName: "衡水市"
});
citys.push({
cityCode: "140100",
cityName: "太原市"
});
citys.push({
cityCode: "140200",
cityName: "大同市"
});
citys.push({
cityCode: "140300",
cityName: "阳泉市"
});
citys.push({
cityCode: "140400",
cityName: "长治市"
});
citys.push({
cityCode: "140500",
cityName: "晋城市"
});
citys.push({
cityCode: "140600",
cityName: "朔州市"
});
citys.push({
cityCode: "140700",
cityName: "晋中市"
});
citys.push({
cityCode: "140800",
cityName: "运城市"
});
citys.push({
cityCode: "140900",
cityName: "忻州市"
});
citys.push({
cityCode: "141000",
cityName: "临汾市"
});
citys.push({
cityCode: "141100",
cityName: "吕梁市"
});
citys.push({
cityCode: "150100",
cityName: "呼和浩特市"
});
citys.push({
cityCode: "150200",
cityName: "包头市"
});
citys.push({
cityCode: "150300",
cityName: "乌海市"
});
citys.push({
cityCode: "150400",
cityName: "赤峰市"
});
citys.push({
cityCode: "150500",
cityName: "通辽市"
});
citys.push({
cityCode: "150600",
cityName: "鄂尔多斯市"
});
citys.push({
cityCode: "150700",
cityName: "呼伦贝尔市"
});
citys.push({
cityCode: "150800",
cityName: "巴彦淖尔市"
});
citys.push({
cityCode: "150900",
cityName: "乌兰察布市"
});
citys.push({
cityCode: "152200",
cityName: "兴安盟"
});
citys.push({
cityCode: "152500",
cityName: "锡林郭勒盟"
});
citys.push({
cityCode: "152900",
cityName: "阿拉善盟"
});
citys.push({
cityCode: "210100",
cityName: "沈阳市"
});
citys.push({
cityCode: "210200",
cityName: "大连市"
});
citys.push({
cityCode: "210300",
cityName: "鞍山市"
});
citys.push({
cityCode: "210400",
cityName: "抚顺市"
});
citys.push({
cityCode: "210500",
cityName: "本溪市"
});
citys.push({
cityCode: "210600",
cityName: "丹东市"
});
citys.push({
cityCode: "210700",
cityName: "锦州市"
});
citys.push({
cityCode: "210800",
cityName: "营口市"
});
citys.push({
cityCode: "210900",
cityName: "阜新市"
});
citys.push({
cityCode: "211000",
cityName: "辽阳市"
});
citys.push({
cityCode: "211100",
cityName: "盘锦市"
});
citys.push({
cityCode: "211200",
cityName: "铁岭市"
});
citys.push({
cityCode: "211300",
cityName: "朝阳市"
});
citys.push({
cityCode: "211400",
cityName: "葫芦岛市"
});
citys.push({
cityCode: "220100",
cityName: "长春市"
});
citys.push({
cityCode: "220200",
cityName: "吉林市"
});
citys.push({
cityCode: "220300",
cityName: "四平市"
});
citys.push({
cityCode: "220400",
cityName: "辽源市"
});
citys.push({
cityCode: "220500",
cityName: "通化市"
});
citys.push({
cityCode: "220600",
cityName: "白山市"
});
citys.push({
cityCode: "220700",
cityName: "松原市"
});
citys.push({
cityCode: "220800",
cityName: "白城市"
});
citys.push({
cityCode: "222400",
cityName: "延边朝鲜族自治州"
});
citys.push({
cityCode: "230100",
cityName: "哈尔滨市"
});
citys.push({
cityCode: "230200",
cityName: "齐齐哈尔市"
});
citys.push({
cityCode: "230300",
cityName: "鸡西市"
});
citys.push({
cityCode: "230400",
cityName: "鹤岗市"
});
citys.push({
cityCode: "230500",
cityName: "双鸭山市"
});
citys.push({
cityCode: "230600",
cityName: "大庆市"
});
citys.push({
cityCode: "230700",
cityName: "伊春市"
});
citys.push({
cityCode: "230800",
cityName: "佳木斯市"
});
citys.push({
cityCode: "230900",
cityName: "七台河市"
});
citys.push({
cityCode: "231000",
cityName: "牡丹江市"
});
citys.push({
cityCode: "231100",
cityName: "黑河市"
});
citys.push({
cityCode: "231200",
cityName: "绥化市"
});
citys.push({
cityCode: "232700",
cityName: "大兴安岭地区"
});
citys.push({
cityCode: "320100",
cityName: "南京市"
});
citys.push({
cityCode: "320200",
cityName: "无锡市"
});
citys.push({
cityCode: "320300",
cityName: "徐州市"
});
citys.push({
cityCode: "320400",
cityName: "常州市"
});
citys.push({
cityCode: "320500",
cityName: "苏州市"
});
citys.push({
cityCode: "320600",
cityName: "南通市"
});
citys.push({
cityCode: "320700",
cityName: "连云港市"
});
citys.push({
cityCode: "320800",
cityName: "淮安市"
});
citys.push({
cityCode: "320900",
cityName: "盐城市"
});
citys.push({
cityCode: "321000",
cityName: "扬州市"
});
citys.push({
cityCode: "321100",
cityName: "镇江市"
});
citys.push({
cityCode: "321200",
cityName: "泰州市"
});
citys.push({
cityCode: "321300",
cityName: "宿迁市"
});
citys.push({
cityCode: "330100",
cityName: "杭州市"
});
citys.push({
cityCode: "330200",
cityName: "宁波市"
});
citys.push({
cityCode: "330300",
cityName: "温州市"
});
citys.push({
cityCode: "330400",
cityName: "嘉兴市"
});
citys.push({
cityCode: "330500",
cityName: "湖州市"
});
citys.push({
cityCode: "330600",
cityName: "绍兴市"
});
citys.push({
cityCode: "330700",
cityName: "金华市"
});
citys.push({
cityCode: "330800",
cityName: "衢州市"
});
citys.push({
cityCode: "330900",
cityName: "舟山市"
});
citys.push({
cityCode: "331000",
cityName: "台州市"
});
citys.push({
cityCode: "331100",
cityName: "丽水市"
});
citys.push({
cityCode: "340100",
cityName: "合肥市"
});
citys.push({
cityCode: "340200",
cityName: "芜湖市"
});
citys.push({
cityCode: "340300",
cityName: "蚌埠市"
});
citys.push({
cityCode: "340400",
cityName: "淮南市"
});
citys.push({
cityCode: "340500",
cityName: "马鞍山市"
});
citys.push({
cityCode: "340600",
cityName: "淮北市"
});
citys.push({
cityCode: "340700",
cityName: "铜陵市"
});
citys.push({
cityCode: "340800",
cityName: "安庆市"
});
citys.push({
cityCode: "341000",
cityName: "黄山市"
});
citys.push({
cityCode: "341100",
cityName: "滁州市"
});
citys.push({
cityCode: "341200",
cityName: "阜阳市"
});
citys.push({
cityCode: "341300",
cityName: "宿州市"
});
citys.push({
cityCode: "341500",
cityName: "六安市"
});
citys.push({
cityCode: "341600",
cityName: "亳州市"
});
citys.push({
cityCode: "341700",
cityName: "池州市"
});
citys.push({
cityCode: "341800",
cityName: "宣城市"
});
citys.push({
cityCode: "350100",
cityName: "福州市"
});
citys.push({
cityCode: "350200",
cityName: "厦门市"
});
citys.push({
cityCode: "350300",
cityName: "莆田市"
});
citys.push({
cityCode: "350400",
cityName: "三明市"
});
citys.push({
cityCode: "350500",
cityName: "泉州市"
});
citys.push({
cityCode: "350600",
cityName: "漳州市"
});
citys.push({
cityCode: "350700",
cityName: "南平市"
});
citys.push({
cityCode: "350800",
cityName: "龙岩市"
});
citys.push({
cityCode: "350900",
cityName: "宁德市"
});
citys.push({
cityCode: "360100",
cityName: "南昌市"
});
citys.push({
cityCode: "360200",
cityName: "景德镇市"
});
citys.push({
cityCode: "360300",
cityName: "萍乡市"
});
citys.push({
cityCode: "360400",
cityName: "九江市"
});
citys.push({
cityCode: "360500",
cityName: "新余市"
});
citys.push({
cityCode: "360600",
cityName: "鹰潭市"
});
citys.push({
cityCode: "360700",
cityName: "赣州市"
});
citys.push({
cityCode: "360800",
cityName: "吉安市"
});
citys.push({
cityCode: "360900",
cityName: "宜春市"
});
citys.push({
cityCode: "361000",
cityName: "抚州市"
});
citys.push({
cityCode: "361100",
cityName: "上饶市"
});
citys.push({
cityCode: "370100",
cityName: "济南市"
});
citys.push({
cityCode: "370200",
cityName: "青岛市"
});
citys.push({
cityCode: "370300",
cityName: "淄博市"
});
citys.push({
cityCode: "370400",
cityName: "枣庄市"
});
citys.push({
cityCode: "370500",
cityName: "东营市"
});
citys.push({
cityCode: "370600",
cityName: "烟台市"
});
citys.push({
cityCode: "370700",
cityName: "潍坊市"
});
citys.push({
cityCode: "370800",
cityName: "济宁市"
});
citys.push({
cityCode: "370900",
cityName: "泰安市"
});
citys.push({
cityCode: "371000",
cityName: "威海市"
});
citys.push({
cityCode: "371100",
cityName: "日照市"
});
citys.push({
cityCode: "371200",
cityName: "莱芜市"
});
citys.push({
cityCode: "371300",
cityName: "临沂市"
});
citys.push({
cityCode: "371400",
cityName: "德州市"
});
citys.push({
cityCode: "371500",
cityName: "聊城市"
});
citys.push({
cityCode: "371600",
cityName: "滨州市"
});
citys.push({
cityCode: "371700",
cityName: "菏泽市"
});
citys.push({
cityCode: "410100",
cityName: "郑州市"
});
citys.push({
cityCode: "410200",
cityName: "开封市"
});
citys.push({
cityCode: "410300",
cityName: "洛阳市"
});
citys.push({
cityCode: "410400",
cityName: "平顶山市"
});
citys.push({
cityCode: "410500",
cityName: "安阳市"
});
citys.push({
cityCode: "410600",
cityName: "鹤壁市"
});
citys.push({
cityCode: "410700",
cityName: "新乡市"
});
citys.push({
cityCode: "410800",
cityName: "焦作市"
});
citys.push({
cityCode: "410900",
cityName: "濮阳市"
});
citys.push({
cityCode: "411000",
cityName: "许昌市"
});
citys.push({
cityCode: "411100",
cityName: "漯河市"
});
citys.push({
cityCode: "411200",
cityName: "三门峡市"
});
citys.push({
cityCode: "411300",
cityName: "南阳市"
});
citys.push({
cityCode: "411400",
cityName: "商丘市"
});
citys.push({
cityCode: "411500",
cityName: "信阳市"
});
citys.push({
cityCode: "411600",
cityName: "周口市"
});
citys.push({
cityCode: "411700",
cityName: "驻马店市"
});
citys.push({
cityCode: "469000",
cityName: "省直辖县级行政区划"
});
citys.push({
cityCode: "420100",
cityName: "武汉市"
});
citys.push({
cityCode: "420200",
cityName: "黄石市"
});
citys.push({
cityCode: "420300",
cityName: "十堰市"
});
citys.push({
cityCode: "420500",
cityName: "宜昌市"
});
citys.push({
cityCode: "420600",
cityName: "襄阳市"
});
citys.push({
cityCode: "420700",
cityName: "鄂州市"
});
citys.push({
cityCode: "420800",
cityName: "荆门市"
});
citys.push({
cityCode: "420900",
cityName: "孝感市"
});
citys.push({
cityCode: "421000",
cityName: "荆州市"
});
citys.push({
cityCode: "421100",
cityName: "黄冈市"
});
citys.push({
cityCode: "421200",
cityName: "咸宁市"
});
citys.push({
cityCode: "421300",
cityName: "随州市"
});
citys.push({
cityCode: "422800",
cityName: "恩施土家族苗族自治州"
});
citys.push({
cityCode: "430100",
cityName: "长沙市"
});
citys.push({
cityCode: "430200",
cityName: "株洲市"
});
citys.push({
cityCode: "430300",
cityName: "湘潭市"
});
citys.push({
cityCode: "430400",
cityName: "衡阳市"
});
citys.push({
cityCode: "430500",
cityName: "邵阳市"
});
citys.push({
cityCode: "430600",
cityName: "岳阳市"
});
citys.push({
cityCode: "430700",
cityName: "常德市"
});
citys.push({
cityCode: "430800",
cityName: "张家界市"
});
citys.push({
cityCode: "430900",
cityName: "益阳市"
});
citys.push({
cityCode: "431000",
cityName: "郴州市"
});
citys.push({
cityCode: "431100",
cityName: "永州市"
});
citys.push({
cityCode: "431200",
cityName: "怀化市"
});
citys.push({
cityCode: "431300",
cityName: "娄底市"
});
citys.push({
cityCode: "433100",
cityName: "湘西土家族苗族自治州"
});
citys.push({
cityCode: "440100",
cityName: "广州市"
});
citys.push({
cityCode: "440200",
cityName: "韶关市"
});
citys.push({
cityCode: "440300",
cityName: "深圳市"
});
citys.push({
cityCode: "440400",
cityName: "珠海市"
});
citys.push({
cityCode: "440500",
cityName: "汕头市"
});
citys.push({
cityCode: "440600",
cityName: "佛山市"
});
citys.push({
cityCode: "440700",
cityName: "江门市"
});
citys.push({
cityCode: "440800",
cityName: "湛江市"
});
citys.push({
cityCode: "440900",
cityName: "茂名市"
});
citys.push({
cityCode: "441200",
cityName: "肇庆市"
});
citys.push({
cityCode: "441300",
cityName: "惠州市"
});
citys.push({
cityCode: "441400",
cityName: "梅州市"
});
citys.push({
cityCode: "441500",
cityName: "汕尾市"
});
citys.push({
cityCode: "441600",
cityName: "河源市"
});
citys.push({
cityCode: "441700",
cityName: "阳江市"
});
citys.push({
cityCode: "441800",
cityName: "清远市"
});
citys.push({
cityCode: "441900",
cityName: "东莞市"
});
citys.push({
cityCode: "442000",
cityName: "中山市"
});
citys.push({
cityCode: "445100",
cityName: "潮州市"
});
citys.push({
cityCode: "445200",
cityName: "揭阳市"
});
citys.push({
cityCode: "445300",
cityName: "云浮市"
});
citys.push({
cityCode: "450100",
cityName: "南宁市"
});
citys.push({
cityCode: "450200",
cityName: "柳州市"
});
citys.push({
cityCode: "450300",
cityName: "桂林市"
});
citys.push({
cityCode: "450400",
cityName: "梧州市"
});
citys.push({
cityCode: "450500",
cityName: "北海市"
});
citys.push({
cityCode: "450600",
cityName: "防城港市"
});
citys.push({
cityCode: "450700",
cityName: "钦州市"
});
citys.push({
cityCode: "450800",
cityName: "贵港市"
});
citys.push({
cityCode: "450900",
cityName: "玉林市"
});
citys.push({
cityCode: "451000",
cityName: "百色市"
});
citys.push({
cityCode: "451100",
cityName: "贺州市"
});
citys.push({
cityCode: "451200",
cityName: "河池市"
});
citys.push({
cityCode: "451300",
cityName: "来宾市"
});
citys.push({
cityCode: "451400",
cityName: "崇左市"
});
citys.push({
cityCode: "460100",
cityName: "海口市"
});
citys.push({
cityCode: "460200",
cityName: "三亚市"
});
citys.push({
cityCode: "460300",
cityName: "三沙市"
});
citys.push({
cityCode: "510100",
cityName: "成都市"
});
citys.push({
cityCode: "510300",
cityName: "自贡市"
});
citys.push({
cityCode: "510400",
cityName: "攀枝花市"
});
citys.push({
cityCode: "510500",
cityName: "泸州市"
});
citys.push({
cityCode: "510600",
cityName: "德阳市"
});
citys.push({
cityCode: "510700",
cityName: "绵阳市"
});
citys.push({
cityCode: "510800",
cityName: "广元市"
});
citys.push({
cityCode: "510900",
cityName: "遂宁市"
});
citys.push({
cityCode: "511000",
cityName: "内江市"
});
citys.push({
cityCode: "511100",
cityName: "乐山市"
});
citys.push({
cityCode: "511300",
cityName: "南充市"
});
citys.push({
cityCode: "511400",
cityName: "眉山市"
});
citys.push({
cityCode: "511500",
cityName: "宜宾市"
});
citys.push({
cityCode: "511600",
cityName: "广安市"
});
citys.push({
cityCode: "511700",
cityName: "达州市"
});
citys.push({
cityCode: "511800",
cityName: "雅安市"
});
citys.push({
cityCode: "511900",
cityName: "巴中市"
});
citys.push({
cityCode: "512000",
cityName: "资阳市"
});
citys.push({
cityCode: "513200",
cityName: "阿坝藏族羌族自治州"
});
citys.push({
cityCode: "513300",
cityName: "甘孜藏族自治州"
});
citys.push({
cityCode: "513400",
cityName: "凉山彝族自治州"
});
citys.push({
cityCode: "520100",
cityName: "贵阳市"
});
citys.push({
cityCode: "520200",
cityName: "六盘水市"
});
citys.push({
cityCode: "520300",
cityName: "遵义市"
});
citys.push({
cityCode: "520400",
cityName: "安顺市"
});
citys.push({
cityCode: "522300",
cityName: "黔西南布依族苗族自治州"
});
citys.push({
cityCode: "522600",
cityName: "黔东南苗族侗族自治州"
});
citys.push({
cityCode: "522700",
cityName: "黔南布依族苗族自治州"
});
citys.push({
cityCode: "530100",
cityName: "昆明市"
});
citys.push({
cityCode: "530300",
cityName: "曲靖市"
});
citys.push({
cityCode: "530400",
cityName: "玉溪市"
});
citys.push({
cityCode: "530500",
cityName: "保山市"
});
citys.push({
cityCode: "530600",
cityName: "昭通市"
});
citys.push({
cityCode: "530700",
cityName: "丽江市"
});
citys.push({
cityCode: "530800",
cityName: "普洱市"
});
citys.push({
cityCode: "530900",
cityName: "临沧市"
});
citys.push({
cityCode: "532300",
cityName: "楚雄彝族自治州"
});
citys.push({
cityCode: "532500",
cityName: "红河哈尼族彝族自治州"
});
citys.push({
cityCode: "532600",
cityName: "文山壮族苗族自治州"
});
citys.push({
cityCode: "532800",
cityName: "西双版纳傣族自治州"
});
citys.push({
cityCode: "532900",
cityName: "大理白族自治州"
});
citys.push({
cityCode: "533100",
cityName: "德宏傣族景颇族自治州"
});
citys.push({
cityCode: "533300",
cityName: "怒江傈僳族自治州"
});
citys.push({
cityCode: "533400",
cityName: "迪庆藏族自治州"
});
citys.push({
cityCode: "540100",
cityName: "拉萨市"
});
citys.push({
cityCode: "542100",
cityName: "昌都地区"
});
citys.push({
cityCode: "542200",
cityName: "山南地区"
});
citys.push({
cityCode: "542300",
cityName: "日喀则地区"
});
citys.push({
cityCode: "542400",
cityName: "那曲地区"
});
citys.push({
cityCode: "542500",
cityName: "阿里地区"
});
citys.push({
cityCode: "542600",
cityName: "林芝地区"
});
citys.push({
cityCode: "610100",
cityName: "西安市"
});
citys.push({
cityCode: "610200",
cityName: "铜川市"
});
citys.push({
cityCode: "610300",
cityName: "宝鸡市"
});
citys.push({
cityCode: "610400",
cityName: "咸阳市"
});
citys.push({
cityCode: "610500",
cityName: "渭南市"
});
citys.push({
cityCode: "610600",
cityName: "延安市"
});
citys.push({
cityCode: "610700",
cityName: "汉中市"
});
citys.push({
cityCode: "610800",
cityName: "榆林市"
});
citys.push({
cityCode: "610900",
cityName: "安康市"
});
citys.push({
cityCode: "611000",
cityName: "商洛市"
});
citys.push({
cityCode: "620100",
cityName: "兰州市"
});
citys.push({
cityCode: "620200",
cityName: "嘉峪关市"
});
citys.push({
cityCode: "620300",
cityName: "金昌市"
});
citys.push({
cityCode: "620400",
cityName: "白银市"
});
citys.push({
cityCode: "620500",
cityName: "天水市"
});
citys.push({
cityCode: "620600",
cityName: "武威市"
});
citys.push({
cityCode: "620700",
cityName: "张掖市"
});
citys.push({
cityCode: "620800",
cityName: "平凉市"
});
citys.push({
cityCode: "620900",
cityName: "酒泉市"
});
citys.push({
cityCode: "621000",
cityName: "庆阳市"
});
citys.push({
cityCode: "621100",
cityName: "定西市"
});
citys.push({
cityCode: "621200",
cityName: "陇南市"
});
citys.push({
cityCode: "622900",
cityName: "临夏回族自治州"
});
citys.push({
cityCode: "623000",
cityName: "甘南藏族自治州"
});
citys.push({
cityCode: "630100",
cityName: "西宁市"
});
citys.push({
cityCode: "632100",
cityName: "海东地区"
});
citys.push({
cityCode: "632200",
cityName: "海北藏族自治州"
});
citys.push({
cityCode: "632300",
cityName: "黄南藏族自治州"
});
citys.push({
cityCode: "632500",
cityName: "海南藏族自治州"
});
citys.push({
cityCode: "632600",
cityName: "果洛藏族自治州"
});
citys.push({
cityCode: "632700",
cityName: "玉树藏族自治州"
});
citys.push({
cityCode: "632800",
cityName: "海西蒙古族藏族自治州"
});
citys.push({
cityCode: "640100",
cityName: "银川市"
});
citys.push({
cityCode: "640200",
cityName: "石嘴山市"
});
citys.push({
cityCode: "640300",
cityName: "吴忠市"
});
citys.push({
cityCode: "640400",
cityName: "固原市"
});
citys.push({
cityCode: "640500",
cityName: "中卫市"
});
citys.push({
cityCode: "650100",
cityName: "乌鲁木齐市"
});
citys.push({
cityCode: "650200",
cityName: "克拉玛依市"
});
citys.push({
cityCode: "652100",
cityName: "吐鲁番地区"
});
citys.push({
cityCode: "652200",
cityName: "哈密地区"
});
citys.push({
cityCode: "652300",
cityName: "昌吉回族自治州"
});
citys.push({
cityCode: "652700",
cityName: "博尔塔拉蒙古自治州"
});
citys.push({
cityCode: "652800",
cityName: "巴音郭楞蒙古自治州"
});
citys.push({
cityCode: "652900",
cityName: "阿克苏地区"
});
citys.push({
cityCode: "653000",
cityName: "克孜勒苏柯尔克孜自治州"
});
citys.push({
cityCode: "653100",
cityName: "喀什地区"
});
citys.push({
cityCode: "653200",
cityName: "和田地区"
});
citys.push({
cityCode: "654000",
cityName: "伊犁哈萨克自治州"
});
citys.push({
cityCode: "654200",
cityName: "塔城地区"
});
citys.push({
cityCode: "654300",
cityName: "阿勒泰地区"
});
citys.push({
cityCode: "659000",
cityName: "自治区直辖县级行政区划"
});
citys.push({
cityCode: "710000",
cityName: "台湾省"
});
citys.push({
cityCode: "810100",
cityName: "香港特别行政区"
});
citys.push({
cityCode: "820000",
cityName: "澳门特别行政区"
});
if (cityCode) {
return _.find(citys, function (o) {
return o.cityCode == cityCode;
});
} else return citys;
}
function getMapProvinceArr(key, shortName) {
var area = [];
area.push({
key: "china",
caption: "中国",
importKey: "china",
geoMapKey: "china"
});
area.push({
region: "100000",
key: "china",
caption: "中国",
importKey: "china",
geoMapKey: "china"
});
area.push({
region: "110000",
key: "beijing",
caption: "北京",
importKey: "beijing",
geoMapKey: "北京"
});
area.push({
region: "370000",
key: "shandong",
caption: "山东",
importKey: "shandong",
geoMapKey: "山东"
});
area.push({
region: "500000",
key: "chongqing",
caption: "重庆",
importKey: "chongqing",
geoMapKey: "重庆"
});
area.push({
region: "350000",
key: "fujian",
caption: "福建",
importKey: "fujian",
geoMapKey: "福建"
});
area.push({
region: "620000",
key: "gansu",
caption: "甘肃",
importKey: "gansu",
geoMapKey: "甘肃"
});
area.push({
region: "440000",
key: "guangdong",
caption: "广东",
importKey: "guangdong",
geoMapKey: "广东"
});
area.push({
region: "450000",
key: "guangxi",
caption: "广西",
importKey: "guangxi",
geoMapKey: "广西"
});
area.push({
region: "520000",
key: "guizhou",
caption: "贵州",
importKey: "guizhou",
geoMapKey: "贵州"
});
area.push({
region: "460000",
key: "hainan",
caption: "海南",
importKey: "hainan",
geoMapKey: "海南"
});
area.push({
region: "130000",
key: "hebei",
caption: "河北",
importKey: "hebei",
geoMapKey: "河北"
});
area.push({
region: "230000",
key: "heilongjiang",
caption: "黑龙江",
importKey: "heilongjiang",
geoMapKey: "黑龙江"
});
area.push({
region: "410000",
key: "henan",
caption: "河南",
importKey: "henan",
geoMapKey: "河南"
});
area.push({
region: "810000",
key: "hongkong",
caption: "香港",
importKey: "hongkong",
geoMapKey: "香港"
});
area.push({
region: "420000",
key: "hubei",
caption: "湖北",
importKey: "hubei",
geoMapKey: "湖北"
});
area.push({
region: "430000",
key: "hunan",
caption: "湖南",
importKey: "hunan",
geoMapKey: "湖南"
});
area.push({
region: "320000",
key: "jiangsu",
caption: "江苏",
importKey: "jiangsu",
geoMapKey: "江苏"
});
area.push({
region: "360000",
key: "jiangxi",
caption: "江西",
importKey: "jiangxi",
geoMapKey: "江西"
});
area.push({
region: "220000",
key: "jilin",
caption: "吉林",
importKey: "jilin",
geoMapKey: "吉林"
});
area.push({
region: "210000",
key: "liaoning",
caption: "辽宁",
importKey: "liaoning",
geoMapKey: "辽宁"
});
area.push({
region: "910000",
key: "macau",
caption: "澳门",
importKey: "macau",
geoMapKey: "澳门"
});
area.push({
region: "150000",
key: "neimenggu",
caption: "内蒙古",
importKey: "neimenggu",
geoMapKey: "内蒙古"
});
area.push({
region: "640000",
key: "ningxia",
caption: "宁夏",
importKey: "ningxia",
geoMapKey: "宁夏"
});
area.push({
region: "630000",
key: "qinghai",
caption: "青海",
importKey: "qinghai",
geoMapKey: "青海"
});
area.push({
region: "140000",
key: "shanxi",
caption: "山西",
importKey: "shanxi",
geoMapKey: "山西"
});
area.push({
region: "610000",
key: "shanxi1",
caption: "陕西",
importKey: "shanxi1",
geoMapKey: "陕西"
});
area.push({
region: "340000",
key: "anhui",
caption: "安徽",
importKey: "anhui",
geoMapKey: "安徽"
});
area.push({
region: "310000",
key: "shanghai",
caption: "上海",
importKey: "shanghai",
geoMapKey: "上海"
});
area.push({
region: "510000",
key: "sichuan",
caption: "四川",
importKey: "sichuan",
geoMapKey: "四川"
});
area.push({
region: "710000",
key: "taiwan",
caption: "台湾",
importKey: "taiwan",
geoMapKey: "台湾"
});
area.push({
region: "120000",
key: "tianjin",
caption: "天津",
importKey: "tianjin",
geoMapKey: "天津"
});
area.push({
region: "650000",
key: "xinjiang",
caption: "新疆",
importKey: "xinjiang",
geoMapKey: "新疆"
});
area.push({
region: "540000",
key: "xizang",
caption: "西藏",
importKey: "xizang",
geoMapKey: "西藏"
});
area.push({
region: "530000",
key: "yunnan",
caption: "云南",
importKey: "yunnan",
geoMapKey: "云南"
});
area.push({
region: "330000",
key: "zhejiang",
caption: "浙江",
importKey: "zhejiang",
geoMapKey: "浙江"
});
if (key) {
return _.find(area, function (o) {
return o.key == key;
});
} else if (shortName) {
return _.find(area, function (o) {
return o.geoMapKey == shortName;
});
} else return area;
}
function LogChartInfo(logTag, logStr, errNumber) {
var tmpStr = "";
if (errNumber == 999) console.log("图形报表&热区日志 " + tmpStr + " 异常信息 " + logTag + (logStr === "" ? "" : " = " + logStr));else if (errNumber >= 901) console.log("图形报表&热区日志 " + tmpStr + logTag + (logStr === "" ? "" : " = " + logStr) + " err=" + errNumber);
}
function checkTempName(tmpName) {
return tmpName;
}
function getArrayFields(obj, arrPath, fieldName) {
var arr = _.get(obj, arrPath);
var arrReturn = [];
var str = "";
if (arr && arr.length > 0) {
arr.forEach(function (item) {
str = item[fieldName];
if (arrReturn.indexOf(str) < 0) arrReturn.push(str);
});
}
return arrReturn;
}
function getEChartConfig_Template(eChartType, eChartSubType, chartKey) {
var titleTop = 0;
var titleHeight = 14;
var legendTop = titleTop + titleHeight + 15;
var legendHeight = 10;
var gridTop = legendTop + legendHeight + 38;
var config = {
chart1: {
chartKey: "chart1",
version: "1.0",
createTime: "",
innerFName: "饼形图配置信息",
yySetting: {
type: "pie",
subType: "0",
innerFName: "饼形图配置信息-yySetting",
orderInfo: {
bUseDimensionXRows: true,
dimensionXRows: 31,
dimensionSubRows: 5,
orderField: "",
orderBy: "desc"
},
dataField: {
dimensionX: [{
codeField: "area_code",
nameField: "area_name",
bLabel: true,
iLabelOrder: 1
}, {
codeField: "store_code",
nameField: "store_name",
bLabel: true,
iLabelOrder: 2
}],
measure: [{
valueField: "fRetailMoney"
}]
},
radius: {
radiusInner: 40,
radiusOuter: 65
},
isSingleValue: false
},
eChartSetting: {
innerFName: "饼形图配置信息-eChartSetting",
title: {
text: "饼形图示例",
subtext: "",
textStyle: {
fontSize: 14,
color: '#333'
}
},
legend: {
show: true,
type: "scroll",
orient: 'vertical',
icon: 'circle',
data: [],
left: '0',
top: legendTop,
selectedMode: true,
itemGap: 15,
itemHeight: 8,
itemWidth: 8
},
tooltip: {
trigger: 'item',
axisPointer: {
lineStyle: {
color: '#505766',
type: 'dashed'
}
},
padding: [5, 15, 5, 15],
textStyle: {
fontSize: 12
},
formatter: "{a} <br/>{b} : {c} ({d}%)"
},
series: [{
name: "扇区数值",
type: 'pie',
radius: ['40%', '65%'],
center: ['50%', '50%'],
data: [],
label: {
normal: {
textStyle: {
color: '#333'
},
show: true,
position: 'outside',
formatter: "{b}:{d}%"
}
},
labelLine: {
normal: {
lineStyle: {
color: '#d8dbdf'
},
smooth: 0.2,
length: 10,
length2: 20
}
}
}],
toolbox: {
show: true,
right: 20,
feature: {
saveAsImage: {
title: "保存为图片",
icon: 'image://http://yxy-lsy.oss-cn-beijing.aliyuncs.com/9b675cda-f3d5-4c2f-b30f-ae77729fe34c.png'
}
}
}
}
},
chart2: {
chartKey: "chart2",
version: "1.0",
createTime: "",
innerFName: "柱形图配置信息",
yySetting: {
type: "bar",
subType: "0",
innerFName: "柱形图配置信息-yySetting",
bVertical: true,
stack: "",
orderInfo: {
bUseDimensionXRows: true,
dimensionXRows: 31,
dimensionSubRows: 5,
orderField: "",
orderBy: "desc",
dimensionXOrderBy: "asc"
},
dataField: {
dimensionX: [{
codeField: "area_code",
nameField: "area_name",
bLabel: false,
iLabelOrder: 1
}, {
codeField: "store_code",
nameField: "store_name",
bLabel: true,
iLabelOrder: 2
}],
dimensionSub: [],
measure: [{
valueField: "fMoney",
caption: "金额",
stack: "总额"
}, {
valueField: "fNetMoney",
caption: "销售净额",
stack: "累计"
}, {
valueField: "fRetailMoney",
caption: "零售金额",
stack: "累计"
}]
},
xAxis: {
axisLabel: {
needWrap: false,
wrapRowLen: 1
}
},
series: {
barWidth: 10,
barMaxWidth: 10,
barGap: '100%',
barCategoryGap: '20%'
}
},
eChartSetting: {
innerFName: "柱形图配置信息-eChartSetting",
title: {
text: "柱形图示例",
subtext: "",
textStyle: {
fontSize: 14,
color: '#333'
},
top: titleTop,
height: titleHeight
},
legend: {
show: true,
type: "scroll",
icon: 'circle',
data: [],
left: '0',
top: legendTop,
height: legendHeight,
selectedMode: true,
itemGap: 25,
itemHeight: 8,
itemWidth: 8
},
grid: {
top: gridTop,
left: '7%',
right: '4%',
bottom: '15%',
containLabel: false
},
xAxis: {
name: "",
nameLocation: "end",
type: 'category',
boundaryGap: true,
axisLine: {
show: true,
lineStyle: {
width: 1,
color: '#ccc'
}
},
splitLine: {
show: true,
lineStyle: {
color: '#F2F2F2'
}
},
axisTick: {
show: false
},
axisLabel: {
interval: 0,
rotate: 15,
textStyle: {
color: '#999'
}
}
},
yAxis: {
name: "",
nameLocation: "end",
type: 'value',
axisLine: {
show: true,
lineStyle: {
width: 1,
color: '#ccc'
}
},
splitLine: {
show: true,
lineStyle: {
color: '#F2F2F2'
}
},
axisTick: {
show: false
},
axisLabel: {
textStyle: {
color: '#999'
}
}
},
toolbox: {
show: true,
right: 20,
feature: {
saveAsImage: {
title: "保存为图片",
icon: 'image://http://yxy-lsy.oss-cn-beijing.aliyuncs.com/9b675cda-f3d5-4c2f-b30f-ae77729fe34c.png'
}
}
},
tooltip: {
show: true,
trigger: 'axis',
axisPointer: {
lineStyle: {
color: '#505766',
type: 'dashed'
}
},
padding: [5, 15, 5, 15],
textStyle: {
fontSize: 12
}
},
series: [],
label: {
normal: {
show: false,
position: 'top',
formatter: " {c}"
}
}
}
},
chart3: {
chartKey: "chart3",
version: "1.0",
createTime: "",
innerFName: "折线图配置信息",
yySetting: {
type: "line",
subType: "0",
innerFName: "折线图配置信息-yySetting",
smooth: true,
stack: "",
orderInfo: {
bUseDimensionXRows: true,
dimensionXRows: 31,
dimensionSubRows: 5,
orderField: "",
orderBy: "desc",
dimensionXOrderBy: "asc"
},
dataField: {
dimensionX: [{
codeField: "area_code",
nameField: "area_name",
bLabel: false,
iLabelOrder: 1
}, {
codeField: "store_code",
nameField: "store_name",
bLabel: true,
iLabelOrder: 2
}],
dimensionSub: [],
measure: [{
valueField: "fMoney",
caption: "金额",
smooth: true,
stack: "总额"
}, {
valueField: "fNetMoney",
caption: "销售净额",
smooth: true,
stack: "总额"
}, {
valueField: "fRetailMoney",
caption: "零售金额",
smooth: false,
stack: "总额"
}]
},
xAxis: {
axisLabel: {
needWrap: false,
wrapRowLen: 1
}
}
},
eChartSetting: {
innerFName: "折线图配置信息-eChartSetting",
title: {
text: "折线图示例",
subtext: "",
textStyle: {
fontSize: 14,
color: '#333'
},
top: titleTop,
height: titleHeight
},
legend: {
show: true,
type: "scroll",
icon: 'circle',
data: [],
left: '0',
top: legendTop,
height: legendHeight,
selectedMode: true,
itemGap: 25,
itemHeight: 8,
itemWidth: 8
},
tooltip: {
trigger: 'axis',
axisPointer: {
lineStyle: {
color: '#505766',
type: 'dashed'
}
},
padding: [15, 15, 15, 15],
textStyle: {
fontSize: 12
}
},
series: [],
grid: {
top: gridTop,
left: '7%',
right: '4%',
bottom: '15%',
containLabel: false
},
xAxis: {
name: "",
nameLocation: "end",
type: 'category',
boundaryGap: false,
axisLine: {
show: true,
lineStyle: {
width: 1,
color: '#ccc'
}
},
splitLine: {
show: true,
lineStyle: {
color: '#F2F2F2'
}
},
axisTick: {
show: false
},
axisLabel: {
interval: 0,
rotate: 15,
textStyle: {
color: '#999'
}
}
},
yAxis: {
name: "",
nameLocation: "end",
type: 'value',
axisLine: {
show: true,
lineStyle: {
width: 1,
color: '#ccc'
}
},
splitLine: {
show: true,
lineStyle: {
color: '#F2F2F2'
}
},
axisTick: {
show: false
},
axisLabel: {
textStyle: {
color: '#999'
}
}
},
toolbox: {
show: true,
right: 20,
feature: {
saveAsImage: {
title: "保存为图片",
icon: 'image://http://yxy-lsy.oss-cn-beijing.aliyuncs.com/9b675cda-f3d5-4c2f-b30f-ae77729fe34c.png'
}
}
}
}
},
chart4: {
chartKey: "chart4",
version: "1.0",
createTime: "",
innerFName: "气泡图配置信息",
yySetting: {
type: "scatter",
subType: "0",
innerFName: "气泡图配置信息-yySetting",
key: 'china',
importKey: 'china',
regionInfo: {
region: 100000,
shortName: "中国",
parent: 0,
regionArr: [100000],
geoName: "中国100000"
},
orderInfo: {
bUseDimensionXRows: true,
dimensionXRows: 31,
dimensionSubRows: 5,
orderField: "",
orderBy: "desc"
},
dataField: {
dimensionX: [{
codeField: "store_code",
nameField: "store_code",
bLabel: false,
iLabelOrder: 1
}, {
codeField: "store_name",
nameField: "store_name",
bLabel: true,
iLabelOrder: 2
}],
measure: [{
valueField: "fMoney",
caption: "金额"
}],
LngAndLat: {
longitude: {
longitudeField: "longitudeField"
},
latitude: {
latitudeField: "latitudeField"
}
}
},
symbolConfig: {
bShowSymbolBySize: true,
symbolCommonSize: 10,
symbolMaxSize: 20,
symbolMinSize: 4,
bShowSymbolByColor: true,
bShowEffect: true,
effectQty: 3
}
},
eChartSetting: {
innerFName: "气泡图配置信息-eChartSetting",
backgroundColor: 'white',
title: {
text: "气泡图