UNPKG

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

31 lines (26 loc) 677 B
import VisAggConfigProvider from 'ui/vis/agg_config'; import AggTypesAggTypeProvider from 'ui/agg_types/agg_type'; export default function PointSeriesFakeXAxis(Private) { let AggConfig = Private(VisAggConfigProvider); let AggType = Private(AggTypesAggTypeProvider); let allAgg = new AggType({ name: 'all', title: 'All docs', ordered: false, hasNoDsl: true }); return function makeFakeXAxis(vis) { let fake = new AggConfig(vis, { type: allAgg, schema: vis.type.schemas.all.byName.segment }); return { i: -1, agg: fake, col: { aggConfig: fake, label: fake.makeLabel() } }; }; };