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>
    
  • 相关阅读:
    android 多线程
    Uva 10881 Piotr’s Ants 蚂蚁
    LA 3708 Graveyard 墓地雕塑 NEERC 2006
    UVa 11300 Spreading the Wealth 分金币
    UVa 11729 Commando War 突击战
    UVa 11292 The Dragon of Loowater 勇者斗恶龙
    HDU 4162 Shape Number
    HDU 1869 六度分离
    HDU 1041 Computer Transformation
    利用可变参数函数清空多个数组
  • 原文地址:https://www.cnblogs.com/mayidudu/p/6526560.html
Copyright © 2011-2022 走看看