rename:chart
parent
a8c69e2373
commit
d3b18d7f6e
|
|
@ -63,13 +63,13 @@
|
||||||
"children": [
|
"children": [
|
||||||
{
|
{
|
||||||
"title": "中国地图",
|
"title": "中国地图",
|
||||||
"href": "pages/chart/map-china.html",
|
"href": "pages/chart/chart-china.html",
|
||||||
"icon": "",
|
"icon": "",
|
||||||
"spread": false
|
"spread": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"title": "区域地图",
|
"title": "区域地图",
|
||||||
"href": "pages/chart/map-area.html",
|
"href": "pages/chart/chart-area.html",
|
||||||
"icon": "",
|
"icon": "",
|
||||||
"spread": false
|
"spread": false
|
||||||
}
|
}
|
||||||
|
|
@ -83,31 +83,31 @@
|
||||||
"children": [
|
"children": [
|
||||||
{
|
{
|
||||||
"title": "统计图",
|
"title": "统计图",
|
||||||
"href": "pages/chart/map1.html",
|
"href": "pages/chart/chart1.html",
|
||||||
"icon": "",
|
"icon": "",
|
||||||
"spread": false
|
"spread": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"title": "折线图",
|
"title": "折线图",
|
||||||
"href": "pages/chart/map2.html",
|
"href": "pages/chart/chart2.html",
|
||||||
"icon": "",
|
"icon": "",
|
||||||
"spread": false
|
"spread": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"title": "馅饼图",
|
"title": "馅饼图",
|
||||||
"href": "pages/chart/map4.html",
|
"href": "pages/chart/chart4.html",
|
||||||
"icon": "",
|
"icon": "",
|
||||||
"spread": false
|
"spread": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"title": "圆形图",
|
"title": "圆形图",
|
||||||
"href": "pages/chart/map5.html",
|
"href": "pages/chart/chart5.html",
|
||||||
"icon": "",
|
"icon": "",
|
||||||
"spread": false
|
"spread": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"title": "指数图",
|
"title": "指数图",
|
||||||
"href": "pages/chart/map6.html",
|
"href": "pages/chart/chart6.html",
|
||||||
"icon": "",
|
"icon": "",
|
||||||
"spread": false
|
"spread": false
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -316,7 +316,7 @@ layui.define(function (exports) {
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
|
|
||||||
exports('mapArea', {
|
exports('chartArea', {
|
||||||
option_a: option_a,
|
option_a: option_a,
|
||||||
option_b: option_b,
|
option_b: option_b,
|
||||||
option_c: option_c,
|
option_c: option_c,
|
||||||
|
|
@ -56,15 +56,15 @@
|
||||||
|
|
||||||
layui.config({
|
layui.config({
|
||||||
base: "../../js/"
|
base: "../../js/"
|
||||||
}).use(["okUtils", "mapArea"], function () {
|
}).use(["okUtils", "chartArea"], function () {
|
||||||
let $ = layui.jquery;
|
let $ = layui.jquery;
|
||||||
let mapArea = layui.mapArea;
|
let chartArea = layui.chartArea;
|
||||||
let okUtils = layui.okUtils;
|
let okUtils = layui.okUtils;
|
||||||
|
|
||||||
let option_a = mapArea.option_a;
|
let option_a = chartArea.option_a;
|
||||||
let option_b = mapArea.option_b;
|
let option_b = chartArea.option_b;
|
||||||
let option_c = mapArea.option_c;
|
let option_c = chartArea.option_c;
|
||||||
let option_d = mapArea.option_d;
|
let option_d = chartArea.option_d;
|
||||||
|
|
||||||
let china_a = echarts.init($('#china_a')[0]);
|
let china_a = echarts.init($('#china_a')[0]);
|
||||||
let china_b = echarts.init($('#china_b')[0]);
|
let china_b = echarts.init($('#china_b')[0]);
|
||||||
Loading…
Reference in New Issue