irpas技术客

grafana中国地图插件_rihshu_grafana 中国地图

网络投稿 2535

github 地址:GitHub - xinggengchang/grafana-china-map-plugin: grafana 中国地图 egrafana-echarts-panel china-map

csdn上传图片一直上传失败,请去github阅读

感谢https://github.com/wuyi5630/grafana-echarts-panel?大哥的贡献。 此插件在大哥贡献的基础上做了修改: 1 支持高版本Grafana,目前支持7.5.4及以上,7以上版本也支持但是没亲试过。 2 修复了panel保存报错的问题。 3 ES Location Name Field支持geoip.region_name 英文key,ES geo_point Field 可以不填(wuyi5630贡献有一个bug是Average计算不对,所以针对bug做了修改)

Metrics?

Echarts chart type?

https://github.com/xinggengchang/grafana-china-map-plugin/blob/main/src/imgs/chart-type.png

?

Echarts option?

https://github.com/xinggengchang/grafana-china-map-plugin/blob/main/src/imgs/map_option.png

?

option = { title : { }, tooltip : { trigger: 'item' }, legend: { orient: 'vertical', left: 'left' }, visualMap: { min: 0, max: 2000, calculable: true, color: ['red','orange','yellow','lightgreen','green'] }, series : [ { type: 'map', mapType: 'china', hoverable: true, roam:true, itemStyle:{ normal:{label:{show:true}, areaColor: '#edf2f1'}, emphasis:{label:{show:true}, areaColor: '#06060f'} }, mapLocation: { y: "center", x: "center", height: "320" }, label: { normal: { show: true }, emphasis: { show: true } }, data: ctrl.data } ] };

效果图?

插件安装 将本实例clone到你的plugins目录后重新启动grafana服务即可


1.本站遵循行业规范,任何转载的稿件都会明确标注作者和来源;2.本站的原创文章,会注明原创字样,如未注明都非原创,如有侵权请联系删除!;3.作者投稿可能会经我们编辑修改或补充;4.本站不提供任何储存功能只提供收集或者投稿人的网盘链接。

标签: #grafana #中国地图 #GitHub #地址GitHub