橡皮、老虎皮、狮子皮哪一个最不好?

Kibana 新的可视化插件:Vega

开源项目 | 作者 medcl | 发布于2017年07月18日 | | 阅读数:13227

Vega:
https://vega.github.io/vega/examples/
 
Vega是什么?
相比其他第三方可视化库,Vega的目的是让你更快将数据进行展现,vega通过声明的方式可以快速将你的数据进行各种格式化,而不用纠结于具体的调用细节,和SQL这种通用式交互语言类似,数据的输入是JSON。

Snip20170718_1.png

 
Vega的Kibana插件下载地址:
https://github.com/nyurik/kibana-vega-vis/releases
 
安装之后,就能在可视化类型里面选择Vega了,使用起来很简单,输入相应的描叙语言,如:
{
"$schema": "https://vega.github.io/schema/ ... ot%3B,
"description": "A simple bar chart with embedded data.",
"width": 300, "height": 200, "padding": 5,
"data": {
"values": [
{"a": "A","b": 28}, {"a": "B","b": 55}, {"a": "C","b": 43},
{"a": "D","b": 91}, {"a": "E","b": 81}, {"a": "F","b": 53},
{"a": "G","b": 19}, {"a": "H","b": 87}, {"a": "I","b": 52}
]
},
"mark": "bar",
"encoding": {
"x": {"field": "a", "type": "ordinal"},
"y": {"field": "b", "type": "quantitative"}
}
}
Vega支持各种可视化类型,更多详情请参照文档和例子:
https://vega.github.io/vega-li ... k-def
https://vega.github.io/vega/examples/
https://github.com/nyurik/kiba ... -demo

[尊重社区原创,转载请保留或注明出处]
本文地址:http://elasticsearch.cn/article/195


4 个评论

idatage@iZ2ze2q8du3j7164j0v6umZ:~/download$ sudo /usr/share/kibana/bin/kibana-plugin install file:///home/idatage/download/vega_vis-0.1.0.zip
Attempting to transfer from file:///home/idatage/download/vega_vis-0.1.0.zip
Transferring 19691537 bytes....................
Transfer complete
Retrieving metadata from plugin archive
Extracting plugin archive
Extraction complete
Plugin installation was unsuccessful due to error "Incorrect Kibana version in plugin [vega_vis]. Expected [5.4.0]; found [5.5.0]"


尴尬
Kibana换个版本吧,目前刚发布,只支持5.5.0
pqy

pqy 回复 medcl

kibana 换个版本。es 需要升级到 5.5.0吗,目前es 5.4.0
medcl

medcl 回复 pqy

需要

要回复文章请先登录注册