kibana-123
Version:
Kibana is an open source (Apache Licensed), browser based analytics and search dashboard for Elasticsearch. Kibana is a snap to setup and start using. Kibana strives to be easy to get started with, while also being flexible and powerful, just like Elastic
100 lines (98 loc) • 1.96 kB
JavaScript
import _ from 'lodash';
module.exports = {
'rows': [
{
'label': '0.0-1000.0: bytes',
'xAxisLabel': 'Top 5 extension',
'yAxisLabel': 'Count of documents',
'series': [
{
'label': 'Count',
'values': [
{
'x': 'jpg',
'y': 3378
},
{
'x': 'css',
'y': 762
},
{
'x': 'png',
'y': 527
},
{
'x': 'gif',
'y': 11258
},
{
'x': 'php',
'y': 653
}
]
}
],
'xAxisFormatter': function (val) {
if (_.isObject(val)) {
return JSON.stringify(val);
}
else if (val == null) {
return '';
}
else {
return '' + val;
}
},
'tooltipFormatter': function (d) {
return d;
}
},
{
'label': '1000.0-2000.0: bytes',
'xAxisLabel': 'Top 5 extension',
'yAxisLabel': 'Count of documents',
'series': [
{
'label': 'Count',
'values': [
{
'x': 'jpg',
'y': 6422
},
{
'x': 'css',
'y': 1591
},
{
'x': 'png',
'y': 430
},
{
'x': 'gif',
'y': 8
},
{
'x': 'php',
'y': 561
}
]
}
],
'xAxisFormatter': function (val) {
if (_.isObject(val)) {
return JSON.stringify(val);
}
else if (val == null) {
return '';
}
else {
return '' + val;
}
},
'tooltipFormatter': function (d) {
return d;
}
}
],
'hits': 171458
};