mirror of
https://github.com/LiteyukiStudio/LiteyukiBot.git
synced 2025-07-27 07:30:55 +00:00
📝 新增全球统计
This commit is contained in:
8
docs/other/README.md
Normal file
8
docs/other/README.md
Normal file
@ -0,0 +1,8 @@
|
||||
---
|
||||
title: 其他
|
||||
index: false
|
||||
icon: question-circle
|
||||
category: 其他
|
||||
---
|
||||
|
||||
<Catalog />
|
55
docs/other/geo.md
Normal file
55
docs/other/geo.md
Normal file
@ -0,0 +1,55 @@
|
||||
---
|
||||
title: 地理分布
|
||||
icon: globe
|
||||
order: 1
|
||||
category: 其他
|
||||
|
||||
---
|
||||
|
||||
:::echarts Liteyuki Dist
|
||||
|
||||
```js
|
||||
const option = {
|
||||
backgroundColor: '#454545',
|
||||
title: {
|
||||
text: 'LiteyukiBot分布demo',
|
||||
subtext: 'LiteyukiBot分布',
|
||||
textStyle: {
|
||||
color: '#fff',
|
||||
fontSize: 20
|
||||
},
|
||||
top: '10px',
|
||||
left: '10px'
|
||||
},
|
||||
geo: {
|
||||
map: 'world',
|
||||
roam: false,
|
||||
itemStyle: {
|
||||
normal: {
|
||||
areaColor: '#000',
|
||||
borderType: null, // 设置边界线类型为无
|
||||
borderColor: '#000', // 设置边界线颜色
|
||||
|
||||
},
|
||||
emphasis: {
|
||||
areaColor: '#000',
|
||||
borderType: null, // 设置边界线类型为无
|
||||
borderColor: '#000', // 设置边界线颜色
|
||||
}
|
||||
},
|
||||
regions: [] // 先保留为空
|
||||
},
|
||||
series: [{
|
||||
// 散点效果
|
||||
type: 'scatter',
|
||||
coordinateSystem: 'geo', // 表示使用的坐标系为地理坐标系
|
||||
symbolSize: 5, // 设置散点的大小为20
|
||||
itemStyle: {
|
||||
color: '#ffeb3b', // 黄色
|
||||
},
|
||||
}],
|
||||
textStyle: {
|
||||
fontSize: 1
|
||||
}
|
||||
};
|
||||
```
|
Reference in New Issue
Block a user