123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687 |
- /**
- * 公共参数设置
- */
- var options = function() {
- return {
- url: 'xxxx',
- toolbox: {
- show: true,
- iconStyle: {
- borderColor: "rgba(255,255,255,.8)",
- },
- feature: {
- magicType: {
- type: ['line', 'bar']
- },
- }
- },
- yAxis: {
- nameTextStyle: {
- color: "rgba(255,255,255,.6)",
- },
- splitLine: {
- show: false
- },
- axisLine: { //坐标轴线
- show: true,
- lineStyle: {
- color: "rgba(255,255,255,.1 )",
- width: 2,
- type: "solid"
- },
- },
- splitNumber: 3,
- axisLabel: {
- //formatter: '{value} %',
- show: true,
- textStyle: {
- color: "rgba(255,255,255,.6)",
- fontSize: '13',
- },
- }
- },
- lineStyle: {
- normal: {
- color: '#23abca',
- width: 2
- }
- },
- symbolSize: 5,
- areaStyle: {
- normal: {
- color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
- offset: 0,
- color: '#23abcabd'
- }, {
- offset: 0.8,
- color: 'rgba(0, 216, 135, 0.1)'
- }], false),
- shadowColor: 'rgba(0, 0, 0, 0.1)',
- }
- },
- itemStyle: {
- normal: {
- color: 'white',
- borderColor: 'rgba(221, 220, 107, .1)',
- borderWidth: 12,
- lineStyle: {
- width: 5
- }
- }
- }
- }
- }
- var t = null;
- t = setTimeout(time, 1000);
- function time() {
- clearTimeout(t);
- dt = new Date();
- var y = dt.getFullYear();
- var mt = dt.getMonth() + 1;
- var day = dt.getDate();
- var h = dt.getHours();
- var m = dt.getMinutes();
- var s = dt.getSeconds();
- document.getElementById("showTime").innerHTML = y + "年" + mt + "月" + day + "-" + h + "时" + m + "分" + s + "秒";
- t = setTimeout(time, 1000);
- }
|