zoukankan      html  css  js  c++  java
  • echarts 3D地图

    <script src="js/map/shandong.js"></script>

    var
    maps = echarts.init(document.getElementById('map')); var option = { tooltip: { formatter: function(params) { var content = '', content = params.name + '<br>' + params.value[0] + params.value[1]; return content; } }, backgroundColor: '#040f3c', visualMap: { show: false, min: 0, max: 300, inRange: { color: ['#e0ffff', '#006edd'] }, calculable: true }, series:[{ name: '山东', type: 'map3D', map: '山东', data: [{name: '青岛市', value: [222, 'GDP']}], regionHeight: 2, top: '10%', label: { show: true, formatter:function (params) { var content = '', content = params.name; return content; }, textStyle: { color: '#fff', fontWeight: 'normal', fontSize: 12, backgroundColor: 'rgba(0, 0, 0, 0)' }, emphasis: { //鼠标悬浮效果 show: true, textStyle: {color: '#f00'} } }, itemStyle: { normal: {borWidth: 0.4}, emphasis: {color: 'rgb(255,255,255)'} //地图板块颜色 }, viewControl: { autoRotate: false, // 自动旋转 distance: 70 } }] } maps.setOption(option) maps.on('click', function (params) { console.log(parmas) })
  • 相关阅读:
    C#性能优化实践
    JavaScript类型转换
    JSON基础
    EasyUI DataGrid 内部input的事件
    WPF之Binding基础二 控件作为Binding的数据源
    WPF之Binding基础一 UI Binding Source
    JavaScript里面的“类”
    SqlServer随笔
    对象和类型
    浅谈类
  • 原文地址:https://www.cnblogs.com/caoxen/p/11654320.html
Copyright © 2011-2022 走看看