zoukankan      html  css  js  c++  java
  • echarts-x

    <%@ page contentType="text/html;charset=UTF-8" %>
    <%@ include file="/webpage/include/taglib.jsp"%>
    <html>
      <head>
        <title>map3d</title>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <link rel="stylesheet" href="${ctxStatic}/echartsx/css/common.css">
        <link rel="stylesheet" href="${ctxStatic}/echartsx/css/example.css">
        <link rel="stylesheet" href="${ctxStatic}/echartsx/css/codemirror.css">
        <link rel="stylesheet" href="${ctxStatic}/echartsx/css/monokai.css">
        <link rel="stylesheet" href="${ctxStatic}/echartsx/css/twilight.css">
        	<style>
    	  		#main { position:relative; top:0; bottom:0; 100%; height:100%;}
    	</style>
      </head>
      <body>
      	<div id="main"></div>
         <script src="${ctxStatic}/echartsx/lib/echarts/echarts.js"></script>
         <script src="${ctxStatic}/echartsx/lib/echarts-x/echarts-x.js"></script>
         <script type="text/javascript">
         	require.config({
         		paths: {
         			'echarts': '${ctxStatic}/echartsx/lib/echarts/',
         			'echarts-x': '${ctxStatic}/echartsx/lib/echarts-x'
         		}
         	});
         	require([
         		'echarts',
         		'echarts-x',
         		'echarts/chart/map',
         		'echarts-x/chart/map3d'
         	],function(ec){
         		var myChart = ec.init(document.getElementById('main'));
         		myChart.setOption({
         		    title: {
         		        text: '目标沙盘',
         		        x: 'center',
         		        textStyle: {
         		            color: 'white'
         		        }
         		    },
         		    tooltip: {
         		        formatter: '{b}'
         		    },
         		    series: [{
         		        type: 'map3d',
         		        mapType: 'world',
         		        baseLayer: {
         		            backgroundColor: '',
         		            backgroundImage: '${ctxStatic}/echartsx/asset/earth.jpg',
         		            quality: 'high',
         		        },
    
         		        surfaceLayers: [{
         		            type: 'texture',
         		            distance: 3,
         		            image: '${ctxStatic}/echartsx/asset/clouds.png'
         		        }],
    
         		        selectedMode: 'single',
    
         		        itemStyle: {
         		            normal: {
         		                label: {
         		                    show: true
         		                },
         		                borderWidth: 1,
         		                borderColor: 'yellow',
         		                areaStyle: {
         		                    color: 'rgba(0, 0, 0, 0)'
         		                }
         		            }
         		        },
         		        data: [{}]
         		    }]
         		});
         	})
         </script>
      </body>
    </html>
    
  • 相关阅读:
    经典背景音乐集(转)
    商业模式的思考
    PHP5.4的变化关注What has changed in PHP 5.4.x
    yii模版中的写法
    设计模式(一)工厂模式Factory(创建型)
    yii模版中的判断方法
    Yacc 与 Lex 快速入门(词法分析和语法分析)
    Windows PHP 中 VC6 X86 和 VC9 X86 的区别及 Non Thread Safe 的意思
    金融系列1《借贷记卡介绍》
    设计模式概论
  • 原文地址:https://www.cnblogs.com/mayidudu/p/6526560.html
Copyright © 2011-2022 走看看