UNPKG

kibana-with-account

Version:

kibana-with-account is develop based kibana project

30 lines (26 loc) 648 B
define(function (require) { return function PointSeriesFakeXAxis(Private) { var AggConfig = Private(require('ui/Vis/AggConfig')); var AggType = Private(require('ui/agg_types/AggType')); var allAgg = new AggType({ name: 'all', title: 'All docs', ordered: false, hasNoDsl: true }); return function makeFakeXAxis(vis) { var fake = new AggConfig(vis, { type: allAgg, schema: vis.type.schemas.all.byName.segment }); return { i: -1, agg: fake, col: { aggConfig: fake, label: fake.makeLabel() } }; }; }; });