<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                ### 查詢數據: ~~~ public function index() { $data = Db::name('user_count')->select(); $this->assign('data',$data); return $this->fetch(); } ~~~ * * * * * ### 引入相關資源: ~~~ <!--引入百度地圖的jssdk--> <script src="http://api.map.baidu.com/api?v=2.0&ak=2qkjnM1Bpkac4825hyth9mGzU9xAGtDt"></script> <script src="__LIB__/jquery-3.3.1.min.js"></script> <script src="__LIB__/node_modules/echarts/dist/echarts.js"></script> <script src="__LIB__/node_modules/echarts/dist/extension/bmap.js"></script> ~~~ * * * * * ### 初始化echart實例: ~~~ <div id="map" style="width: 1500px;height: 800px;"></div> <script> var weChatMap = echarts.init(document.getElementById('map')); </script> ~~~ * * * * * ### 設置參數: ~~~ option = { title: { text: '微信好友分布圖', // subtext: '項目', // sublink: 'http://www.pm25.in', left: 'center' }, tooltip : { trigger: 'item' }, bmap: { center: [104.114129, 37.550339], zoom: 5, roam: true, mapStyle: { styleJson: [{ 'featureType': 'water', 'elementType': 'all', 'stylers': { 'color': '#d1d1d1' } }, { 'featureType': 'land', 'elementType': 'all', 'stylers': { 'color': '#f3f3f3' } } series : [ { name: '微信好友分布圖', type: 'scatter', coordinateSystem: 'bmap', data: convertData(data), symbolSize: function (val) { return val[2] / 0.5; }, label: { normal: { formatter: '{b}', position: 'right', show: false }, emphasis: { show: true } }, itemStyle: { normal: { color: 'purple' } } }, { name: 'Top 5', type: 'effectScatter', coordinateSystem: 'bmap', data: convertData(data.sort(function (a, b) { return b.value - a.value; }).slice(0, 6)), symbolSize: function (val) { return val[2] / 0.5; }, showEffectOn: 'render', rippleEffect: { brushType: 'stroke' }, hoverAnimation: true, label: { normal: { formatter: '{b}', position: 'right', show: true } }, itemStyle: { normal: { color: 'purple', shadowBlur: 10, shadowColor: '#333' } }, zlevel: 1 } ] }; ~~~ * * * * * ### 生成分布圖: ~~~ weChatMap.setOption(option); ~~~ > 完整代碼見文件夾wechatFriends * * * * * ### 在線預覽鏈接: > [http://gis.icandebug.com](http://gis.icandebug.com) * * * * * ### 說明: > * 作品所用到的編程語言、數據庫、以及第三方庫均為開源免費,不會產生版權問題。 > * 結果圖中圓圈越大表示這里的好友越多。其中分布最多的5個市有動態雷達波。 [TOC]
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看