打开/关闭搜索
搜索
打开/关闭菜单
2
1
189
潮语辞书
导航
首页
最近更改
随机页面
MediaWiki帮助
特殊页面
上传文件
打开/关闭外观设置菜单
notifications
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。
user-interface-preferences
个人工具
创建账号
登录
查看“︁茄”︁的源代码
来自潮语辞书
分享此页面
查看
阅读
查看源代码
查看历史
associated-pages
页面
讨论
更多操作
←
茄
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
<html> <html lang="zh-CN"> <head> <meta charset="UTF-8"> <title>饶平方言地图</title> <script src="https://cdn.jsdelivr.net/npm/echarts@5/dist/echarts.min.js"></script> <style> html, body { height: 100%; margin: 0; } #map { width: 100%; height: 600px; } </style> </head> <body> <div id="map"></div> <script> // 用 fetch 加载你上传的 JSON 文件 fetch('https://lyuri.top/index.php/文件:饶平方言图.json') .then(res => res.json()) .then(geoJson => { // 注册地图 echarts.registerMap('饶平', geoJson); var chart = echarts.init(document.getElementById('map')); var option = { tooltip: { trigger: 'item', formatter: '{b}<br/>词汇数: {c}' }, visualMap: { min: 0, max: 100, left: 'right', top: 'bottom', text: ['高','低'], inRange: { color: ['#e0f3f8', '#0868ac'] }, calculable: true }, series: [{ type: 'map', map: '饶平', roam: true, label: { show: true }, data: [ {name: '汤溪镇', value: 30}, {name: '东山镇', value: 20}, {name: '平安镇', value: 50}, {name: '其他镇', value: 10} ] }] }; chart.setOption(option); }) .catch(err => console.error('加载 GeoJSON 出错:', err)); </script> </body> </html>
返回
茄
。
查看“︁茄”︁的源代码
来自潮语辞书