>;
+};
function createCoreSetupMock({
pluginStartDeps = {},
diff --git a/src/dev/build/tasks/build_kibana_platform_plugins.js b/src/dev/build/tasks/build_kibana_platform_plugins.js
index 79cd698e4782c8..28d6b49f9e89a8 100644
--- a/src/dev/build/tasks/build_kibana_platform_plugins.js
+++ b/src/dev/build/tasks/build_kibana_platform_plugins.js
@@ -17,7 +17,13 @@
* under the License.
*/
-import { runOptimizer, OptimizerConfig, logOptimizerState } from '@kbn/optimizer';
+import { CiStatsReporter } from '@kbn/dev-utils';
+import {
+ runOptimizer,
+ OptimizerConfig,
+ logOptimizerState,
+ reportOptimizerStats,
+} from '@kbn/optimizer';
export const BuildKibanaPlatformPluginsTask = {
description: 'Building distributable versions of Kibana platform plugins',
@@ -32,8 +38,14 @@ export const BuildKibanaPlatformPluginsTask = {
includeCoreBundle: true,
});
+ const reporter = CiStatsReporter.fromEnv(log);
+ const reportStatsName = build.isOss() ? 'oss distributable' : 'default distributable';
+
await runOptimizer(optimizerConfig)
- .pipe(logOptimizerState(log, optimizerConfig))
+ .pipe(
+ reportOptimizerStats(reporter, reportStatsName),
+ logOptimizerState(log, optimizerConfig)
+ )
.toPromise();
},
};
diff --git a/src/dev/build/tasks/os_packages/docker_generator/resources/bin/kibana-docker b/src/dev/build/tasks/os_packages/docker_generator/resources/bin/kibana-docker
index eb7a121c2e64b2..d1fb544de733c3 100755
--- a/src/dev/build/tasks/os_packages/docker_generator/resources/bin/kibana-docker
+++ b/src/dev/build/tasks/os_packages/docker_generator/resources/bin/kibana-docker
@@ -234,6 +234,7 @@ kibana_vars=(
xpack.security.session.idleTimeout
xpack.security.session.lifespan
xpack.security.loginAssistanceMessage
+ xpack.security.loginHelp
telemetry.allowChangingOptInStatus
telemetry.enabled
telemetry.optIn
diff --git a/src/dev/precommit_hook/casing_check_config.js b/src/dev/precommit_hook/casing_check_config.js
index fc95288eabed85..66296736b3ad04 100644
--- a/src/dev/precommit_hook/casing_check_config.js
+++ b/src/dev/precommit_hook/casing_check_config.js
@@ -117,7 +117,6 @@ export const TEMPORARILY_IGNORED_PATHS = [
'src/legacy/core_plugins/tile_map/public/__tests__/shadedCircleMarkers.png',
'src/legacy/core_plugins/tile_map/public/__tests__/shadedGeohashGrid.png',
'src/fixtures/config_upgrade_from_4.0.0_to_4.0.1-snapshot.json',
- 'src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/terms/_seriesMultiple.js',
'src/core/server/core_app/assets/favicons/android-chrome-192x192.png',
'src/core/server/core_app/assets/favicons/android-chrome-256x256.png',
'src/core/server/core_app/assets/favicons/android-chrome-512x512.png',
diff --git a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/_vis_fixture.js b/src/legacy/core_plugins/kibana/public/__tests__/vis_type_vislib/_vis_fixture.js
similarity index 82%
rename from src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/_vis_fixture.js
rename to src/legacy/core_plugins/kibana/public/__tests__/vis_type_vislib/_vis_fixture.js
index 05cea7addf560d..8a542fec0639c3 100644
--- a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/_vis_fixture.js
+++ b/src/legacy/core_plugins/kibana/public/__tests__/vis_type_vislib/_vis_fixture.js
@@ -20,13 +20,10 @@
import _ from 'lodash';
import $ from 'jquery';
-import { Vis } from '../../../vis';
+import { Vis } from '../../../../../../plugins/vis_type_vislib/public/vislib/vis';
// TODO: Remove when converted to jest mocks
-import {
- ColorsService,
- // eslint-disable-next-line @kbn/eslint/no-restricted-paths
-} from '../../../../../../../../plugins/charts/public/services';
+import { ColorsService } from '../../../../../../plugins/charts/public/services';
const $visCanvas = $('')
.attr('id', 'vislib-vis-fixtures')
@@ -72,17 +69,6 @@ const getDeps = () => {
};
};
-export const getMockUiState = () => {
- const map = new Map();
-
- return (() => ({
- get: (...args) => map.get(...args),
- set: (...args) => map.set(...args),
- setSilent: (...args) => map.set(...args),
- on: () => undefined,
- }))();
-};
-
export function getVis(visLibParams, element) {
return new Vis(
element || $visCanvas.new(),
diff --git a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/chart_title.js b/src/legacy/core_plugins/kibana/public/__tests__/vis_type_vislib/lib/chart_title.js
similarity index 91%
rename from src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/chart_title.js
rename to src/legacy/core_plugins/kibana/public/__tests__/vis_type_vislib/lib/chart_title.js
index b65571becd83c6..81fef155daf57e 100644
--- a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/chart_title.js
+++ b/src/legacy/core_plugins/kibana/public/__tests__/vis_type_vislib/lib/chart_title.js
@@ -21,9 +21,9 @@ import d3 from 'd3';
import _ from 'lodash';
import expect from '@kbn/expect';
-import { ChartTitle } from '../../lib/chart_title';
-import { VisConfig } from '../../lib/vis_config';
-import { getMockUiState } from './fixtures/_vis_fixture';
+import { ChartTitle } from '../../../../../../../plugins/vis_type_vislib/public/vislib/lib/chart_title';
+import { VisConfig } from '../../../../../../../plugins/vis_type_vislib/public/vislib/lib/vis_config';
+import { getMockUiState } from '../../../../../../../plugins/vis_type_vislib/public/fixtures/mocks';
describe('Vislib ChartTitle Class Test Suite', function() {
let mockUiState;
diff --git a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/dispatch.js b/src/legacy/core_plugins/kibana/public/__tests__/vis_type_vislib/lib/dispatch.js
similarity index 96%
rename from src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/dispatch.js
rename to src/legacy/core_plugins/kibana/public/__tests__/vis_type_vislib/lib/dispatch.js
index a5d8eb80419a11..eb4e109690c37f 100644
--- a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/dispatch.js
+++ b/src/legacy/core_plugins/kibana/public/__tests__/vis_type_vislib/lib/dispatch.js
@@ -22,9 +22,10 @@ import d3 from 'd3';
import expect from '@kbn/expect';
// Data
-import data from './fixtures/mock_data/date_histogram/_series';
+import data from '../../../../../../../plugins/vis_type_vislib/public/fixtures/mock_data/date_histogram/_series';
-import { getVis, getMockUiState } from './fixtures/_vis_fixture';
+import { getMockUiState } from '../../../../../../../plugins/vis_type_vislib/public/fixtures/mocks';
+import { getVis } from '../_vis_fixture';
describe('Vislib Dispatch Class Test Suite', function() {
function destroyVis(vis) {
diff --git a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/handler/handler.js b/src/legacy/core_plugins/kibana/public/__tests__/vis_type_vislib/lib/handler/handler.js
similarity index 86%
rename from src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/handler/handler.js
rename to src/legacy/core_plugins/kibana/public/__tests__/vis_type_vislib/lib/handler/handler.js
index 8e25015c101860..27f7f4ed3e0732 100644
--- a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/handler/handler.js
+++ b/src/legacy/core_plugins/kibana/public/__tests__/vis_type_vislib/lib/handler/handler.js
@@ -21,12 +21,12 @@ import expect from '@kbn/expect';
import $ from 'jquery';
// Data
-import series from '../fixtures/mock_data/date_histogram/_series';
-import columns from '../fixtures/mock_data/date_histogram/_columns';
-import rows from '../fixtures/mock_data/date_histogram/_rows';
-import stackedSeries from '../fixtures/mock_data/date_histogram/_stacked_series';
-
-import { getVis, getMockUiState } from '../fixtures/_vis_fixture';
+import series from '../../../../../../../../plugins/vis_type_vislib/public/fixtures/mock_data/date_histogram/_series';
+import columns from '../../../../../../../../plugins/vis_type_vislib/public/fixtures/mock_data/date_histogram/_columns';
+import rows from '../../../../../../../../plugins/vis_type_vislib/public/fixtures/mock_data/date_histogram/_rows';
+import stackedSeries from '../../../../../../../../plugins/vis_type_vislib/public/fixtures/mock_data/date_histogram/_stacked_series';
+import { getMockUiState } from '../../../../../../../../plugins/vis_type_vislib/public/fixtures/mocks';
+import { getVis } from '../../_vis_fixture';
const dateHistogramArray = [series, columns, rows, stackedSeries];
const names = ['series', 'columns', 'rows', 'stackedSeries'];
diff --git a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/layout/layout.js b/src/legacy/core_plugins/kibana/public/__tests__/vis_type_vislib/lib/layout/layout.js
similarity index 85%
rename from src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/layout/layout.js
rename to src/legacy/core_plugins/kibana/public/__tests__/vis_type_vislib/lib/layout/layout.js
index f72794e27e834a..505b0a04c61837 100644
--- a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/layout/layout.js
+++ b/src/legacy/core_plugins/kibana/public/__tests__/vis_type_vislib/lib/layout/layout.js
@@ -22,14 +22,14 @@ import expect from '@kbn/expect';
import $ from 'jquery';
// Data
-import series from '../fixtures/mock_data/date_histogram/_series';
-import columns from '../fixtures/mock_data/date_histogram/_columns';
-import rows from '../fixtures/mock_data/date_histogram/_rows';
-import stackedSeries from '../fixtures/mock_data/date_histogram/_stacked_series';
-
-import { Layout } from '../../../lib/layout/layout';
-import { getVis, getMockUiState } from '../fixtures/_vis_fixture';
-import { VisConfig } from '../../../lib/vis_config';
+import series from '../../../../../../../../plugins/vis_type_vislib/public/fixtures/mock_data/date_histogram/_series';
+import columns from '../../../../../../../../plugins/vis_type_vislib/public/fixtures/mock_data/date_histogram/_columns';
+import rows from '../../../../../../../../plugins/vis_type_vislib/public/fixtures/mock_data/date_histogram/_rows';
+import stackedSeries from '../../../../../../../../plugins/vis_type_vislib/public/fixtures/mock_data/date_histogram/_stacked_series';
+import { getMockUiState } from '../../../../../../../../plugins/vis_type_vislib/public/fixtures/mocks';
+import { Layout } from '../../../../../../../../plugins/vis_type_vislib/public/vislib/lib/layout/layout';
+import { VisConfig } from '../../../../../../../../plugins/vis_type_vislib/public/vislib/lib/vis_config';
+import { getVis } from '../../_vis_fixture';
const dateHistogramArray = [series, columns, rows, stackedSeries];
const names = ['series', 'columns', 'rows', 'stackedSeries'];
diff --git a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/vis.js b/src/legacy/core_plugins/kibana/public/__tests__/vis_type_vislib/vis.js
similarity index 92%
rename from src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/vis.js
rename to src/legacy/core_plugins/kibana/public/__tests__/vis_type_vislib/vis.js
index 4852f71d8c45b3..67f29ee96a3364 100644
--- a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/vis.js
+++ b/src/legacy/core_plugins/kibana/public/__tests__/vis_type_vislib/vis.js
@@ -21,11 +21,12 @@ import _ from 'lodash';
import $ from 'jquery';
import expect from '@kbn/expect';
-import series from './lib/fixtures/mock_data/date_histogram/_series';
-import columns from './lib/fixtures/mock_data/date_histogram/_columns';
-import rows from './lib/fixtures/mock_data/date_histogram/_rows';
-import stackedSeries from './lib/fixtures/mock_data/date_histogram/_stacked_series';
-import { getVis, getMockUiState } from './lib/fixtures/_vis_fixture';
+import series from '../../../../../../plugins/vis_type_vislib/public/fixtures/mock_data/date_histogram/_series';
+import columns from '../../../../../../plugins/vis_type_vislib/public/fixtures/mock_data/date_histogram/_columns';
+import rows from '../../../../../../plugins/vis_type_vislib/public/fixtures/mock_data/date_histogram/_rows';
+import stackedSeries from '../../../../../../plugins/vis_type_vislib/public/fixtures/mock_data/date_histogram/_stacked_series';
+import { getMockUiState } from '../../../../../../plugins/vis_type_vislib/public/fixtures/mocks';
+import { getVis } from './_vis_fixture';
const dataArray = [series, columns, rows, stackedSeries];
const names = ['series', 'columns', 'rows', 'stackedSeries'];
diff --git a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/visualizations/area_chart.js b/src/legacy/core_plugins/kibana/public/__tests__/vis_type_vislib/visualizations/area_chart.js
similarity index 89%
rename from src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/visualizations/area_chart.js
rename to src/legacy/core_plugins/kibana/public/__tests__/vis_type_vislib/visualizations/area_chart.js
index c3f5859eb454cc..eb529c380cdda4 100644
--- a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/visualizations/area_chart.js
+++ b/src/legacy/core_plugins/kibana/public/__tests__/vis_type_vislib/visualizations/area_chart.js
@@ -22,15 +22,16 @@ import _ from 'lodash';
import $ from 'jquery';
import expect from '@kbn/expect';
-import { getVis, getMockUiState } from '../lib/fixtures/_vis_fixture';
+import { getMockUiState } from '../../../../../../../plugins/vis_type_vislib/public/fixtures/mocks';
+import { getVis } from '../_vis_fixture';
const dataTypesArray = {
- 'series pos': require('../lib/fixtures/mock_data/date_histogram/_series'),
- 'series pos neg': require('../lib/fixtures/mock_data/date_histogram/_series_pos_neg'),
- 'series neg': require('../lib/fixtures/mock_data/date_histogram/_series_neg'),
- 'term columns': require('../lib/fixtures/mock_data/terms/_columns'),
- 'range rows': require('../lib/fixtures/mock_data/range/_rows'),
- stackedSeries: require('../lib/fixtures/mock_data/date_histogram/_stacked_series'),
+ 'series pos': require('../../../../../../../plugins/vis_type_vislib/public/fixtures/mock_data/date_histogram/_series'),
+ 'series pos neg': require('../../../../../../../plugins/vis_type_vislib/public/fixtures/mock_data/date_histogram/_series_pos_neg'),
+ 'series neg': require('../../../../../../../plugins/vis_type_vislib/public/fixtures/mock_data/date_histogram/_series_neg'),
+ 'term columns': require('../../../../../../../plugins/vis_type_vislib/public/fixtures/mock_data/terms/_columns'),
+ 'range rows': require('../../../../../../../plugins/vis_type_vislib/public/fixtures/mock_data/range/_rows'),
+ stackedSeries: require('../../../../../../../plugins/vis_type_vislib/public/fixtures/mock_data/date_histogram/_stacked_series'),
};
const visLibParams = {
diff --git a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/visualizations/chart.js b/src/legacy/core_plugins/kibana/public/__tests__/vis_type_vislib/visualizations/chart.js
similarity index 92%
rename from src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/visualizations/chart.js
rename to src/legacy/core_plugins/kibana/public/__tests__/vis_type_vislib/visualizations/chart.js
index 9653f9abab6fb8..4c5e3db3162430 100644
--- a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/visualizations/chart.js
+++ b/src/legacy/core_plugins/kibana/public/__tests__/vis_type_vislib/visualizations/chart.js
@@ -20,8 +20,9 @@
import d3 from 'd3';
import expect from '@kbn/expect';
-import { Chart } from '../../visualizations/_chart';
-import { getVis, getMockUiState } from '../lib/fixtures/_vis_fixture';
+import { Chart } from '../../../../../../../plugins/vis_type_vislib/public/vislib/visualizations/_chart';
+import { getMockUiState } from '../../../../../../../plugins/vis_type_vislib/public/fixtures/mocks';
+import { getVis } from '../_vis_fixture';
describe('Vislib _chart Test Suite', function() {
let vis;
diff --git a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/visualizations/column_chart.js b/src/legacy/core_plugins/kibana/public/__tests__/vis_type_vislib/visualizations/column_chart.js
similarity index 89%
rename from src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/visualizations/column_chart.js
rename to src/legacy/core_plugins/kibana/public/__tests__/vis_type_vislib/visualizations/column_chart.js
index 2216294fcbac11..5cbd5948bc477a 100644
--- a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/visualizations/column_chart.js
+++ b/src/legacy/core_plugins/kibana/public/__tests__/vis_type_vislib/visualizations/column_chart.js
@@ -23,17 +23,18 @@ import $ from 'jquery';
import expect from '@kbn/expect';
// Data
-import series from '../lib/fixtures/mock_data/date_histogram/_series';
-import seriesPosNeg from '../lib/fixtures/mock_data/date_histogram/_series_pos_neg';
-import seriesNeg from '../lib/fixtures/mock_data/date_histogram/_series_neg';
-import termsColumns from '../lib/fixtures/mock_data/terms/_columns';
-import histogramRows from '../lib/fixtures/mock_data/histogram/_rows';
-import stackedSeries from '../lib/fixtures/mock_data/date_histogram/_stacked_series';
-
-import { seriesMonthlyInterval } from '../lib/fixtures/mock_data/date_histogram/_series_monthly_interval';
-import { rowsSeriesWithHoles } from '../lib/fixtures/mock_data/date_histogram/_rows_series_with_holes';
-import rowsWithZeros from '../lib/fixtures/mock_data/date_histogram/_rows';
-import { getVis, getMockUiState } from '../lib/fixtures/_vis_fixture';
+import series from '../../../../../../../plugins/vis_type_vislib/public/fixtures/mock_data/date_histogram/_series';
+import seriesPosNeg from '../../../../../../../plugins/vis_type_vislib/public/fixtures/mock_data/date_histogram/_series_pos_neg';
+import seriesNeg from '../../../../../../../plugins/vis_type_vislib/public/fixtures/mock_data/date_histogram/_series_neg';
+import termsColumns from '../../../../../../../plugins/vis_type_vislib/public/fixtures/mock_data/terms/_columns';
+import histogramRows from '../../../../../../../plugins/vis_type_vislib/public/fixtures/mock_data/histogram/_rows';
+import stackedSeries from '../../../../../../../plugins/vis_type_vislib/public/fixtures/mock_data/date_histogram/_stacked_series';
+
+import { seriesMonthlyInterval } from '../../../../../../../plugins/vis_type_vislib/public/fixtures/mock_data/date_histogram/_series_monthly_interval';
+import { rowsSeriesWithHoles } from '../../../../../../../plugins/vis_type_vislib/public/fixtures/mock_data/date_histogram/_rows_series_with_holes';
+import rowsWithZeros from '../../../../../../../plugins/vis_type_vislib/public/fixtures/mock_data/date_histogram/_rows';
+import { getMockUiState } from '../../../../../../../plugins/vis_type_vislib/public/fixtures/mocks';
+import { getVis } from '../_vis_fixture';
// tuple, with the format [description, mode, data]
const dataTypesArray = [
diff --git a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/visualizations/gauge_chart.js b/src/legacy/core_plugins/kibana/public/__tests__/vis_type_vislib/visualizations/gauge_chart.js
similarity index 94%
rename from src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/visualizations/gauge_chart.js
rename to src/legacy/core_plugins/kibana/public/__tests__/vis_type_vislib/visualizations/gauge_chart.js
index fe25734fcbfde5..d8ce8f1f5f44bf 100644
--- a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/visualizations/gauge_chart.js
+++ b/src/legacy/core_plugins/kibana/public/__tests__/vis_type_vislib/visualizations/gauge_chart.js
@@ -21,8 +21,9 @@ import $ from 'jquery';
import _ from 'lodash';
import expect from '@kbn/expect';
-import data from '../lib/fixtures/mock_data/terms/_seriesMultiple';
-import { getVis, getMockUiState } from '../lib/fixtures/_vis_fixture';
+import data from '../../../../../../../plugins/vis_type_vislib/public/fixtures/mock_data/terms/_series_multiple';
+import { getMockUiState } from '../../../../../../../plugins/vis_type_vislib/public/fixtures/mocks';
+import { getVis } from '../_vis_fixture';
describe('Vislib Gauge Chart Test Suite', function() {
let vis;
diff --git a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/visualizations/heatmap_chart.js b/src/legacy/core_plugins/kibana/public/__tests__/vis_type_vislib/visualizations/heatmap_chart.js
similarity index 89%
rename from src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/visualizations/heatmap_chart.js
rename to src/legacy/core_plugins/kibana/public/__tests__/vis_type_vislib/visualizations/heatmap_chart.js
index f4c952be191deb..765b9118e68445 100644
--- a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/visualizations/heatmap_chart.js
+++ b/src/legacy/core_plugins/kibana/public/__tests__/vis_type_vislib/visualizations/heatmap_chart.js
@@ -23,13 +23,13 @@ import d3 from 'd3';
import expect from '@kbn/expect';
// Data
-import series from '../lib/fixtures/mock_data/date_histogram/_series';
-import seriesPosNeg from '../lib/fixtures/mock_data/date_histogram/_series_pos_neg';
-import seriesNeg from '../lib/fixtures/mock_data/date_histogram/_series_neg';
-import termsColumns from '../lib/fixtures/mock_data/terms/_columns';
-import stackedSeries from '../lib/fixtures/mock_data/date_histogram/_stacked_series';
-
-import { getVis, getMockUiState } from '../lib/fixtures/_vis_fixture';
+import series from '../../../../../../../plugins/vis_type_vislib/public/fixtures/mock_data/date_histogram/_series';
+import seriesPosNeg from '../../../../../../../plugins/vis_type_vislib/public/fixtures/mock_data/date_histogram/_series_pos_neg';
+import seriesNeg from '../../../../../../../plugins/vis_type_vislib/public/fixtures/mock_data/date_histogram/_series_neg';
+import termsColumns from '../../../../../../../plugins/vis_type_vislib/public/fixtures/mock_data/terms/_columns';
+import stackedSeries from '../../../../../../../plugins/vis_type_vislib/public/fixtures/mock_data/date_histogram/_stacked_series';
+import { getMockUiState } from '../../../../../../../plugins/vis_type_vislib/public/fixtures/mocks';
+import { getVis } from '../_vis_fixture';
// tuple, with the format [description, mode, data]
const dataTypesArray = [
diff --git a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/visualizations/line_chart.js b/src/legacy/core_plugins/kibana/public/__tests__/vis_type_vislib/visualizations/line_chart.js
similarity index 89%
rename from src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/visualizations/line_chart.js
rename to src/legacy/core_plugins/kibana/public/__tests__/vis_type_vislib/visualizations/line_chart.js
index 1269fe7bcf62e9..691417e968eedb 100644
--- a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/visualizations/line_chart.js
+++ b/src/legacy/core_plugins/kibana/public/__tests__/vis_type_vislib/visualizations/line_chart.js
@@ -23,14 +23,14 @@ import $ from 'jquery';
import _ from 'lodash';
// Data
-import seriesPos from '../lib/fixtures/mock_data/date_histogram/_series';
-import seriesPosNeg from '../lib/fixtures/mock_data/date_histogram/_series_pos_neg';
-import seriesNeg from '../lib/fixtures/mock_data/date_histogram/_series_neg';
-import histogramColumns from '../lib/fixtures/mock_data/histogram/_columns';
-import rangeRows from '../lib/fixtures/mock_data/range/_rows';
-import termSeries from '../lib/fixtures/mock_data/terms/_series';
-
-import { getVis, getMockUiState } from '../lib/fixtures/_vis_fixture';
+import seriesPos from '../../../../../../../plugins/vis_type_vislib/public/fixtures/mock_data/date_histogram/_series';
+import seriesPosNeg from '../../../../../../../plugins/vis_type_vislib/public/fixtures/mock_data/date_histogram/_series_pos_neg';
+import seriesNeg from '../../../../../../../plugins/vis_type_vislib/public/fixtures/mock_data/date_histogram/_series_neg';
+import histogramColumns from '../../../../../../../plugins/vis_type_vislib/public/fixtures/mock_data/histogram/_columns';
+import rangeRows from '../../../../../../../plugins/vis_type_vislib/public/fixtures/mock_data/range/_rows';
+import termSeries from '../../../../../../../plugins/vis_type_vislib/public/fixtures/mock_data/terms/_series';
+import { getMockUiState } from '../../../../../../../plugins/vis_type_vislib/public/fixtures/mocks';
+import { getVis } from '../_vis_fixture';
const dataTypes = [
['series pos', seriesPos],
diff --git a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/visualizations/pie_chart.js b/src/legacy/core_plugins/kibana/public/__tests__/vis_type_vislib/visualizations/pie_chart.js
similarity index 97%
rename from src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/visualizations/pie_chart.js
rename to src/legacy/core_plugins/kibana/public/__tests__/vis_type_vislib/visualizations/pie_chart.js
index caafb2c636271a..506ad2af85c34d 100644
--- a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/visualizations/pie_chart.js
+++ b/src/legacy/core_plugins/kibana/public/__tests__/vis_type_vislib/visualizations/pie_chart.js
@@ -22,7 +22,8 @@ import _ from 'lodash';
import $ from 'jquery';
import expect from '@kbn/expect';
-import { getVis, getMockUiState } from '../lib/fixtures/_vis_fixture';
+import { getMockUiState } from '../../../../../../../plugins/vis_type_vislib/public/fixtures/mocks';
+import { getVis } from '../_vis_fixture';
import { pieChartMockData } from './pie_chart_mock_data';
const names = ['rows', 'columns', 'slices'];
diff --git a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/visualizations/pie_chart_mock_data.js b/src/legacy/core_plugins/kibana/public/__tests__/vis_type_vislib/visualizations/pie_chart_mock_data.js
similarity index 100%
rename from src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/visualizations/pie_chart_mock_data.js
rename to src/legacy/core_plugins/kibana/public/__tests__/vis_type_vislib/visualizations/pie_chart_mock_data.js
diff --git a/src/legacy/core_plugins/kibana/public/index.scss b/src/legacy/core_plugins/kibana/public/index.scss
index d49c59970f521d..26805554370b96 100644
--- a/src/legacy/core_plugins/kibana/public/index.scss
+++ b/src/legacy/core_plugins/kibana/public/index.scss
@@ -7,16 +7,9 @@
// Public UI styles
@import 'src/legacy/ui/public/index';
-// vis_type_vislib UI styles
-@import 'src/legacy/core_plugins/vis_type_vislib/public/index';
-
// Discover styles
@import 'discover/index';
-// Visualization styles are imported here for running karma Browser tests
-// should be somehow included through the "visualizations" plugin initialization
-@import '../../../../plugins/visualizations/public/index';
-
// Has to come after visualize because of some
// bad cascading in the Editor layout
@import '../../../../plugins/maps_legacy/public/index';
diff --git a/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/edit_index_pattern/create_edit_field/create_edit_field.tsx b/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/edit_index_pattern/create_edit_field/create_edit_field.tsx
index 4839870f0f3c8a..564f115cf2c487 100644
--- a/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/edit_index_pattern/create_edit_field/create_edit_field.tsx
+++ b/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/edit_index_pattern/create_edit_field/create_edit_field.tsx
@@ -23,6 +23,7 @@ import { FieldEditor } from 'ui/field_editor';
import { EuiFlexGroup, EuiFlexItem } from '@elastic/eui';
import { i18n } from '@kbn/i18n';
+import { HttpStart, DocLinksStart } from 'src/core/public';
import { IndexHeader } from '../index_header';
import { IndexPattern, IndexPatternField } from '../../../../../../../../../plugins/data/public';
import { ChromeDocTitle, NotificationsStart } from '../../../../../../../../../core/public';
@@ -37,7 +38,8 @@ interface CreateEditFieldProps extends RouteComponentProps {
services: {
notifications: NotificationsStart;
docTitle: ChromeDocTitle;
- http: Function;
+ getHttpStart: () => HttpStart;
+ docLinksScriptedFields: DocLinksStart['links']['scriptedFields'];
};
}
@@ -68,16 +70,14 @@ export const CreateEditField = withRouter(
const url = `/management/kibana/index_patterns/${indexPattern.id}`;
- if (mode === 'edit') {
- if (!field) {
- const message = i18n.translate('kbn.management.editIndexPattern.scripted.noFieldLabel', {
- defaultMessage:
- "'{indexPatternTitle}' index pattern doesn't have a scripted field called '{fieldName}'",
- values: { indexPatternTitle: indexPattern.title, fieldName },
- });
- services.notifications.toasts.addWarning(message);
- history.push(url);
- }
+ if (mode === 'edit' && !field) {
+ const message = i18n.translate('kbn.management.editIndexPattern.scripted.noFieldLabel', {
+ defaultMessage:
+ "'{indexPatternTitle}' index pattern doesn't have a scripted field called '{fieldName}'",
+ values: { indexPatternTitle: indexPattern.title, fieldName },
+ });
+ services.notifications.toasts.addWarning(message);
+ history.push(url);
}
const docFieldName = field?.name || newFieldPlaceholder;
@@ -88,24 +88,29 @@ export const CreateEditField = withRouter(
history.push(`${url}?_a=(tab:${field?.scripted ? TAB_SCRIPTED_FIELDS : TAB_INDEXED_FIELDS})`);
};
- return (
-
-
-
-
-
-
-
-
- );
+ if (field) {
+ return (
+
+
+
+
+
+
+
+
+ );
+ } else {
+ return <>>;
+ }
}
);
diff --git a/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/edit_index_pattern/index.js b/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/edit_index_pattern/index.js
index e05aea3678fe20..e2f387c0291a7a 100644
--- a/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/edit_index_pattern/index.js
+++ b/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/edit_index_pattern/index.js
@@ -95,7 +95,7 @@ uiModules
// routes for create edit field. Will be removed after migartion all component to react.
const REACT_FIELD_EDITOR_ID = 'reactFieldEditor';
-const renderCreateEditField = ($scope, $route, getConfig, $http, fieldFormatEditors) => {
+const renderCreateEditField = ($scope, $route, getConfig, fieldFormatEditors) => {
$scope.$$postDigest(() => {
const node = document.getElementById(REACT_FIELD_EDITOR_ID);
if (!node) {
@@ -112,9 +112,10 @@ const renderCreateEditField = ($scope, $route, getConfig, $http, fieldFormatEdit
fieldFormatEditors={fieldFormatEditors}
getConfig={getConfig}
services={{
- http: $http,
+ getHttpStart: () => npStart.core.http,
notifications: npStart.core.notifications,
docTitle: npStart.core.chrome.docTitle,
+ docLinksScriptedFields: npStart.core.docLinks.links.scriptedFields,
}}
/>
@@ -162,11 +163,11 @@ uiRoutes
},
},
controllerAs: 'fieldSettings',
- controller: function FieldEditorPageController($scope, $route, $http, Private, config) {
+ controller: function FieldEditorPageController($scope, $route, Private, config) {
const getConfig = (...args) => config.get(...args);
const fieldFormatEditors = Private(RegistryFieldFormatEditorsProvider);
- renderCreateEditField($scope, $route, getConfig, $http, fieldFormatEditors);
+ renderCreateEditField($scope, $route, getConfig, fieldFormatEditors);
$scope.$on('$destroy', () => {
destroyCreateEditField();
diff --git a/src/legacy/core_plugins/tests_bundle/index.js b/src/legacy/core_plugins/tests_bundle/index.js
index e1966a9e8b2667..3348096c0e2f1e 100644
--- a/src/legacy/core_plugins/tests_bundle/index.js
+++ b/src/legacy/core_plugins/tests_bundle/index.js
@@ -18,6 +18,7 @@
*/
import { createReadStream } from 'fs';
+import { resolve } from 'path';
import globby from 'globby';
import MultiStream from 'multistream';
@@ -40,6 +41,7 @@ export default kibana => {
},
uiExports: {
+ styleSheetPaths: resolve(__dirname, 'public/index.scss'),
async __bundleProvider__(kbnServer) {
const modules = new Set();
diff --git a/src/legacy/core_plugins/tests_bundle/public/index.scss b/src/legacy/core_plugins/tests_bundle/public/index.scss
new file mode 100644
index 00000000000000..8020cef8d84927
--- /dev/null
+++ b/src/legacy/core_plugins/tests_bundle/public/index.scss
@@ -0,0 +1,6 @@
+@import 'src/legacy/ui/public/styles/styling_constants';
+
+// This file pulls some styles of NP plugins into the legacy test stylesheet
+// so they are available for karma browser tests.
+@import '../../../../plugins/vis_type_vislib/public/index';
+@import '../../../../plugins/visualizations/public/index';
diff --git a/src/legacy/core_plugins/vis_type_vislib/index.ts b/src/legacy/core_plugins/vis_type_vislib/index.ts
deleted file mode 100644
index da9476285a9b2e..00000000000000
--- a/src/legacy/core_plugins/vis_type_vislib/index.ts
+++ /dev/null
@@ -1,44 +0,0 @@
-/*
- * Licensed to Elasticsearch B.V. under one or more contributor
- * license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright
- * ownership. Elasticsearch B.V. licenses this file to you under
- * the Apache License, Version 2.0 (the "License"); you may
- * not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-import { resolve } from 'path';
-import { Legacy } from 'kibana';
-
-import { LegacyPluginApi, LegacyPluginInitializer } from '../../types';
-
-const visTypeVislibPluginInitializer: LegacyPluginInitializer = ({ Plugin }: LegacyPluginApi) =>
- new Plugin({
- id: 'vis_type_vislib',
- require: ['kibana', 'elasticsearch', 'interpreter'],
- publicDir: resolve(__dirname, 'public'),
- styleSheetPaths: resolve(__dirname, 'public/index.scss'),
- uiExports: {
- hacks: [resolve(__dirname, 'public/legacy')],
- injectDefaultVars: server => ({}),
- },
- init: (server: Legacy.Server) => ({}),
- config(Joi: any) {
- return Joi.object({
- enabled: Joi.boolean().default(true),
- }).default();
- },
- } as Legacy.PluginSpecOptions);
-
-// eslint-disable-next-line import/no-default-export
-export default visTypeVislibPluginInitializer;
diff --git a/src/legacy/core_plugins/vis_type_vislib/package.json b/src/legacy/core_plugins/vis_type_vislib/package.json
deleted file mode 100644
index e30a9e2b358342..00000000000000
--- a/src/legacy/core_plugins/vis_type_vislib/package.json
+++ /dev/null
@@ -1,4 +0,0 @@
-{
- "name": "vis_type_vislib",
- "version": "kibana"
-}
diff --git a/src/legacy/core_plugins/vis_type_vislib/public/legacy.ts b/src/legacy/core_plugins/vis_type_vislib/public/legacy.ts
deleted file mode 100644
index 579caa1cb88f67..00000000000000
--- a/src/legacy/core_plugins/vis_type_vislib/public/legacy.ts
+++ /dev/null
@@ -1,43 +0,0 @@
-/*
- * Licensed to Elasticsearch B.V. under one or more contributor
- * license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright
- * ownership. Elasticsearch B.V. licenses this file to you under
- * the Apache License, Version 2.0 (the "License"); you may
- * not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-import { npSetup, npStart } from 'ui/new_platform';
-import { PluginInitializerContext } from 'kibana/public';
-
-import { plugin } from '.';
-import {
- VisTypeVislibPluginSetupDependencies,
- VisTypeVislibPluginStartDependencies,
-} from './plugin';
-
-const setupPlugins: Readonly = {
- expressions: npSetup.plugins.expressions,
- visualizations: npSetup.plugins.visualizations,
- charts: npSetup.plugins.charts,
- visTypeXy: npSetup.plugins.visTypeXy,
-};
-
-const startPlugins: Readonly = {
- data: npStart.plugins.data,
-};
-
-const pluginInstance = plugin({} as PluginInitializerContext);
-
-export const setup = pluginInstance.setup(npSetup.core, setupPlugins);
-export const start = pluginInstance.start(npStart.core, startPlugins);
diff --git a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/date_histogram/_columns.js b/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/date_histogram/_columns.js
deleted file mode 100644
index b5b14c279b40e0..00000000000000
--- a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/date_histogram/_columns.js
+++ /dev/null
@@ -1,300 +0,0 @@
-import moment from 'moment';
-
-export default {
- 'columns': [
- {
- 'label': '200: response',
- 'xAxisLabel': '@timestamp per 30 sec',
- 'ordered': {
- 'date': true,
- 'interval': 30000,
- 'min': 1415826608440,
- 'max': 1415827508440
- },
- 'yAxisLabel': 'Count of documents',
- 'xAxisFormatter': function (thing) {
- return moment(thing);
- },
- 'tooltipFormatter': function (d) {
- return d;
- },
- 'series': [
- {
- 'label': 'Count',
- 'values': [
- {
- 'x': 1415826600000,
- 'y': 4
- },
- {
- 'x': 1415826630000,
- 'y': 8
- },
- {
- 'x': 1415826660000,
- 'y': 7
- },
- {
- 'x': 1415826690000,
- 'y': 5
- },
- {
- 'x': 1415826720000,
- 'y': 5
- },
- {
- 'x': 1415826750000,
- 'y': 4
- },
- {
- 'x': 1415826780000,
- 'y': 10
- },
- {
- 'x': 1415826810000,
- 'y': 7
- },
- {
- 'x': 1415826840000,
- 'y': 9
- },
- {
- 'x': 1415826870000,
- 'y': 8
- },
- {
- 'x': 1415826900000,
- 'y': 9
- },
- {
- 'x': 1415826930000,
- 'y': 8
- },
- {
- 'x': 1415826960000,
- 'y': 3
- },
- {
- 'x': 1415826990000,
- 'y': 9
- },
- {
- 'x': 1415827020000,
- 'y': 6
- },
- {
- 'x': 1415827050000,
- 'y': 8
- },
- {
- 'x': 1415827080000,
- 'y': 7
- },
- {
- 'x': 1415827110000,
- 'y': 4
- },
- {
- 'x': 1415827140000,
- 'y': 6
- },
- {
- 'x': 1415827170000,
- 'y': 10
- },
- {
- 'x': 1415827200000,
- 'y': 2
- },
- {
- 'x': 1415827230000,
- 'y': 8
- },
- {
- 'x': 1415827260000,
- 'y': 5
- },
- {
- 'x': 1415827290000,
- 'y': 6
- },
- {
- 'x': 1415827320000,
- 'y': 6
- },
- {
- 'x': 1415827350000,
- 'y': 10
- },
- {
- 'x': 1415827380000,
- 'y': 6
- },
- {
- 'x': 1415827410000,
- 'y': 6
- },
- {
- 'x': 1415827440000,
- 'y': 12
- },
- {
- 'x': 1415827470000,
- 'y': 9
- },
- {
- 'x': 1415827500000,
- 'y': 1
- }
- ]
- }
- ]
- },
- {
- 'label': '503: response',
- 'xAxisLabel': '@timestamp per 30 sec',
- 'ordered': {
- 'date': true,
- 'interval': 30000,
- 'min': 1415826608440,
- 'max': 1415827508440
- },
- 'yAxisLabel': 'Count of documents',
- 'xAxisFormatter': function (thing) {
- return moment(thing);
- },
- 'tooltipFormatter': function (d) {
- return d;
- },
- 'series': [
- {
- 'label': 'Count',
- 'values': [
- {
- 'x': 1415826630000,
- 'y': 1
- },
- {
- 'x': 1415826660000,
- 'y': 1
- },
- {
- 'x': 1415826720000,
- 'y': 1
- },
- {
- 'x': 1415826780000,
- 'y': 1
- },
- {
- 'x': 1415826900000,
- 'y': 1
- },
- {
- 'x': 1415827020000,
- 'y': 1
- },
- {
- 'x': 1415827080000,
- 'y': 1
- },
- {
- 'x': 1415827110000,
- 'y': 2
- }
- ]
- }
- ]
- },
- {
- 'label': '404: response',
- 'xAxisLabel': '@timestamp per 30 sec',
- 'ordered': {
- 'date': true,
- 'interval': 30000,
- 'min': 1415826608440,
- 'max': 1415827508440
- },
- 'yAxisLabel': 'Count of documents',
- 'xAxisFormatter': function (thing) {
- return moment(thing);
- },
- 'tooltipFormatter': function (d) {
- return d;
- },
- 'series': [
- {
- 'label': 'Count',
- 'values': [
- {
- 'x': 1415826660000,
- 'y': 1
- },
- {
- 'x': 1415826720000,
- 'y': 1
- },
- {
- 'x': 1415826810000,
- 'y': 1
- },
- {
- 'x': 1415826960000,
- 'y': 1
- },
- {
- 'x': 1415827050000,
- 'y': 1
- },
- {
- 'x': 1415827260000,
- 'y': 1
- },
- {
- 'x': 1415827380000,
- 'y': 1
- },
- {
- 'x': 1415827410000,
- 'y': 1
- }
- ]
- }
- ]
- }
- ],
- 'xAxisOrderedValues': [
- 1415826600000,
- 1415826630000,
- 1415826660000,
- 1415826690000,
- 1415826720000,
- 1415826750000,
- 1415826780000,
- 1415826810000,
- 1415826840000,
- 1415826870000,
- 1415826900000,
- 1415826930000,
- 1415826960000,
- 1415826990000,
- 1415827020000,
- 1415827050000,
- 1415827080000,
- 1415827110000,
- 1415827140000,
- 1415827170000,
- 1415827200000,
- 1415827230000,
- 1415827260000,
- 1415827290000,
- 1415827320000,
- 1415827350000,
- 1415827380000,
- 1415827410000,
- 1415827440000,
- 1415827470000,
- 1415827500000,
- ],
- 'hits': 225
-};
diff --git a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/date_histogram/_rows.js b/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/date_histogram/_rows.js
deleted file mode 100644
index 98609d8ffbcd3b..00000000000000
--- a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/date_histogram/_rows.js
+++ /dev/null
@@ -1,1678 +0,0 @@
-import moment from 'moment';
-
-export default {
- 'rows': [
- {
- 'label': '0.0-1000.0: bytes',
- 'xAxisLabel': '@timestamp per 30 sec',
- 'ordered': {
- 'date': true,
- 'interval': 30000,
- 'min': 1415826260456,
- 'max': 1415827160456
- },
- 'yAxisLabel': 'Count of documents',
- 'xAxisFormatter': function (thing) {
- return moment(thing);
- },
- 'tooltipFormatter': function (d) {
- return d;
- },
- 'series': [
- {
- 'label': 'jpg',
- 'values': [
- {
- 'x': 1415826240000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826270000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826300000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826330000,
- 'y': 1,
- 'y0': 0
- },
- {
- 'x': 1415826360000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826390000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826420000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826450000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826480000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826510000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826540000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826570000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826600000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826630000,
- 'y': 1,
- 'y0': 0
- },
- {
- 'x': 1415826660000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826690000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826720000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826750000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826780000,
- 'y': 1,
- 'y0': 0
- },
- {
- 'x': 1415826810000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826840000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826870000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826900000,
- 'y': 1,
- 'y0': 0
- },
- {
- 'x': 1415826930000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826960000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826990000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415827020000,
- 'y': 1,
- 'y0': 0
- },
- {
- 'x': 1415827050000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415827080000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415827110000,
- 'y': 1,
- 'y0': 0
- },
- {
- 'x': 1415827140000,
- 'y': 0,
- 'y0': 0
- }
- ]
- },
- {
- 'label': 'css',
- 'values': [
- {
- 'x': 1415826240000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826270000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826300000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826330000,
- 'y': 0,
- 'y0': 1
- },
- {
- 'x': 1415826360000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826390000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826420000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826450000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826480000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826510000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826540000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826570000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826600000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826630000,
- 'y': 0,
- 'y0': 1
- },
- {
- 'x': 1415826660000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826690000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826720000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826750000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826780000,
- 'y': 0,
- 'y0': 1
- },
- {
- 'x': 1415826810000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826840000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826870000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826900000,
- 'y': 0,
- 'y0': 1
- },
- {
- 'x': 1415826930000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826960000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826990000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415827020000,
- 'y': 0,
- 'y0': 1
- },
- {
- 'x': 1415827050000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415827080000,
- 'y': 1,
- 'y0': 0
- },
- {
- 'x': 1415827110000,
- 'y': 0,
- 'y0': 1
- },
- {
- 'x': 1415827140000,
- 'y': 0,
- 'y0': 0
- }
- ]
- },
- {
- 'label': 'png',
- 'values': [
- {
- 'x': 1415826240000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826270000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826300000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826330000,
- 'y': 0,
- 'y0': 1
- },
- {
- 'x': 1415826360000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826390000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826420000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826450000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826480000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826510000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826540000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826570000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826600000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826630000,
- 'y': 0,
- 'y0': 1
- },
- {
- 'x': 1415826660000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826690000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826720000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826750000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826780000,
- 'y': 0,
- 'y0': 1
- },
- {
- 'x': 1415826810000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826840000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826870000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826900000,
- 'y': 0,
- 'y0': 1
- },
- {
- 'x': 1415826930000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826960000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826990000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415827020000,
- 'y': 0,
- 'y0': 1
- },
- {
- 'x': 1415827050000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415827080000,
- 'y': 0,
- 'y0': 1
- },
- {
- 'x': 1415827110000,
- 'y': 1,
- 'y0': 1
- },
- {
- 'x': 1415827140000,
- 'y': 0,
- 'y0': 0
- }
- ]
- },
- {
- 'label': 'php',
- 'values': [
- {
- 'x': 1415826240000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826270000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826300000,
- 'y': 1,
- 'y0': 0
- },
- {
- 'x': 1415826330000,
- 'y': 0,
- 'y0': 1
- },
- {
- 'x': 1415826360000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826390000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826420000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826450000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826480000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826510000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826540000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826570000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826600000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826630000,
- 'y': 0,
- 'y0': 1
- },
- {
- 'x': 1415826660000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826690000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826720000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826750000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826780000,
- 'y': 0,
- 'y0': 1
- },
- {
- 'x': 1415826810000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826840000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826870000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826900000,
- 'y': 0,
- 'y0': 1
- },
- {
- 'x': 1415826930000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826960000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826990000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415827020000,
- 'y': 0,
- 'y0': 1
- },
- {
- 'x': 1415827050000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415827080000,
- 'y': 0,
- 'y0': 1
- },
- {
- 'x': 1415827110000,
- 'y': 0,
- 'y0': 2
- },
- {
- 'x': 1415827140000,
- 'y': 0,
- 'y0': 0
- }
- ]
- },
- {
- 'label': 'gif',
- 'values': [
- {
- 'x': 1415826240000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826270000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826300000,
- 'y': 0,
- 'y0': 1
- },
- {
- 'x': 1415826330000,
- 'y': 0,
- 'y0': 1
- },
- {
- 'x': 1415826360000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826390000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826420000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826450000,
- 'y': 1,
- 'y0': 0
- },
- {
- 'x': 1415826480000,
- 'y': 1,
- 'y0': 0
- },
- {
- 'x': 1415826510000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826540000,
- 'y': 3,
- 'y0': 0
- },
- {
- 'x': 1415826570000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826600000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826630000,
- 'y': 0,
- 'y0': 1
- },
- {
- 'x': 1415826660000,
- 'y': 1,
- 'y0': 0
- },
- {
- 'x': 1415826690000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826720000,
- 'y': 1,
- 'y0': 0
- },
- {
- 'x': 1415826750000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826780000,
- 'y': 1,
- 'y0': 1
- },
- {
- 'x': 1415826810000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826840000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826870000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826900000,
- 'y': 0,
- 'y0': 1
- },
- {
- 'x': 1415826930000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826960000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826990000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415827020000,
- 'y': 0,
- 'y0': 1
- },
- {
- 'x': 1415827050000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415827080000,
- 'y': 1,
- 'y0': 1
- },
- {
- 'x': 1415827110000,
- 'y': 1,
- 'y0': 2
- },
- {
- 'x': 1415827140000,
- 'y': 0,
- 'y0': 0
- }
- ]
- }
- ]
- },
- {
- 'label': '1000.0-2000.0: bytes',
- 'xAxisLabel': '@timestamp per 30 sec',
- 'ordered': {
- 'date': true,
- 'interval': 30000,
- 'min': 1415826260457,
- 'max': 1415827160457
- },
- 'yAxisLabel': 'Count of documents',
- 'xAxisFormatter': function (thing) {
- return moment(thing);
- },
- 'tooltipFormatter': function (d) {
- return d;
- },
- 'series': [
- {
- 'label': 'jpg',
- 'values': [
- {
- 'x': 1415826240000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826270000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826300000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826330000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826360000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826390000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826420000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826450000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826480000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826510000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826540000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826570000,
- 'y': 1,
- 'y0': 0
- },
- {
- 'x': 1415826600000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826630000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826660000,
- 'y': 1,
- 'y0': 0
- },
- {
- 'x': 1415826690000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826720000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826750000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826780000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826810000,
- 'y': 2,
- 'y0': 0
- },
- {
- 'x': 1415826840000,
- 'y': 1,
- 'y0': 0
- },
- {
- 'x': 1415826870000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826900000,
- 'y': 1,
- 'y0': 0
- },
- {
- 'x': 1415826930000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826960000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826990000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415827020000,
- 'y': 1,
- 'y0': 0
- },
- {
- 'x': 1415827050000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415827080000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415827110000,
- 'y': 1,
- 'y0': 0
- },
- {
- 'x': 1415827140000,
- 'y': 0,
- 'y0': 0
- }
- ]
- },
- {
- 'label': 'css',
- 'values': [
- {
- 'x': 1415826240000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826270000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826300000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826330000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826360000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826390000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826420000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826450000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826480000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826510000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826540000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826570000,
- 'y': 0,
- 'y0': 1
- },
- {
- 'x': 1415826600000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826630000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826660000,
- 'y': 0,
- 'y0': 1
- },
- {
- 'x': 1415826690000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826720000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826750000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826780000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826810000,
- 'y': 0,
- 'y0': 2
- },
- {
- 'x': 1415826840000,
- 'y': 0,
- 'y0': 1
- },
- {
- 'x': 1415826870000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826900000,
- 'y': 0,
- 'y0': 1
- },
- {
- 'x': 1415826930000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826960000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826990000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415827020000,
- 'y': 0,
- 'y0': 1
- },
- {
- 'x': 1415827050000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415827080000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415827110000,
- 'y': 0,
- 'y0': 1
- },
- {
- 'x': 1415827140000,
- 'y': 0,
- 'y0': 0
- }
- ]
- },
- {
- 'label': 'png',
- 'values': [
- {
- 'x': 1415826240000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826270000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826300000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826330000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826360000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826390000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826420000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826450000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826480000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826510000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826540000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826570000,
- 'y': 0,
- 'y0': 1
- },
- {
- 'x': 1415826600000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826630000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826660000,
- 'y': 0,
- 'y0': 1
- },
- {
- 'x': 1415826690000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826720000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826750000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826780000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826810000,
- 'y': 0,
- 'y0': 2
- },
- {
- 'x': 1415826840000,
- 'y': 0,
- 'y0': 1
- },
- {
- 'x': 1415826870000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826900000,
- 'y': 0,
- 'y0': 1
- },
- {
- 'x': 1415826930000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826960000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826990000,
- 'y': 1,
- 'y0': 0
- },
- {
- 'x': 1415827020000,
- 'y': 0,
- 'y0': 1
- },
- {
- 'x': 1415827050000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415827080000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415827110000,
- 'y': 0,
- 'y0': 1
- },
- {
- 'x': 1415827140000,
- 'y': 0,
- 'y0': 0
- }
- ]
- },
- {
- 'label': 'php',
- 'values': [
- {
- 'x': 1415826240000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826270000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826300000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826330000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826360000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826390000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826420000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826450000,
- 'y': 1,
- 'y0': 0
- },
- {
- 'x': 1415826480000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826510000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826540000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826570000,
- 'y': 0,
- 'y0': 1
- },
- {
- 'x': 1415826600000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826630000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826660000,
- 'y': 0,
- 'y0': 1
- },
- {
- 'x': 1415826690000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826720000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826750000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826780000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826810000,
- 'y': 0,
- 'y0': 2
- },
- {
- 'x': 1415826840000,
- 'y': 0,
- 'y0': 1
- },
- {
- 'x': 1415826870000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826900000,
- 'y': 0,
- 'y0': 1
- },
- {
- 'x': 1415826930000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826960000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826990000,
- 'y': 0,
- 'y0': 1
- },
- {
- 'x': 1415827020000,
- 'y': 0,
- 'y0': 1
- },
- {
- 'x': 1415827050000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415827080000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415827110000,
- 'y': 0,
- 'y0': 1
- },
- {
- 'x': 1415827140000,
- 'y': 0,
- 'y0': 0
- }
- ]
- },
- {
- 'label': 'gif',
- 'values': [
- {
- 'x': 1415826240000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826270000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826300000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826330000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826360000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826390000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826420000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826450000,
- 'y': 0,
- 'y0': 1
- },
- {
- 'x': 1415826480000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826510000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826540000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826570000,
- 'y': 0,
- 'y0': 1
- },
- {
- 'x': 1415826600000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826630000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826660000,
- 'y': 0,
- 'y0': 1
- },
- {
- 'x': 1415826690000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826720000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826750000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826780000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826810000,
- 'y': 0,
- 'y0': 2
- },
- {
- 'x': 1415826840000,
- 'y': 0,
- 'y0': 1
- },
- {
- 'x': 1415826870000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826900000,
- 'y': 0,
- 'y0': 1
- },
- {
- 'x': 1415826930000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826960000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415826990000,
- 'y': 0,
- 'y0': 1
- },
- {
- 'x': 1415827020000,
- 'y': 0,
- 'y0': 1
- },
- {
- 'x': 1415827050000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415827080000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 1415827110000,
- 'y': 0,
- 'y0': 1
- },
- {
- 'x': 1415827140000,
- 'y': 0,
- 'y0': 0
- }
- ]
- }
- ]
- }
- ],
- 'xAxisOrderedValues': [
- 1415826240000,
- 1415826270000,
- 1415826300000,
- 1415826330000,
- 1415826360000,
- 1415826390000,
- 1415826420000,
- 1415826450000,
- 1415826480000,
- 1415826510000,
- 1415826540000,
- 1415826570000,
- 1415826600000,
- 1415826630000,
- 1415826660000,
- 1415826690000,
- 1415826720000,
- 1415826750000,
- 1415826780000,
- 1415826810000,
- 1415826840000,
- 1415826870000,
- 1415826900000,
- 1415826930000,
- 1415826960000,
- 1415826990000,
- 1415827020000,
- 1415827050000,
- 1415827080000,
- 1415827110000,
- 1415827140000,
- ],
- 'hits': 236
-};
diff --git a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/date_histogram/_rows_series_with_holes.js b/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/date_histogram/_rows_series_with_holes.js
deleted file mode 100644
index 4ca631c7fc4972..00000000000000
--- a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/date_histogram/_rows_series_with_holes.js
+++ /dev/null
@@ -1,123 +0,0 @@
-import moment from 'moment';
-
-export const rowsSeriesWithHoles = {
- rows: [
- {
- 'label': '',
- 'xAxisLabel': '@timestamp per 30 sec',
- 'ordered': {
- 'date': true,
- 'min': 1411761457636,
- 'max': 1411762357636,
- 'interval': 30000
- },
- 'yAxisLabel': 'Count of documents',
- 'series': [
- {
- 'label': 'Count',
- 'values': [
- {
- 'x': 1411761450000,
- 'y': 41
- },
- {
- 'x': 1411761510000,
- 'y': 22
- },
- {
- 'x': 1411761540000,
- 'y': 17
- },
- {
- 'x': 1411761840000,
- 'y': 20
- },
- {
- 'x': 1411761870000,
- 'y': 20
- },
- {
- 'x': 1411761900000,
- 'y': 21
- },
- {
- 'x': 1411761930000,
- 'y': 17
- },
- {
- 'x': 1411761960000,
- 'y': 20
- },
- {
- 'x': 1411761990000,
- 'y': 13
- },
- {
- 'x': 1411762020000,
- 'y': 14
- },
- {
- 'x': 1411762050000,
- 'y': 25
- },
- {
- 'x': 1411762080000,
- 'y': 17
- },
- {
- 'x': 1411762110000,
- 'y': 14
- },
- {
- 'x': 1411762140000,
- 'y': 22
- },
- {
- 'x': 1411762170000,
- 'y': 14
- },
- {
- 'x': 1411762200000,
- 'y': 19
- },
- {
- 'x': 1411762320000,
- 'y': 15
- },
- {
- 'x': 1411762350000,
- 'y': 4
- }
- ]
- }
- ],
- 'hits': 533,
- 'xAxisFormatter': function (thing) {
- return moment(thing);
- },
- 'tooltipFormatter': function (d) {
- return d;
- }
- }
- ],
- 'xAxisOrderedValues': [
- 1411761450000,
- 1411761510000,
- 1411761540000,
- 1411761840000,
- 1411761870000,
- 1411761900000,
- 1411761930000,
- 1411761960000,
- 1411761990000,
- 1411762020000,
- 1411762050000,
- 1411762080000,
- 1411762110000,
- 1411762140000,
- 1411762170000,
- 1411762200000,
- 1411762320000,
- 1411762350000,
- ],
-};
diff --git a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/date_histogram/_series.js b/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/date_histogram/_series.js
deleted file mode 100644
index 13e2ab7b7fb1ac..00000000000000
--- a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/date_histogram/_series.js
+++ /dev/null
@@ -1,184 +0,0 @@
-import moment from 'moment';
-
-export default {
- 'label': '',
- 'xAxisLabel': '@timestamp per 30 sec',
- 'ordered': {
- 'date': true,
- 'min': 1411761457636,
- 'max': 1411762357636,
- 'interval': 30000
- },
- 'yAxisLabel': 'Count of documents',
- 'series': [
- {
- 'label': 'Count',
- 'values': [
- {
- 'x': 1411761450000,
- 'y': 41
- },
- {
- 'x': 1411761480000,
- 'y': 18
- },
- {
- 'x': 1411761510000,
- 'y': 22
- },
- {
- 'x': 1411761540000,
- 'y': 17
- },
- {
- 'x': 1411761570000,
- 'y': 17
- },
- {
- 'x': 1411761600000,
- 'y': 21
- },
- {
- 'x': 1411761630000,
- 'y': 16
- },
- {
- 'x': 1411761660000,
- 'y': 17
- },
- {
- 'x': 1411761690000,
- 'y': 15
- },
- {
- 'x': 1411761720000,
- 'y': 19
- },
- {
- 'x': 1411761750000,
- 'y': 11
- },
- {
- 'x': 1411761780000,
- 'y': 13
- },
- {
- 'x': 1411761810000,
- 'y': 24
- },
- {
- 'x': 1411761840000,
- 'y': 20
- },
- {
- 'x': 1411761870000,
- 'y': 20
- },
- {
- 'x': 1411761900000,
- 'y': 21
- },
- {
- 'x': 1411761930000,
- 'y': 17
- },
- {
- 'x': 1411761960000,
- 'y': 20
- },
- {
- 'x': 1411761990000,
- 'y': 13
- },
- {
- 'x': 1411762020000,
- 'y': 14
- },
- {
- 'x': 1411762050000,
- 'y': 25
- },
- {
- 'x': 1411762080000,
- 'y': 17
- },
- {
- 'x': 1411762110000,
- 'y': 14
- },
- {
- 'x': 1411762140000,
- 'y': 22
- },
- {
- 'x': 1411762170000,
- 'y': 14
- },
- {
- 'x': 1411762200000,
- 'y': 19
- },
- {
- 'x': 1411762230000,
- 'y': 22
- },
- {
- 'x': 1411762260000,
- 'y': 17
- },
- {
- 'x': 1411762290000,
- 'y': 8
- },
- {
- 'x': 1411762320000,
- 'y': 15
- },
- {
- 'x': 1411762350000,
- 'y': 4
- }
- ]
- }
- ],
- 'hits': 533,
- 'xAxisOrderedValues': [
- 1411761450000,
- 1411761480000,
- 1411761510000,
- 1411761540000,
- 1411761570000,
- 1411761600000,
- 1411761630000,
- 1411761660000,
- 1411761690000,
- 1411761720000,
- 1411761750000,
- 1411761780000,
- 1411761810000,
- 1411761840000,
- 1411761870000,
- 1411761900000,
- 1411761930000,
- 1411761960000,
- 1411761990000,
- 1411762020000,
- 1411762050000,
- 1411762080000,
- 1411762110000,
- 1411762140000,
- 1411762170000,
- 1411762200000,
- 1411762230000,
- 1411762260000,
- 1411762290000,
- 1411762320000,
- 1411762350000,
- ],
- 'xAxisFormatter': function (thing) {
- return moment(thing);
- },
- 'tooltipFormatter': function (d) {
- return d;
- }
-};
diff --git a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/date_histogram/_series_monthly_interval.js b/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/date_histogram/_series_monthly_interval.js
deleted file mode 100644
index 6b7c574ab55511..00000000000000
--- a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/date_histogram/_series_monthly_interval.js
+++ /dev/null
@@ -1,89 +0,0 @@
-import moment from 'moment';
-
-export const seriesMonthlyInterval = {
- 'label': '',
- 'xAxisLabel': '@timestamp per month',
- 'ordered': {
- 'date': true,
- 'min': 1451631600000,
- 'max': 1483254000000,
- 'interval': 2678000000
- },
- 'yAxisLabel': 'Count of documents',
- 'series': [
- {
- 'label': 'Count',
- 'values': [
- {
- 'x': 1451631600000,
- 'y': 10220
- },
- {
- 'x': 1454310000000,
- 'y': 9997,
- },
- {
- 'x': 1456815600000,
- 'y': 10792,
- },
- {
- 'x': 1459490400000,
- 'y': 10262
- },
- {
- 'x': 1462082400000,
- 'y': 10080
- },
- {
- 'x': 1464760800000,
- 'y': 11161
- },
- {
- 'x': 1467352800000,
- 'y': 9933
- },
- {
- 'x': 1470031200000,
- 'y': 10342
- },
- {
- 'x': 1472709600000,
- 'y': 10887
- },
- {
- 'x': 1475301600000,
- 'y': 9666
- },
- {
- 'x': 1477980000000,
- 'y': 9556
- },
- {
- 'x': 1480575600000,
- 'y': 11644
- }
- ]
- }
- ],
- 'hits': 533,
- 'xAxisOrderedValues': [
- 1451631600000,
- 1454310000000,
- 1456815600000,
- 1459490400000,
- 1462082400000,
- 1464760800000,
- 1467352800000,
- 1470031200000,
- 1472709600000,
- 1475301600000,
- 1477980000000,
- 1480575600000,
- ],
- 'xAxisFormatter': function (thing) {
- return moment(thing);
- },
- 'tooltipFormatter': function (d) {
- return d;
- }
-};
diff --git a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/date_histogram/_series_neg.js b/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/date_histogram/_series_neg.js
deleted file mode 100644
index ff5cd05b2f2d49..00000000000000
--- a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/date_histogram/_series_neg.js
+++ /dev/null
@@ -1,184 +0,0 @@
-import moment from 'moment';
-
-export default {
- 'label': '',
- 'xAxisLabel': '@timestamp per 30 sec',
- 'ordered': {
- 'date': true,
- 'min': 1411761457636,
- 'max': 1411762357636,
- 'interval': 30000
- },
- 'yAxisLabel': 'Count of documents',
- 'series': [
- {
- 'label': 'Count',
- 'values': [
- {
- 'x': 1411761450000,
- 'y': -41
- },
- {
- 'x': 1411761480000,
- 'y': -18
- },
- {
- 'x': 1411761510000,
- 'y': -22
- },
- {
- 'x': 1411761540000,
- 'y': -17
- },
- {
- 'x': 1411761570000,
- 'y': -17
- },
- {
- 'x': 1411761600000,
- 'y': -21
- },
- {
- 'x': 1411761630000,
- 'y': -16
- },
- {
- 'x': 1411761660000,
- 'y': -17
- },
- {
- 'x': 1411761690000,
- 'y': -15
- },
- {
- 'x': 1411761720000,
- 'y': -19
- },
- {
- 'x': 1411761750000,
- 'y': -11
- },
- {
- 'x': 1411761780000,
- 'y': -13
- },
- {
- 'x': 1411761810000,
- 'y': -24
- },
- {
- 'x': 1411761840000,
- 'y': -20
- },
- {
- 'x': 1411761870000,
- 'y': -20
- },
- {
- 'x': 1411761900000,
- 'y': -21
- },
- {
- 'x': 1411761930000,
- 'y': -17
- },
- {
- 'x': 1411761960000,
- 'y': -20
- },
- {
- 'x': 1411761990000,
- 'y': -13
- },
- {
- 'x': 1411762020000,
- 'y': -14
- },
- {
- 'x': 1411762050000,
- 'y': -25
- },
- {
- 'x': 1411762080000,
- 'y': -17
- },
- {
- 'x': 1411762110000,
- 'y': -14
- },
- {
- 'x': 1411762140000,
- 'y': -22
- },
- {
- 'x': 1411762170000,
- 'y': -14
- },
- {
- 'x': 1411762200000,
- 'y': -19
- },
- {
- 'x': 1411762230000,
- 'y': -22
- },
- {
- 'x': 1411762260000,
- 'y': -17
- },
- {
- 'x': 1411762290000,
- 'y': -8
- },
- {
- 'x': 1411762320000,
- 'y': -15
- },
- {
- 'x': 1411762350000,
- 'y': -4
- }
- ]
- }
- ],
- 'hits': 533,
- 'xAxisOrderedValues': [
- 1411761450000,
- 1411761480000,
- 1411761510000,
- 1411761540000,
- 1411761570000,
- 1411761600000,
- 1411761630000,
- 1411761660000,
- 1411761690000,
- 1411761720000,
- 1411761750000,
- 1411761780000,
- 1411761810000,
- 1411761840000,
- 1411761870000,
- 1411761900000,
- 1411761930000,
- 1411761960000,
- 1411761990000,
- 1411762020000,
- 1411762050000,
- 1411762080000,
- 1411762110000,
- 1411762140000,
- 1411762170000,
- 1411762200000,
- 1411762230000,
- 1411762260000,
- 1411762290000,
- 1411762320000,
- 1411762350000,
- ],
- 'xAxisFormatter': function (thing) {
- return moment(thing);
- },
- 'tooltipFormatter': function (d) {
- return d;
- }
-};
diff --git a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/date_histogram/_series_pos_neg.js b/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/date_histogram/_series_pos_neg.js
deleted file mode 100644
index 06d9b31dc6b578..00000000000000
--- a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/date_histogram/_series_pos_neg.js
+++ /dev/null
@@ -1,184 +0,0 @@
-import moment from 'moment';
-
-export default {
- 'label': '',
- 'xAxisLabel': '@timestamp per 30 sec',
- 'ordered': {
- 'date': true,
- 'min': 1411761457636,
- 'max': 1411762357636,
- 'interval': 30000
- },
- 'yAxisLabel': 'Count of documents',
- 'series': [
- {
- 'label': 'Count',
- 'values': [
- {
- 'x': 1411761450000,
- 'y': 41
- },
- {
- 'x': 1411761480000,
- 'y': 18
- },
- {
- 'x': 1411761510000,
- 'y': -22
- },
- {
- 'x': 1411761540000,
- 'y': -17
- },
- {
- 'x': 1411761570000,
- 'y': -17
- },
- {
- 'x': 1411761600000,
- 'y': -21
- },
- {
- 'x': 1411761630000,
- 'y': -16
- },
- {
- 'x': 1411761660000,
- 'y': 17
- },
- {
- 'x': 1411761690000,
- 'y': 15
- },
- {
- 'x': 1411761720000,
- 'y': 19
- },
- {
- 'x': 1411761750000,
- 'y': 11
- },
- {
- 'x': 1411761780000,
- 'y': -13
- },
- {
- 'x': 1411761810000,
- 'y': -24
- },
- {
- 'x': 1411761840000,
- 'y': -20
- },
- {
- 'x': 1411761870000,
- 'y': -20
- },
- {
- 'x': 1411761900000,
- 'y': -21
- },
- {
- 'x': 1411761930000,
- 'y': 17
- },
- {
- 'x': 1411761960000,
- 'y': 20
- },
- {
- 'x': 1411761990000,
- 'y': -13
- },
- {
- 'x': 1411762020000,
- 'y': -14
- },
- {
- 'x': 1411762050000,
- 'y': 25
- },
- {
- 'x': 1411762080000,
- 'y': -17
- },
- {
- 'x': 1411762110000,
- 'y': -14
- },
- {
- 'x': 1411762140000,
- 'y': -22
- },
- {
- 'x': 1411762170000,
- 'y': -14
- },
- {
- 'x': 1411762200000,
- 'y': 19
- },
- {
- 'x': 1411762230000,
- 'y': 22
- },
- {
- 'x': 1411762260000,
- 'y': 17
- },
- {
- 'x': 1411762290000,
- 'y': 8
- },
- {
- 'x': 1411762320000,
- 'y': -15
- },
- {
- 'x': 1411762350000,
- 'y': -4
- }
- ]
- }
- ],
- 'hits': 533,
- 'xAxisOrderedValues': [
- 1411761450000,
- 1411761480000,
- 1411761510000,
- 1411761540000,
- 1411761570000,
- 1411761600000,
- 1411761630000,
- 1411761660000,
- 1411761690000,
- 1411761720000,
- 1411761750000,
- 1411761780000,
- 1411761810000,
- 1411761840000,
- 1411761870000,
- 1411761900000,
- 1411761930000,
- 1411761960000,
- 1411761990000,
- 1411762020000,
- 1411762050000,
- 1411762080000,
- 1411762110000,
- 1411762140000,
- 1411762170000,
- 1411762200000,
- 1411762230000,
- 1411762260000,
- 1411762290000,
- 1411762320000,
- 1411762350000,
- ],
- 'xAxisFormatter': function (thing) {
- return moment(thing);
- },
- 'tooltipFormatter': function (d) {
- return d;
- }
-};
diff --git a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/date_histogram/_stacked_series.js b/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/date_histogram/_stacked_series.js
deleted file mode 100644
index 5208c7e996cd87..00000000000000
--- a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/date_histogram/_stacked_series.js
+++ /dev/null
@@ -1,1557 +0,0 @@
-import moment from 'moment';
-
-export default {
- 'label': '',
- 'xAxisLabel': '@timestamp per 10 min',
- 'ordered': {
- 'date': true,
- 'min': 1413544140087,
- 'max': 1413587340087,
- 'interval': 600000
- },
- 'yAxisLabel': 'Count of documents',
- 'series': [
- {
- 'label': 'html',
- 'values': [
- {
- 'x': 1413543600000,
- 'y': 140
- },
- {
- 'x': 1413544200000,
- 'y': 1388
- },
- {
- 'x': 1413544800000,
- 'y': 1308
- },
- {
- 'x': 1413545400000,
- 'y': 1356
- },
- {
- 'x': 1413546000000,
- 'y': 1314
- },
- {
- 'x': 1413546600000,
- 'y': 1343
- },
- {
- 'x': 1413547200000,
- 'y': 1353
- },
- {
- 'x': 1413547800000,
- 'y': 1353
- },
- {
- 'x': 1413548400000,
- 'y': 1334
- },
- {
- 'x': 1413549000000,
- 'y': 1433
- },
- {
- 'x': 1413549600000,
- 'y': 1331
- },
- {
- 'x': 1413550200000,
- 'y': 1349
- },
- {
- 'x': 1413550800000,
- 'y': 1323
- },
- {
- 'x': 1413551400000,
- 'y': 1203
- },
- {
- 'x': 1413552000000,
- 'y': 1231
- },
- {
- 'x': 1413552600000,
- 'y': 1227
- },
- {
- 'x': 1413553200000,
- 'y': 1187
- },
- {
- 'x': 1413553800000,
- 'y': 1119
- },
- {
- 'x': 1413554400000,
- 'y': 1159
- },
- {
- 'x': 1413555000000,
- 'y': 1117
- },
- {
- 'x': 1413555600000,
- 'y': 1152
- },
- {
- 'x': 1413556200000,
- 'y': 1057
- },
- {
- 'x': 1413556800000,
- 'y': 1009
- },
- {
- 'x': 1413557400000,
- 'y': 979
- },
- {
- 'x': 1413558000000,
- 'y': 975
- },
- {
- 'x': 1413558600000,
- 'y': 848
- },
- {
- 'x': 1413559200000,
- 'y': 873
- },
- {
- 'x': 1413559800000,
- 'y': 808
- },
- {
- 'x': 1413560400000,
- 'y': 784
- },
- {
- 'x': 1413561000000,
- 'y': 799
- },
- {
- 'x': 1413561600000,
- 'y': 684
- },
- {
- 'x': 1413562200000,
- 'y': 727
- },
- {
- 'x': 1413562800000,
- 'y': 621
- },
- {
- 'x': 1413563400000,
- 'y': 615
- },
- {
- 'x': 1413564000000,
- 'y': 569
- },
- {
- 'x': 1413564600000,
- 'y': 523
- },
- {
- 'x': 1413565200000,
- 'y': 474
- },
- {
- 'x': 1413565800000,
- 'y': 470
- },
- {
- 'x': 1413566400000,
- 'y': 466
- },
- {
- 'x': 1413567000000,
- 'y': 394
- },
- {
- 'x': 1413567600000,
- 'y': 404
- },
- {
- 'x': 1413568200000,
- 'y': 389
- },
- {
- 'x': 1413568800000,
- 'y': 312
- },
- {
- 'x': 1413569400000,
- 'y': 274
- },
- {
- 'x': 1413570000000,
- 'y': 285
- },
- {
- 'x': 1413570600000,
- 'y': 299
- },
- {
- 'x': 1413571200000,
- 'y': 207
- },
- {
- 'x': 1413571800000,
- 'y': 213
- },
- {
- 'x': 1413572400000,
- 'y': 119
- },
- {
- 'x': 1413573600000,
- 'y': 122
- },
- {
- 'x': 1413574200000,
- 'y': 169
- },
- {
- 'x': 1413574800000,
- 'y': 151
- },
- {
- 'x': 1413575400000,
- 'y': 152
- },
- {
- 'x': 1413576000000,
- 'y': 115
- },
- {
- 'x': 1413576600000,
- 'y': 117
- },
- {
- 'x': 1413577200000,
- 'y': 108
- },
- {
- 'x': 1413577800000,
- 'y': 100
- },
- {
- 'x': 1413578400000,
- 'y': 78
- },
- {
- 'x': 1413579000000,
- 'y': 88
- },
- {
- 'x': 1413579600000,
- 'y': 63
- },
- {
- 'x': 1413580200000,
- 'y': 58
- },
- {
- 'x': 1413580800000,
- 'y': 45
- },
- {
- 'x': 1413581400000,
- 'y': 57
- },
- {
- 'x': 1413582000000,
- 'y': 34
- },
- {
- 'x': 1413582600000,
- 'y': 41
- },
- {
- 'x': 1413583200000,
- 'y': 24
- },
- {
- 'x': 1413583800000,
- 'y': 27
- },
- {
- 'x': 1413584400000,
- 'y': 19
- },
- {
- 'x': 1413585000000,
- 'y': 24
- },
- {
- 'x': 1413585600000,
- 'y': 18
- },
- {
- 'x': 1413586200000,
- 'y': 17
- },
- {
- 'x': 1413586800000,
- 'y': 14
- }
- ]
- },
- {
- 'label': 'php',
- 'values': [
- {
- 'x': 1413543600000,
- 'y': 90
- },
- {
- 'x': 1413544200000,
- 'y': 949
- },
- {
- 'x': 1413544800000,
- 'y': 1012
- },
- {
- 'x': 1413545400000,
- 'y': 1027
- },
- {
- 'x': 1413546000000,
- 'y': 1073
- },
- {
- 'x': 1413546600000,
- 'y': 992
- },
- {
- 'x': 1413547200000,
- 'y': 1005
- },
- {
- 'x': 1413547800000,
- 'y': 1014
- },
- {
- 'x': 1413548400000,
- 'y': 987
- },
- {
- 'x': 1413549000000,
- 'y': 982
- },
- {
- 'x': 1413549600000,
- 'y': 1086
- },
- {
- 'x': 1413550200000,
- 'y': 998
- },
- {
- 'x': 1413550800000,
- 'y': 935
- },
- {
- 'x': 1413551400000,
- 'y': 995
- },
- {
- 'x': 1413552000000,
- 'y': 926
- },
- {
- 'x': 1413552600000,
- 'y': 897
- },
- {
- 'x': 1413553200000,
- 'y': 873
- },
- {
- 'x': 1413553800000,
- 'y': 885
- },
- {
- 'x': 1413554400000,
- 'y': 859
- },
- {
- 'x': 1413555000000,
- 'y': 852
- },
- {
- 'x': 1413555600000,
- 'y': 779
- },
- {
- 'x': 1413556200000,
- 'y': 739
- },
- {
- 'x': 1413556800000,
- 'y': 783
- },
- {
- 'x': 1413557400000,
- 'y': 784
- },
- {
- 'x': 1413558000000,
- 'y': 687
- },
- {
- 'x': 1413558600000,
- 'y': 660
- },
- {
- 'x': 1413559200000,
- 'y': 672
- },
- {
- 'x': 1413559800000,
- 'y': 600
- },
- {
- 'x': 1413560400000,
- 'y': 659
- },
- {
- 'x': 1413561000000,
- 'y': 540
- },
- {
- 'x': 1413561600000,
- 'y': 539
- },
- {
- 'x': 1413562200000,
- 'y': 481
- },
- {
- 'x': 1413562800000,
- 'y': 498
- },
- {
- 'x': 1413563400000,
- 'y': 444
- },
- {
- 'x': 1413564000000,
- 'y': 452
- },
- {
- 'x': 1413564600000,
- 'y': 408
- },
- {
- 'x': 1413565200000,
- 'y': 358
- },
- {
- 'x': 1413565800000,
- 'y': 321
- },
- {
- 'x': 1413566400000,
- 'y': 305
- },
- {
- 'x': 1413567000000,
- 'y': 292
- },
- {
- 'x': 1413567600000,
- 'y': 289
- },
- {
- 'x': 1413568200000,
- 'y': 239
- },
- {
- 'x': 1413568800000,
- 'y': 256
- },
- {
- 'x': 1413569400000,
- 'y': 220
- },
- {
- 'x': 1413570000000,
- 'y': 205
- },
- {
- 'x': 1413570600000,
- 'y': 201
- },
- {
- 'x': 1413571200000,
- 'y': 183
- },
- {
- 'x': 1413571800000,
- 'y': 172
- },
- {
- 'x': 1413572400000,
- 'y': 73
- },
- {
- 'x': 1413573600000,
- 'y': 90
- },
- {
- 'x': 1413574200000,
- 'y': 130
- },
- {
- 'x': 1413574800000,
- 'y': 104
- },
- {
- 'x': 1413575400000,
- 'y': 108
- },
- {
- 'x': 1413576000000,
- 'y': 92
- },
- {
- 'x': 1413576600000,
- 'y': 79
- },
- {
- 'x': 1413577200000,
- 'y': 90
- },
- {
- 'x': 1413577800000,
- 'y': 72
- },
- {
- 'x': 1413578400000,
- 'y': 68
- },
- {
- 'x': 1413579000000,
- 'y': 52
- },
- {
- 'x': 1413579600000,
- 'y': 60
- },
- {
- 'x': 1413580200000,
- 'y': 51
- },
- {
- 'x': 1413580800000,
- 'y': 32
- },
- {
- 'x': 1413581400000,
- 'y': 37
- },
- {
- 'x': 1413582000000,
- 'y': 30
- },
- {
- 'x': 1413582600000,
- 'y': 29
- },
- {
- 'x': 1413583200000,
- 'y': 24
- },
- {
- 'x': 1413583800000,
- 'y': 16
- },
- {
- 'x': 1413584400000,
- 'y': 15
- },
- {
- 'x': 1413585000000,
- 'y': 15
- },
- {
- 'x': 1413585600000,
- 'y': 10
- },
- {
- 'x': 1413586200000,
- 'y': 9
- },
- {
- 'x': 1413586800000,
- 'y': 9
- }
- ]
- },
- {
- 'label': 'png',
- 'values': [
- {
- 'x': 1413543600000,
- 'y': 44
- },
- {
- 'x': 1413544200000,
- 'y': 495
- },
- {
- 'x': 1413544800000,
- 'y': 489
- },
- {
- 'x': 1413545400000,
- 'y': 492
- },
- {
- 'x': 1413546000000,
- 'y': 556
- },
- {
- 'x': 1413546600000,
- 'y': 536
- },
- {
- 'x': 1413547200000,
- 'y': 511
- },
- {
- 'x': 1413547800000,
- 'y': 479
- },
- {
- 'x': 1413548400000,
- 'y': 544
- },
- {
- 'x': 1413549000000,
- 'y': 513
- },
- {
- 'x': 1413549600000,
- 'y': 501
- },
- {
- 'x': 1413550200000,
- 'y': 532
- },
- {
- 'x': 1413550800000,
- 'y': 440
- },
- {
- 'x': 1413551400000,
- 'y': 455
- },
- {
- 'x': 1413552000000,
- 'y': 455
- },
- {
- 'x': 1413552600000,
- 'y': 471
- },
- {
- 'x': 1413553200000,
- 'y': 428
- },
- {
- 'x': 1413553800000,
- 'y': 457
- },
- {
- 'x': 1413554400000,
- 'y': 450
- },
- {
- 'x': 1413555000000,
- 'y': 418
- },
- {
- 'x': 1413555600000,
- 'y': 398
- },
- {
- 'x': 1413556200000,
- 'y': 397
- },
- {
- 'x': 1413556800000,
- 'y': 359
- },
- {
- 'x': 1413557400000,
- 'y': 398
- },
- {
- 'x': 1413558000000,
- 'y': 339
- },
- {
- 'x': 1413558600000,
- 'y': 363
- },
- {
- 'x': 1413559200000,
- 'y': 297
- },
- {
- 'x': 1413559800000,
- 'y': 323
- },
- {
- 'x': 1413560400000,
- 'y': 302
- },
- {
- 'x': 1413561000000,
- 'y': 260
- },
- {
- 'x': 1413561600000,
- 'y': 276
- },
- {
- 'x': 1413562200000,
- 'y': 249
- },
- {
- 'x': 1413562800000,
- 'y': 248
- },
- {
- 'x': 1413563400000,
- 'y': 235
- },
- {
- 'x': 1413564000000,
- 'y': 234
- },
- {
- 'x': 1413564600000,
- 'y': 188
- },
- {
- 'x': 1413565200000,
- 'y': 192
- },
- {
- 'x': 1413565800000,
- 'y': 173
- },
- {
- 'x': 1413566400000,
- 'y': 160
- },
- {
- 'x': 1413567000000,
- 'y': 137
- },
- {
- 'x': 1413567600000,
- 'y': 158
- },
- {
- 'x': 1413568200000,
- 'y': 111
- },
- {
- 'x': 1413568800000,
- 'y': 145
- },
- {
- 'x': 1413569400000,
- 'y': 118
- },
- {
- 'x': 1413570000000,
- 'y': 104
- },
- {
- 'x': 1413570600000,
- 'y': 80
- },
- {
- 'x': 1413571200000,
- 'y': 79
- },
- {
- 'x': 1413571800000,
- 'y': 86
- },
- {
- 'x': 1413572400000,
- 'y': 47
- },
- {
- 'x': 1413573600000,
- 'y': 49
- },
- {
- 'x': 1413574200000,
- 'y': 68
- },
- {
- 'x': 1413574800000,
- 'y': 78
- },
- {
- 'x': 1413575400000,
- 'y': 77
- },
- {
- 'x': 1413576000000,
- 'y': 50
- },
- {
- 'x': 1413576600000,
- 'y': 51
- },
- {
- 'x': 1413577200000,
- 'y': 40
- },
- {
- 'x': 1413577800000,
- 'y': 42
- },
- {
- 'x': 1413578400000,
- 'y': 29
- },
- {
- 'x': 1413579000000,
- 'y': 24
- },
- {
- 'x': 1413579600000,
- 'y': 30
- },
- {
- 'x': 1413580200000,
- 'y': 18
- },
- {
- 'x': 1413580800000,
- 'y': 15
- },
- {
- 'x': 1413581400000,
- 'y': 19
- },
- {
- 'x': 1413582000000,
- 'y': 18
- },
- {
- 'x': 1413582600000,
- 'y': 13
- },
- {
- 'x': 1413583200000,
- 'y': 11
- },
- {
- 'x': 1413583800000,
- 'y': 11
- },
- {
- 'x': 1413584400000,
- 'y': 13
- },
- {
- 'x': 1413585000000,
- 'y': 9
- },
- {
- 'x': 1413585600000,
- 'y': 9
- },
- {
- 'x': 1413586200000,
- 'y': 9
- },
- {
- 'x': 1413586800000,
- 'y': 3
- }
- ]
- },
- {
- 'label': 'css',
- 'values': [
- {
- 'x': 1413543600000,
- 'y': 35
- },
- {
- 'x': 1413544200000,
- 'y': 360
- },
- {
- 'x': 1413544800000,
- 'y': 343
- },
- {
- 'x': 1413545400000,
- 'y': 329
- },
- {
- 'x': 1413546000000,
- 'y': 345
- },
- {
- 'x': 1413546600000,
- 'y': 336
- },
- {
- 'x': 1413547200000,
- 'y': 330
- },
- {
- 'x': 1413547800000,
- 'y': 334
- },
- {
- 'x': 1413548400000,
- 'y': 326
- },
- {
- 'x': 1413549000000,
- 'y': 351
- },
- {
- 'x': 1413549600000,
- 'y': 334
- },
- {
- 'x': 1413550200000,
- 'y': 351
- },
- {
- 'x': 1413550800000,
- 'y': 337
- },
- {
- 'x': 1413551400000,
- 'y': 306
- },
- {
- 'x': 1413552000000,
- 'y': 346
- },
- {
- 'x': 1413552600000,
- 'y': 317
- },
- {
- 'x': 1413553200000,
- 'y': 298
- },
- {
- 'x': 1413553800000,
- 'y': 288
- },
- {
- 'x': 1413554400000,
- 'y': 283
- },
- {
- 'x': 1413555000000,
- 'y': 262
- },
- {
- 'x': 1413555600000,
- 'y': 245
- },
- {
- 'x': 1413556200000,
- 'y': 259
- },
- {
- 'x': 1413556800000,
- 'y': 267
- },
- {
- 'x': 1413557400000,
- 'y': 230
- },
- {
- 'x': 1413558000000,
- 'y': 218
- },
- {
- 'x': 1413558600000,
- 'y': 241
- },
- {
- 'x': 1413559200000,
- 'y': 213
- },
- {
- 'x': 1413559800000,
- 'y': 239
- },
- {
- 'x': 1413560400000,
- 'y': 208
- },
- {
- 'x': 1413561000000,
- 'y': 187
- },
- {
- 'x': 1413561600000,
- 'y': 166
- },
- {
- 'x': 1413562200000,
- 'y': 154
- },
- {
- 'x': 1413562800000,
- 'y': 184
- },
- {
- 'x': 1413563400000,
- 'y': 148
- },
- {
- 'x': 1413564000000,
- 'y': 153
- },
- {
- 'x': 1413564600000,
- 'y': 149
- },
- {
- 'x': 1413565200000,
- 'y': 102
- },
- {
- 'x': 1413565800000,
- 'y': 110
- },
- {
- 'x': 1413566400000,
- 'y': 121
- },
- {
- 'x': 1413567000000,
- 'y': 120
- },
- {
- 'x': 1413567600000,
- 'y': 86
- },
- {
- 'x': 1413568200000,
- 'y': 96
- },
- {
- 'x': 1413568800000,
- 'y': 71
- },
- {
- 'x': 1413569400000,
- 'y': 92
- },
- {
- 'x': 1413570000000,
- 'y': 65
- },
- {
- 'x': 1413570600000,
- 'y': 54
- },
- {
- 'x': 1413571200000,
- 'y': 68
- },
- {
- 'x': 1413571800000,
- 'y': 57
- },
- {
- 'x': 1413572400000,
- 'y': 33
- },
- {
- 'x': 1413573600000,
- 'y': 47
- },
- {
- 'x': 1413574200000,
- 'y': 42
- },
- {
- 'x': 1413574800000,
- 'y': 39
- },
- {
- 'x': 1413575400000,
- 'y': 25
- },
- {
- 'x': 1413576000000,
- 'y': 31
- },
- {
- 'x': 1413576600000,
- 'y': 37
- },
- {
- 'x': 1413577200000,
- 'y': 35
- },
- {
- 'x': 1413577800000,
- 'y': 19
- },
- {
- 'x': 1413578400000,
- 'y': 15
- },
- {
- 'x': 1413579000000,
- 'y': 21
- },
- {
- 'x': 1413579600000,
- 'y': 16
- },
- {
- 'x': 1413580200000,
- 'y': 18
- },
- {
- 'x': 1413580800000,
- 'y': 10
- },
- {
- 'x': 1413581400000,
- 'y': 13
- },
- {
- 'x': 1413582000000,
- 'y': 14
- },
- {
- 'x': 1413582600000,
- 'y': 11
- },
- {
- 'x': 1413583200000,
- 'y': 4
- },
- {
- 'x': 1413583800000,
- 'y': 6
- },
- {
- 'x': 1413584400000,
- 'y': 3
- },
- {
- 'x': 1413585000000,
- 'y': 6
- },
- {
- 'x': 1413585600000,
- 'y': 6
- },
- {
- 'x': 1413586200000,
- 'y': 2
- },
- {
- 'x': 1413586800000,
- 'y': 3
- }
- ]
- },
- {
- 'label': 'gif',
- 'values': [
- {
- 'x': 1413543600000,
- 'y': 21
- },
- {
- 'x': 1413544200000,
- 'y': 191
- },
- {
- 'x': 1413544800000,
- 'y': 176
- },
- {
- 'x': 1413545400000,
- 'y': 166
- },
- {
- 'x': 1413546000000,
- 'y': 183
- },
- {
- 'x': 1413546600000,
- 'y': 170
- },
- {
- 'x': 1413547200000,
- 'y': 153
- },
- {
- 'x': 1413547800000,
- 'y': 202
- },
- {
- 'x': 1413548400000,
- 'y': 175
- },
- {
- 'x': 1413549000000,
- 'y': 161
- },
- {
- 'x': 1413549600000,
- 'y': 174
- },
- {
- 'x': 1413550200000,
- 'y': 167
- },
- {
- 'x': 1413550800000,
- 'y': 171
- },
- {
- 'x': 1413551400000,
- 'y': 176
- },
- {
- 'x': 1413552000000,
- 'y': 139
- },
- {
- 'x': 1413552600000,
- 'y': 145
- },
- {
- 'x': 1413553200000,
- 'y': 157
- },
- {
- 'x': 1413553800000,
- 'y': 148
- },
- {
- 'x': 1413554400000,
- 'y': 149
- },
- {
- 'x': 1413555000000,
- 'y': 135
- },
- {
- 'x': 1413555600000,
- 'y': 118
- },
- {
- 'x': 1413556200000,
- 'y': 142
- },
- {
- 'x': 1413556800000,
- 'y': 141
- },
- {
- 'x': 1413557400000,
- 'y': 146
- },
- {
- 'x': 1413558000000,
- 'y': 114
- },
- {
- 'x': 1413558600000,
- 'y': 115
- },
- {
- 'x': 1413559200000,
- 'y': 136
- },
- {
- 'x': 1413559800000,
- 'y': 106
- },
- {
- 'x': 1413560400000,
- 'y': 92
- },
- {
- 'x': 1413561000000,
- 'y': 97
- },
- {
- 'x': 1413561600000,
- 'y': 90
- },
- {
- 'x': 1413562200000,
- 'y': 69
- },
- {
- 'x': 1413562800000,
- 'y': 66
- },
- {
- 'x': 1413563400000,
- 'y': 93
- },
- {
- 'x': 1413564000000,
- 'y': 75
- },
- {
- 'x': 1413564600000,
- 'y': 68
- },
- {
- 'x': 1413565200000,
- 'y': 55
- },
- {
- 'x': 1413565800000,
- 'y': 73
- },
- {
- 'x': 1413566400000,
- 'y': 57
- },
- {
- 'x': 1413567000000,
- 'y': 48
- },
- {
- 'x': 1413567600000,
- 'y': 41
- },
- {
- 'x': 1413568200000,
- 'y': 39
- },
- {
- 'x': 1413568800000,
- 'y': 32
- },
- {
- 'x': 1413569400000,
- 'y': 33
- },
- {
- 'x': 1413570000000,
- 'y': 39
- },
- {
- 'x': 1413570600000,
- 'y': 35
- },
- {
- 'x': 1413571200000,
- 'y': 25
- },
- {
- 'x': 1413571800000,
- 'y': 28
- },
- {
- 'x': 1413572400000,
- 'y': 8
- },
- {
- 'x': 1413573600000,
- 'y': 13
- },
- {
- 'x': 1413574200000,
- 'y': 23
- },
- {
- 'x': 1413574800000,
- 'y': 19
- },
- {
- 'x': 1413575400000,
- 'y': 16
- },
- {
- 'x': 1413576000000,
- 'y': 22
- },
- {
- 'x': 1413576600000,
- 'y': 13
- },
- {
- 'x': 1413577200000,
- 'y': 21
- },
- {
- 'x': 1413577800000,
- 'y': 11
- },
- {
- 'x': 1413578400000,
- 'y': 12
- },
- {
- 'x': 1413579000000,
- 'y': 10
- },
- {
- 'x': 1413579600000,
- 'y': 7
- },
- {
- 'x': 1413580200000,
- 'y': 4
- },
- {
- 'x': 1413580800000,
- 'y': 5
- },
- {
- 'x': 1413581400000,
- 'y': 7
- },
- {
- 'x': 1413582000000,
- 'y': 9
- },
- {
- 'x': 1413582600000,
- 'y': 2
- },
- {
- 'x': 1413583200000,
- 'y': 2
- },
- {
- 'x': 1413583800000,
- 'y': 4
- },
- {
- 'x': 1413584400000,
- 'y': 6
- },
- {
- 'x': 1413585600000,
- 'y': 2
- },
- {
- 'x': 1413586200000,
- 'y': 4
- },
- {
- 'x': 1413586800000,
- 'y': 4
- }
- ]
- }
- ],
- 'hits': 108970,
- 'xAxisOrderedValues': [
- 1413543600000,
- 1413544200000,
- 1413544800000,
- 1413545400000,
- 1413546000000,
- 1413546600000,
- 1413547200000,
- 1413547800000,
- 1413548400000,
- 1413549000000,
- 1413549600000,
- 1413550200000,
- 1413550800000,
- 1413551400000,
- 1413552000000,
- 1413552600000,
- 1413553200000,
- 1413553800000,
- 1413554400000,
- 1413555000000,
- 1413555600000,
- 1413556200000,
- 1413556800000,
- 1413557400000,
- 1413558000000,
- 1413558600000,
- 1413559200000,
- 1413559800000,
- 1413560400000,
- 1413561000000,
- 1413561600000,
- 1413562200000,
- 1413562800000,
- 1413563400000,
- 1413564000000,
- 1413564600000,
- 1413565200000,
- 1413565800000,
- 1413566400000,
- 1413567000000,
- 1413567600000,
- 1413568200000,
- 1413568800000,
- 1413569400000,
- 1413570000000,
- 1413570600000,
- 1413571200000,
- 1413571800000,
- 1413572400000,
- 1413573600000,
- 1413574200000,
- 1413574800000,
- 1413575400000,
- 1413576000000,
- 1413576600000,
- 1413577200000,
- 1413577800000,
- 1413578400000,
- 1413579000000,
- 1413579600000,
- 1413580200000,
- 1413580800000,
- 1413581400000,
- 1413582000000,
- 1413582600000,
- 1413583200000,
- 1413583800000,
- 1413584400000,
- 1413585000000,
- 1413585600000,
- 1413586200000,
- 1413586800000,
- ],
- 'xAxisFormatter': function (thing) {
- return moment(thing);
- },
- 'tooltipFormatter': function (d) {
- return d;
- }
-};
diff --git a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/filters/_columns.js b/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/filters/_columns.js
deleted file mode 100644
index 041fad2ed15b9c..00000000000000
--- a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/filters/_columns.js
+++ /dev/null
@@ -1,112 +0,0 @@
-import _ from 'lodash';
-
-export default {
- 'columns': [
- {
- 'label': 'Mozilla/5.0 (X11; Linux x86_64; rv:6.0a1) Gecko/20110421 Firefox/6.0a1: agent.raw',
- 'xAxisLabel': 'filters',
- 'yAxisLabel': 'Count of documents',
- 'series': [
- {
- 'label': 'Count',
- 'values': [
- {
- 'x': 'css',
- 'y': 10379
- },
- {
- 'x': 'png',
- 'y': 6395
- }
- ]
- }
- ],
- 'xAxisOrderedValues': ['css', 'png'],
- 'xAxisFormatter': function (val) {
- if (_.isObject(val)) {
- return JSON.stringify(val);
- }
- else if (val == null) {
- return '';
- }
- else {
- return '' + val;
- }
- },
- 'tooltipFormatter': function (d) {
- return d;
- }
- },
- {
- 'label': 'Mozilla/5.0 (X11; Linux i686) AppleWebKit/534.24 (KHTML, like Gecko) Chrome/11.0.696.50 Safari/534.24: agent.raw',
- 'xAxisLabel': 'filters',
- 'yAxisLabel': 'Count of documents',
- 'series': [
- {
- 'label': 'Count',
- 'values': [
- {
- 'x': 'css',
- 'y': 9253
- },
- {
- 'x': 'png',
- 'y': 5571
- }
- ]
- }
- ],
- 'xAxisOrderedValues': ['css', 'png'],
- 'xAxisFormatter': function (val) {
- if (_.isObject(val)) {
- return JSON.stringify(val);
- }
- else if (val == null) {
- return '';
- }
- else {
- return '' + val;
- }
- },
- 'tooltipFormatter': function (d) {
- return d;
- }
- },
- {
- 'label': 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322): agent.raw',
- 'xAxisLabel': 'filters',
- 'yAxisLabel': 'Count of documents',
- 'series': [
- {
- 'label': 'Count',
- 'values': [
- {
- 'x': 'css',
- 'y': 7740
- },
- {
- 'x': 'png',
- 'y': 4697
- }
- ]
- }
- ],
- 'xAxisOrderedValues': ['css', 'png'],
- 'xAxisFormatter': function (val) {
- if (_.isObject(val)) {
- return JSON.stringify(val);
- }
- else if (val == null) {
- return '';
- }
- else {
- return '' + val;
- }
- },
- 'tooltipFormatter': function (d) {
- return d;
- }
- }
- ],
- 'hits': 171443
-};
diff --git a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/filters/_rows.js b/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/filters/_rows.js
deleted file mode 100644
index cc4f598c7b1b7f..00000000000000
--- a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/filters/_rows.js
+++ /dev/null
@@ -1,109 +0,0 @@
-import _ from 'lodash';
-
-export default {
- 'rows': [
- {
- 'label': '200: response',
- 'xAxisLabel': 'filters',
- 'yAxisLabel': 'Count of documents',
- 'series': [
- {
- 'label': 'Count',
- 'values': [
- {
- 'x': 'css',
- 'y': 25260
- },
- {
- 'x': 'png',
- 'y': 15311
- }
- ]
- }
- ],
- 'xAxisFormatter': function (val) {
- if (_.isObject(val)) {
- return JSON.stringify(val);
- }
- else if (val == null) {
- return '';
- }
- else {
- return '' + val;
- }
- },
- 'tooltipFormatter': function (d) {
- return d;
- }
- },
- {
- 'label': '404: response',
- 'xAxisLabel': 'filters',
- 'yAxisLabel': 'Count of documents',
- 'series': [
- {
- 'label': 'Count',
- 'values': [
- {
- 'x': 'css',
- 'y': 1352
- },
- {
- 'x': 'png',
- 'y': 826
- }
- ]
- }
- ],
- 'xAxisFormatter': function (val) {
- if (_.isObject(val)) {
- return JSON.stringify(val);
- }
- else if (val == null) {
- return '';
- }
- else {
- return '' + val;
- }
- },
- 'tooltipFormatter': function (d) {
- return d;
- }
- },
- {
- 'label': '503: response',
- 'xAxisLabel': 'filters',
- 'yAxisLabel': 'Count of documents',
- 'series': [
- {
- 'label': 'Count',
- 'values': [
- {
- 'x': 'css',
- 'y': 761
- },
- {
- 'x': 'png',
- 'y': 527
- }
- ]
- }
- ],
- 'xAxisFormatter': function (val) {
- if (_.isObject(val)) {
- return JSON.stringify(val);
- }
- else if (val == null) {
- return '';
- }
- else {
- return '' + val;
- }
- },
- 'tooltipFormatter': function (d) {
- return d;
- }
- }
- ],
- 'hits': 171443
-};
diff --git a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/filters/_series.js b/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/filters/_series.js
deleted file mode 100644
index 2a2d14d59b67ea..00000000000000
--- a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/filters/_series.js
+++ /dev/null
@@ -1,42 +0,0 @@
-import _ from 'lodash';
-
-export default {
- 'label': '',
- 'xAxisLabel': 'filters',
- 'yAxisLabel': 'Count of documents',
- 'series': [
- {
- 'label': 'Count',
- 'values': [
- {
- 'x': 'css',
- 'y': 27374
- },
- {
- 'x': 'html',
- 'y': 0
- },
- {
- 'x': 'png',
- 'y': 16663
- }
- ]
- }
- ],
- 'hits': 171454,
- 'xAxisOrderedValues': ['css', 'html', 'png'],
- 'xAxisFormatter': function (val) {
- if (_.isObject(val)) {
- return JSON.stringify(val);
- }
- else if (val == null) {
- return '';
- }
- else {
- return '' + val;
- }
- },
- 'tooltipFormatter': function (d) {
- return d;
- }
-};
diff --git a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/geohash/_columns.js b/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/geohash/_columns.js
deleted file mode 100644
index d283d793151772..00000000000000
--- a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/geohash/_columns.js
+++ /dev/null
@@ -1,3745 +0,0 @@
-import _ from 'lodash';
-
-export default {
- 'columns': [
- {
- 'title': 'Top 2 geo.dest: CN',
- 'valueFormatter': _.identity,
- 'geoJson': {
- 'type': 'FeatureCollection',
- 'features': [
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 22.5,
- 22.5
- ]
- },
- 'properties': {
- 'value': 42,
- 'geohash': 's',
- 'center': [
- 22.5,
- 22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'CN',
- 'value': 'CN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': false
- }
- },
- 'type': 'bucket'
- },
- 'key': 's',
- 'value': 's',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 42,
- 'value': 42,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 0,
- 0
- ],
- [
- 45,
- 0
- ],
- [
- 45,
- 45
- ],
- [
- 0,
- 45
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- -67.5,
- 22.5
- ]
- },
- 'properties': {
- 'value': 31,
- 'geohash': 'd',
- 'center': [
- -67.5,
- 22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'CN',
- 'value': 'CN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': false
- }
- },
- 'type': 'bucket'
- },
- 'key': 'd',
- 'value': 'd',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 31,
- 'value': 31,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- -90,
- 0
- ],
- [
- -45,
- 0
- ],
- [
- -45,
- 45
- ],
- [
- -90,
- 45
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 112.5,
- 22.5
- ]
- },
- 'properties': {
- 'value': 30,
- 'geohash': 'w',
- 'center': [
- 112.5,
- 22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'CN',
- 'value': 'CN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': false
- }
- },
- 'type': 'bucket'
- },
- 'key': 'w',
- 'value': 'w',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 30,
- 'value': 30,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 90,
- 0
- ],
- [
- 135,
- 0
- ],
- [
- 135,
- 45
- ],
- [
- 90,
- 45
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- -112.5,
- 22.5
- ]
- },
- 'properties': {
- 'value': 25,
- 'geohash': '9',
- 'center': [
- -112.5,
- 22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'CN',
- 'value': 'CN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': false
- }
- },
- 'type': 'bucket'
- },
- 'key': '9',
- 'value': '9',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 25,
- 'value': 25,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- -135,
- 0
- ],
- [
- -90,
- 0
- ],
- [
- -90,
- 45
- ],
- [
- -135,
- 45
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 67.5,
- 22.5
- ]
- },
- 'properties': {
- 'value': 22,
- 'geohash': 't',
- 'center': [
- 67.5,
- 22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'CN',
- 'value': 'CN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': false
- }
- },
- 'type': 'bucket'
- },
- 'key': 't',
- 'value': 't',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 22,
- 'value': 22,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 45,
- 0
- ],
- [
- 90,
- 0
- ],
- [
- 90,
- 45
- ],
- [
- 45,
- 45
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 22.5,
- -22.5
- ]
- },
- 'properties': {
- 'value': 22,
- 'geohash': 'k',
- 'center': [
- 22.5,
- -22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'CN',
- 'value': 'CN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': false
- }
- },
- 'type': 'bucket'
- },
- 'key': 'k',
- 'value': 'k',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 22,
- 'value': 22,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 0,
- -45
- ],
- [
- 45,
- -45
- ],
- [
- 45,
- 0
- ],
- [
- 0,
- 0
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- -67.5,
- -22.5
- ]
- },
- 'properties': {
- 'value': 21,
- 'geohash': '6',
- 'center': [
- -67.5,
- -22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'CN',
- 'value': 'CN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': false
- }
- },
- 'type': 'bucket'
- },
- 'key': '6',
- 'value': '6',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 21,
- 'value': 21,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- -90,
- -45
- ],
- [
- -45,
- -45
- ],
- [
- -45,
- 0
- ],
- [
- -90,
- 0
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 22.5,
- 67.5
- ]
- },
- 'properties': {
- 'value': 19,
- 'geohash': 'u',
- 'center': [
- 22.5,
- 67.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'CN',
- 'value': 'CN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': false
- }
- },
- 'type': 'bucket'
- },
- 'key': 'u',
- 'value': 'u',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 19,
- 'value': 19,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 0,
- 45
- ],
- [
- 45,
- 45
- ],
- [
- 45,
- 90
- ],
- [
- 0,
- 90
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 67.5,
- 67.5
- ]
- },
- 'properties': {
- 'value': 18,
- 'geohash': 'v',
- 'center': [
- 67.5,
- 67.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'CN',
- 'value': 'CN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': false
- }
- },
- 'type': 'bucket'
- },
- 'key': 'v',
- 'value': 'v',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 18,
- 'value': 18,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 45,
- 45
- ],
- [
- 90,
- 45
- ],
- [
- 90,
- 90
- ],
- [
- 45,
- 90
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- -112.5,
- 67.5
- ]
- },
- 'properties': {
- 'value': 11,
- 'geohash': 'c',
- 'center': [
- -112.5,
- 67.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'CN',
- 'value': 'CN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': false
- }
- },
- 'type': 'bucket'
- },
- 'key': 'c',
- 'value': 'c',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 11,
- 'value': 11,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- -135,
- 45
- ],
- [
- -90,
- 45
- ],
- [
- -90,
- 90
- ],
- [
- -135,
- 90
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 157.5,
- -22.5
- ]
- },
- 'properties': {
- 'value': 10,
- 'geohash': 'r',
- 'center': [
- 157.5,
- -22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'CN',
- 'value': 'CN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': false
- }
- },
- 'type': 'bucket'
- },
- 'key': 'r',
- 'value': 'r',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 10,
- 'value': 10,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 135,
- -45
- ],
- [
- 180,
- -45
- ],
- [
- 180,
- 0
- ],
- [
- 135,
- 0
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 112.5,
- 67.5
- ]
- },
- 'properties': {
- 'value': 9,
- 'geohash': 'y',
- 'center': [
- 112.5,
- 67.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'CN',
- 'value': 'CN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': false
- }
- },
- 'type': 'bucket'
- },
- 'key': 'y',
- 'value': 'y',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 9,
- 'value': 9,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 90,
- 45
- ],
- [
- 135,
- 45
- ],
- [
- 135,
- 90
- ],
- [
- 90,
- 90
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- -22.5,
- 22.5
- ]
- },
- 'properties': {
- 'value': 9,
- 'geohash': 'e',
- 'center': [
- -22.5,
- 22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'CN',
- 'value': 'CN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': false
- }
- },
- 'type': 'bucket'
- },
- 'key': 'e',
- 'value': 'e',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 9,
- 'value': 9,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- -45,
- 0
- ],
- [
- 0,
- 0
- ],
- [
- 0,
- 45
- ],
- [
- -45,
- 45
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- -67.5,
- 67.5
- ]
- },
- 'properties': {
- 'value': 8,
- 'geohash': 'f',
- 'center': [
- -67.5,
- 67.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'CN',
- 'value': 'CN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': false
- }
- },
- 'type': 'bucket'
- },
- 'key': 'f',
- 'value': 'f',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 8,
- 'value': 8,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- -90,
- 45
- ],
- [
- -45,
- 45
- ],
- [
- -45,
- 90
- ],
- [
- -90,
- 90
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- -22.5,
- -22.5
- ]
- },
- 'properties': {
- 'value': 8,
- 'geohash': '7',
- 'center': [
- -22.5,
- -22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'CN',
- 'value': 'CN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': false
- }
- },
- 'type': 'bucket'
- },
- 'key': '7',
- 'value': '7',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 8,
- 'value': 8,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- -45,
- -45
- ],
- [
- 0,
- -45
- ],
- [
- 0,
- 0
- ],
- [
- -45,
- 0
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 112.5,
- -22.5
- ]
- },
- 'properties': {
- 'value': 6,
- 'geohash': 'q',
- 'center': [
- 112.5,
- -22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'CN',
- 'value': 'CN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': false
- }
- },
- 'type': 'bucket'
- },
- 'key': 'q',
- 'value': 'q',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 6,
- 'value': 6,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 90,
- -45
- ],
- [
- 135,
- -45
- ],
- [
- 135,
- 0
- ],
- [
- 90,
- 0
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- -22.5,
- 67.5
- ]
- },
- 'properties': {
- 'value': 6,
- 'geohash': 'g',
- 'center': [
- -22.5,
- 67.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'CN',
- 'value': 'CN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': false
- }
- },
- 'type': 'bucket'
- },
- 'key': 'g',
- 'value': 'g',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 6,
- 'value': 6,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- -45,
- 45
- ],
- [
- 0,
- 45
- ],
- [
- 0,
- 90
- ],
- [
- -45,
- 90
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 157.5,
- 22.5
- ]
- },
- 'properties': {
- 'value': 4,
- 'geohash': 'x',
- 'center': [
- 157.5,
- 22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'CN',
- 'value': 'CN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': false
- }
- },
- 'type': 'bucket'
- },
- 'key': 'x',
- 'value': 'x',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 4,
- 'value': 4,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 135,
- 0
- ],
- [
- 180,
- 0
- ],
- [
- 180,
- 45
- ],
- [
- 135,
- 45
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- -157.5,
- 67.5
- ]
- },
- 'properties': {
- 'value': 3,
- 'geohash': 'b',
- 'center': [
- -157.5,
- 67.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'CN',
- 'value': 'CN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': false
- }
- },
- 'type': 'bucket'
- },
- 'key': 'b',
- 'value': 'b',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 3,
- 'value': 3,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- -180,
- 45
- ],
- [
- -135,
- 45
- ],
- [
- -135,
- 90
- ],
- [
- -180,
- 90
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 157.5,
- 67.5
- ]
- },
- 'properties': {
- 'value': 2,
- 'geohash': 'z',
- 'center': [
- 157.5,
- 67.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'CN',
- 'value': 'CN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': false
- }
- },
- 'type': 'bucket'
- },
- 'key': 'z',
- 'value': 'z',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 2,
- 'value': 2,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 135,
- 45
- ],
- [
- 180,
- 45
- ],
- [
- 180,
- 90
- ],
- [
- 135,
- 90
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 67.5,
- -22.5
- ]
- },
- 'properties': {
- 'value': 1,
- 'geohash': 'm',
- 'center': [
- 67.5,
- -22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'CN',
- 'value': 'CN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': false
- }
- },
- 'type': 'bucket'
- },
- 'key': 'm',
- 'value': 'm',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 1,
- 'value': 1,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 45,
- -45
- ],
- [
- 90,
- -45
- ],
- [
- 90,
- 0
- ],
- [
- 45,
- 0
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- -22.5,
- -67.5
- ]
- },
- 'properties': {
- 'value': 1,
- 'geohash': '5',
- 'center': [
- -22.5,
- -67.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'CN',
- 'value': 'CN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': false
- }
- },
- 'type': 'bucket'
- },
- 'key': '5',
- 'value': '5',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 1,
- 'value': 1,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- -45,
- -90
- ],
- [
- 0,
- -90
- ],
- [
- 0,
- -45
- ],
- [
- -45,
- -45
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- -67.5,
- -67.5
- ]
- },
- 'properties': {
- 'value': 1,
- 'geohash': '4',
- 'center': [
- -67.5,
- -67.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'CN',
- 'value': 'CN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': false
- }
- },
- 'type': 'bucket'
- },
- 'key': '4',
- 'value': '4',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 1,
- 'value': 1,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- -90,
- -90
- ],
- [
- -45,
- -90
- ],
- [
- -45,
- -45
- ],
- [
- -90,
- -45
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- -112.5,
- -22.5
- ]
- },
- 'properties': {
- 'value': 1,
- 'geohash': '3',
- 'center': [
- -112.5,
- -22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'CN',
- 'value': 'CN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': false
- }
- },
- 'type': 'bucket'
- },
- 'key': '3',
- 'value': '3',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 1,
- 'value': 1,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- -135,
- -45
- ],
- [
- -90,
- -45
- ],
- [
- -90,
- 0
- ],
- [
- -135,
- 0
- ]
- ]
- }
- }
- ],
- 'properties': {
- 'min': 1,
- 'max': 42
- }
- }
- },
- {
- 'label': 'Top 2 geo.dest: IN',
- 'valueFormatter': _.identity,
- 'geoJson': {
- 'type': 'FeatureCollection',
- 'features': [
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 22.5,
- 22.5
- ]
- },
- 'properties': {
- 'value': 32,
- 'geohash': 's',
- 'center': [
- 22.5,
- 22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'IN',
- 'value': 'IN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': false
- }
- },
- 'type': 'bucket'
- },
- 'key': 's',
- 'value': 's',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 32,
- 'value': 32,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 0,
- 0
- ],
- [
- 45,
- 0
- ],
- [
- 45,
- 45
- ],
- [
- 0,
- 45
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- -67.5,
- -22.5
- ]
- },
- 'properties': {
- 'value': 31,
- 'geohash': '6',
- 'center': [
- -67.5,
- -22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'IN',
- 'value': 'IN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': false
- }
- },
- 'type': 'bucket'
- },
- 'key': '6',
- 'value': '6',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 31,
- 'value': 31,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- -90,
- -45
- ],
- [
- -45,
- -45
- ],
- [
- -45,
- 0
- ],
- [
- -90,
- 0
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- -67.5,
- 22.5
- ]
- },
- 'properties': {
- 'value': 28,
- 'geohash': 'd',
- 'center': [
- -67.5,
- 22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'IN',
- 'value': 'IN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': false
- }
- },
- 'type': 'bucket'
- },
- 'key': 'd',
- 'value': 'd',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 28,
- 'value': 28,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- -90,
- 0
- ],
- [
- -45,
- 0
- ],
- [
- -45,
- 45
- ],
- [
- -90,
- 45
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 112.5,
- 22.5
- ]
- },
- 'properties': {
- 'value': 27,
- 'geohash': 'w',
- 'center': [
- 112.5,
- 22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'IN',
- 'value': 'IN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': false
- }
- },
- 'type': 'bucket'
- },
- 'key': 'w',
- 'value': 'w',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 27,
- 'value': 27,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 90,
- 0
- ],
- [
- 135,
- 0
- ],
- [
- 135,
- 45
- ],
- [
- 90,
- 45
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 67.5,
- 22.5
- ]
- },
- 'properties': {
- 'value': 24,
- 'geohash': 't',
- 'center': [
- 67.5,
- 22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'IN',
- 'value': 'IN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': false
- }
- },
- 'type': 'bucket'
- },
- 'key': 't',
- 'value': 't',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 24,
- 'value': 24,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 45,
- 0
- ],
- [
- 90,
- 0
- ],
- [
- 90,
- 45
- ],
- [
- 45,
- 45
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 22.5,
- -22.5
- ]
- },
- 'properties': {
- 'value': 23,
- 'geohash': 'k',
- 'center': [
- 22.5,
- -22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'IN',
- 'value': 'IN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': false
- }
- },
- 'type': 'bucket'
- },
- 'key': 'k',
- 'value': 'k',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 23,
- 'value': 23,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 0,
- -45
- ],
- [
- 45,
- -45
- ],
- [
- 45,
- 0
- ],
- [
- 0,
- 0
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 22.5,
- 67.5
- ]
- },
- 'properties': {
- 'value': 17,
- 'geohash': 'u',
- 'center': [
- 22.5,
- 67.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'IN',
- 'value': 'IN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': false
- }
- },
- 'type': 'bucket'
- },
- 'key': 'u',
- 'value': 'u',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 17,
- 'value': 17,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 0,
- 45
- ],
- [
- 45,
- 45
- ],
- [
- 45,
- 90
- ],
- [
- 0,
- 90
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- -112.5,
- 22.5
- ]
- },
- 'properties': {
- 'value': 16,
- 'geohash': '9',
- 'center': [
- -112.5,
- 22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'IN',
- 'value': 'IN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': false
- }
- },
- 'type': 'bucket'
- },
- 'key': '9',
- 'value': '9',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 16,
- 'value': 16,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- -135,
- 0
- ],
- [
- -90,
- 0
- ],
- [
- -90,
- 45
- ],
- [
- -135,
- 45
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 67.5,
- 67.5
- ]
- },
- 'properties': {
- 'value': 14,
- 'geohash': 'v',
- 'center': [
- 67.5,
- 67.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'IN',
- 'value': 'IN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': false
- }
- },
- 'type': 'bucket'
- },
- 'key': 'v',
- 'value': 'v',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 14,
- 'value': 14,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 45,
- 45
- ],
- [
- 90,
- 45
- ],
- [
- 90,
- 90
- ],
- [
- 45,
- 90
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- -22.5,
- 22.5
- ]
- },
- 'properties': {
- 'value': 13,
- 'geohash': 'e',
- 'center': [
- -22.5,
- 22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'IN',
- 'value': 'IN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': false
- }
- },
- 'type': 'bucket'
- },
- 'key': 'e',
- 'value': 'e',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 13,
- 'value': 13,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- -45,
- 0
- ],
- [
- 0,
- 0
- ],
- [
- 0,
- 45
- ],
- [
- -45,
- 45
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 157.5,
- -22.5
- ]
- },
- 'properties': {
- 'value': 9,
- 'geohash': 'r',
- 'center': [
- 157.5,
- -22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'IN',
- 'value': 'IN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': false
- }
- },
- 'type': 'bucket'
- },
- 'key': 'r',
- 'value': 'r',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 9,
- 'value': 9,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 135,
- -45
- ],
- [
- 180,
- -45
- ],
- [
- 180,
- 0
- ],
- [
- 135,
- 0
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 112.5,
- 67.5
- ]
- },
- 'properties': {
- 'value': 6,
- 'geohash': 'y',
- 'center': [
- 112.5,
- 67.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'IN',
- 'value': 'IN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': false
- }
- },
- 'type': 'bucket'
- },
- 'key': 'y',
- 'value': 'y',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 6,
- 'value': 6,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 90,
- 45
- ],
- [
- 135,
- 45
- ],
- [
- 135,
- 90
- ],
- [
- 90,
- 90
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- -22.5,
- 67.5
- ]
- },
- 'properties': {
- 'value': 6,
- 'geohash': 'g',
- 'center': [
- -22.5,
- 67.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'IN',
- 'value': 'IN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': false
- }
- },
- 'type': 'bucket'
- },
- 'key': 'g',
- 'value': 'g',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 6,
- 'value': 6,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- -45,
- 45
- ],
- [
- 0,
- 45
- ],
- [
- 0,
- 90
- ],
- [
- -45,
- 90
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- -67.5,
- 67.5
- ]
- },
- 'properties': {
- 'value': 6,
- 'geohash': 'f',
- 'center': [
- -67.5,
- 67.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'IN',
- 'value': 'IN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': false
- }
- },
- 'type': 'bucket'
- },
- 'key': 'f',
- 'value': 'f',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 6,
- 'value': 6,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- -90,
- 45
- ],
- [
- -45,
- 45
- ],
- [
- -45,
- 90
- ],
- [
- -90,
- 90
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- -112.5,
- 67.5
- ]
- },
- 'properties': {
- 'value': 5,
- 'geohash': 'c',
- 'center': [
- -112.5,
- 67.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'IN',
- 'value': 'IN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': false
- }
- },
- 'type': 'bucket'
- },
- 'key': 'c',
- 'value': 'c',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 5,
- 'value': 5,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- -135,
- 45
- ],
- [
- -90,
- 45
- ],
- [
- -90,
- 90
- ],
- [
- -135,
- 90
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- -157.5,
- 67.5
- ]
- },
- 'properties': {
- 'value': 4,
- 'geohash': 'b',
- 'center': [
- -157.5,
- 67.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'IN',
- 'value': 'IN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': false
- }
- },
- 'type': 'bucket'
- },
- 'key': 'b',
- 'value': 'b',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 4,
- 'value': 4,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- -180,
- 45
- ],
- [
- -135,
- 45
- ],
- [
- -135,
- 90
- ],
- [
- -180,
- 90
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 112.5,
- -22.5
- ]
- },
- 'properties': {
- 'value': 3,
- 'geohash': 'q',
- 'center': [
- 112.5,
- -22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'IN',
- 'value': 'IN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': false
- }
- },
- 'type': 'bucket'
- },
- 'key': 'q',
- 'value': 'q',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 3,
- 'value': 3,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 90,
- -45
- ],
- [
- 135,
- -45
- ],
- [
- 135,
- 0
- ],
- [
- 90,
- 0
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- -67.5,
- -67.5
- ]
- },
- 'properties': {
- 'value': 2,
- 'geohash': '4',
- 'center': [
- -67.5,
- -67.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'IN',
- 'value': 'IN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': false
- }
- },
- 'type': 'bucket'
- },
- 'key': '4',
- 'value': '4',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 2,
- 'value': 2,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- -90,
- -90
- ],
- [
- -45,
- -90
- ],
- [
- -45,
- -45
- ],
- [
- -90,
- -45
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 157.5,
- 67.5
- ]
- },
- 'properties': {
- 'value': 1,
- 'geohash': 'z',
- 'center': [
- 157.5,
- 67.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'IN',
- 'value': 'IN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': false
- }
- },
- 'type': 'bucket'
- },
- 'key': 'z',
- 'value': 'z',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 1,
- 'value': 1,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 135,
- 45
- ],
- [
- 180,
- 45
- ],
- [
- 180,
- 90
- ],
- [
- 135,
- 90
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 157.5,
- 22.5
- ]
- },
- 'properties': {
- 'value': 1,
- 'geohash': 'x',
- 'center': [
- 157.5,
- 22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'IN',
- 'value': 'IN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': false
- }
- },
- 'type': 'bucket'
- },
- 'key': 'x',
- 'value': 'x',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 1,
- 'value': 1,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 135,
- 0
- ],
- [
- 180,
- 0
- ],
- [
- 180,
- 45
- ],
- [
- 135,
- 45
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 157.5,
- -67.5
- ]
- },
- 'properties': {
- 'value': 1,
- 'geohash': 'p',
- 'center': [
- 157.5,
- -67.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'IN',
- 'value': 'IN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': false
- }
- },
- 'type': 'bucket'
- },
- 'key': 'p',
- 'value': 'p',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 1,
- 'value': 1,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 135,
- -90
- ],
- [
- 180,
- -90
- ],
- [
- 180,
- -45
- ],
- [
- 135,
- -45
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 67.5,
- -22.5
- ]
- },
- 'properties': {
- 'value': 1,
- 'geohash': 'm',
- 'center': [
- 67.5,
- -22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'IN',
- 'value': 'IN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': false
- }
- },
- 'type': 'bucket'
- },
- 'key': 'm',
- 'value': 'm',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 1,
- 'value': 1,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 45,
- -45
- ],
- [
- 90,
- -45
- ],
- [
- 90,
- 0
- ],
- [
- 45,
- 0
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- -22.5,
- -22.5
- ]
- },
- 'properties': {
- 'value': 1,
- 'geohash': '7',
- 'center': [
- -22.5,
- -22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'IN',
- 'value': 'IN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': false
- }
- },
- 'type': 'bucket'
- },
- 'key': '7',
- 'value': '7',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 1,
- 'value': 1,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- -45,
- -45
- ],
- [
- 0,
- -45
- ],
- [
- 0,
- 0
- ],
- [
- -45,
- 0
- ]
- ]
- }
- }
- ],
- 'properties': {
- 'min': 1,
- 'max': 32
- }
- }
- }
- ]
-};
diff --git a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/geohash/_geo_json.js b/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/geohash/_geo_json.js
deleted file mode 100644
index 4e65502f8d2788..00000000000000
--- a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/geohash/_geo_json.js
+++ /dev/null
@@ -1,1847 +0,0 @@
-import _ from 'lodash';
-
-export default {
- 'valueFormatter': _.identity,
- 'geohashGridAgg': { 'vis': { 'params': {} } },
- 'geoJson': {
- 'type': 'FeatureCollection',
- 'features': [
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 22.5,
- 22.5
- ]
- },
- 'properties': {
- 'value': 608,
- 'geohash': 's',
- 'center': [
- 22.5,
- 22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- 'key': 's',
- 'value': 's',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 608,
- 'value': 608,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 0,
- 0
- ],
- [
- 0,
- 45
- ],
- [
- 45,
- 45
- ],
- [
- 45,
- 0
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 112.5,
- 22.5
- ]
- },
- 'properties': {
- 'value': 522,
- 'geohash': 'w',
- 'center': [
- 112.5,
- 22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- 'key': 'w',
- 'value': 'w',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 522,
- 'value': 522,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 0,
- 90
- ],
- [
- 0,
- 135
- ],
- [
- 45,
- 135
- ],
- [
- 45,
- 90
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- -67.5,
- -22.5
- ]
- },
- 'properties': {
- 'value': 517,
- 'geohash': '6',
- 'center': [
- -67.5,
- -22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- 'key': '6',
- 'value': '6',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 517,
- 'value': 517,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- -45,
- -90
- ],
- [
- -45,
- -45
- ],
- [
- 0,
- -45
- ],
- [
- 0,
- -90
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- -67.5,
- 22.5
- ]
- },
- 'properties': {
- 'value': 446,
- 'geohash': 'd',
- 'center': [
- -67.5,
- 22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- 'key': 'd',
- 'value': 'd',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 446,
- 'value': 446,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 0,
- -90
- ],
- [
- 0,
- -45
- ],
- [
- 45,
- -45
- ],
- [
- 45,
- -90
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 22.5,
- 67.5
- ]
- },
- 'properties': {
- 'value': 426,
- 'geohash': 'u',
- 'center': [
- 22.5,
- 67.5
- ],
- 'aggConfigResult': {
- '$parent': {
- 'key': 'u',
- 'value': 'u',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 426,
- 'value': 426,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 45,
- 0
- ],
- [
- 45,
- 45
- ],
- [
- 90,
- 45
- ],
- [
- 90,
- 0
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 67.5,
- 22.5
- ]
- },
- 'properties': {
- 'value': 413,
- 'geohash': 't',
- 'center': [
- 67.5,
- 22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- 'key': 't',
- 'value': 't',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 413,
- 'value': 413,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 0,
- 45
- ],
- [
- 0,
- 90
- ],
- [
- 45,
- 90
- ],
- [
- 45,
- 45
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 22.5,
- -22.5
- ]
- },
- 'properties': {
- 'value': 362,
- 'geohash': 'k',
- 'center': [
- 22.5,
- -22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- 'key': 'k',
- 'value': 'k',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 362,
- 'value': 362,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- -45,
- 0
- ],
- [
- -45,
- 45
- ],
- [
- 0,
- 45
- ],
- [
- 0,
- 0
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- -112.5,
- 22.5
- ]
- },
- 'properties': {
- 'value': 352,
- 'geohash': '9',
- 'center': [
- -112.5,
- 22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- 'key': '9',
- 'value': '9',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 352,
- 'value': 352,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 0,
- -135
- ],
- [
- 0,
- -90
- ],
- [
- 45,
- -90
- ],
- [
- 45,
- -135
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- -22.5,
- 22.5
- ]
- },
- 'properties': {
- 'value': 216,
- 'geohash': 'e',
- 'center': [
- -22.5,
- 22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- 'key': 'e',
- 'value': 'e',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 216,
- 'value': 216,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 0,
- -45
- ],
- [
- 0,
- 0
- ],
- [
- 45,
- 0
- ],
- [
- 45,
- -45
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 67.5,
- 67.5
- ]
- },
- 'properties': {
- 'value': 183,
- 'geohash': 'v',
- 'center': [
- 67.5,
- 67.5
- ],
- 'aggConfigResult': {
- '$parent': {
- 'key': 'v',
- 'value': 'v',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 183,
- 'value': 183,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 45,
- 45
- ],
- [
- 45,
- 90
- ],
- [
- 90,
- 90
- ],
- [
- 90,
- 45
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 157.5,
- -22.5
- ]
- },
- 'properties': {
- 'value': 158,
- 'geohash': 'r',
- 'center': [
- 157.5,
- -22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- 'key': 'r',
- 'value': 'r',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 158,
- 'value': 158,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- -45,
- 135
- ],
- [
- -45,
- 180
- ],
- [
- 0,
- 180
- ],
- [
- 0,
- 135
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 112.5,
- 67.5
- ]
- },
- 'properties': {
- 'value': 139,
- 'geohash': 'y',
- 'center': [
- 112.5,
- 67.5
- ],
- 'aggConfigResult': {
- '$parent': {
- 'key': 'y',
- 'value': 'y',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 139,
- 'value': 139,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 45,
- 90
- ],
- [
- 45,
- 135
- ],
- [
- 90,
- 135
- ],
- [
- 90,
- 90
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- -112.5,
- 67.5
- ]
- },
- 'properties': {
- 'value': 110,
- 'geohash': 'c',
- 'center': [
- -112.5,
- 67.5
- ],
- 'aggConfigResult': {
- '$parent': {
- 'key': 'c',
- 'value': 'c',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 110,
- 'value': 110,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 45,
- -135
- ],
- [
- 45,
- -90
- ],
- [
- 90,
- -90
- ],
- [
- 90,
- -135
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 112.5,
- -22.5
- ]
- },
- 'properties': {
- 'value': 101,
- 'geohash': 'q',
- 'center': [
- 112.5,
- -22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- 'key': 'q',
- 'value': 'q',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 101,
- 'value': 101,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- -45,
- 90
- ],
- [
- -45,
- 135
- ],
- [
- 0,
- 135
- ],
- [
- 0,
- 90
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- -22.5,
- -22.5
- ]
- },
- 'properties': {
- 'value': 101,
- 'geohash': '7',
- 'center': [
- -22.5,
- -22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- 'key': '7',
- 'value': '7',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 101,
- 'value': 101,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- -45,
- -45
- ],
- [
- -45,
- 0
- ],
- [
- 0,
- 0
- ],
- [
- 0,
- -45
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- -67.5,
- 67.5
- ]
- },
- 'properties': {
- 'value': 92,
- 'geohash': 'f',
- 'center': [
- -67.5,
- 67.5
- ],
- 'aggConfigResult': {
- '$parent': {
- 'key': 'f',
- 'value': 'f',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 92,
- 'value': 92,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 45,
- -90
- ],
- [
- 45,
- -45
- ],
- [
- 90,
- -45
- ],
- [
- 90,
- -90
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- -157.5,
- 67.5
- ]
- },
- 'properties': {
- 'value': 75,
- 'geohash': 'b',
- 'center': [
- -157.5,
- 67.5
- ],
- 'aggConfigResult': {
- '$parent': {
- 'key': 'b',
- 'value': 'b',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 75,
- 'value': 75,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 45,
- -180
- ],
- [
- 45,
- -135
- ],
- [
- 90,
- -135
- ],
- [
- 90,
- -180
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- -22.5,
- 67.5
- ]
- },
- 'properties': {
- 'value': 64,
- 'geohash': 'g',
- 'center': [
- -22.5,
- 67.5
- ],
- 'aggConfigResult': {
- '$parent': {
- 'key': 'g',
- 'value': 'g',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 64,
- 'value': 64,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 45,
- -45
- ],
- [
- 45,
- 0
- ],
- [
- 90,
- 0
- ],
- [
- 90,
- -45
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 157.5,
- 67.5
- ]
- },
- 'properties': {
- 'value': 36,
- 'geohash': 'z',
- 'center': [
- 157.5,
- 67.5
- ],
- 'aggConfigResult': {
- '$parent': {
- 'key': 'z',
- 'value': 'z',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 36,
- 'value': 36,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 45,
- 135
- ],
- [
- 45,
- 180
- ],
- [
- 90,
- 180
- ],
- [
- 90,
- 135
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 157.5,
- 22.5
- ]
- },
- 'properties': {
- 'value': 34,
- 'geohash': 'x',
- 'center': [
- 157.5,
- 22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- 'key': 'x',
- 'value': 'x',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 34,
- 'value': 34,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 0,
- 135
- ],
- [
- 0,
- 180
- ],
- [
- 45,
- 180
- ],
- [
- 45,
- 135
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- -67.5,
- -67.5
- ]
- },
- 'properties': {
- 'value': 30,
- 'geohash': '4',
- 'center': [
- -67.5,
- -67.5
- ],
- 'aggConfigResult': {
- '$parent': {
- 'key': '4',
- 'value': '4',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 30,
- 'value': 30,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- -90,
- -90
- ],
- [
- -90,
- -45
- ],
- [
- -45,
- -45
- ],
- [
- -45,
- -90
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 67.5,
- -22.5
- ]
- },
- 'properties': {
- 'value': 16,
- 'geohash': 'm',
- 'center': [
- 67.5,
- -22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- 'key': 'm',
- 'value': 'm',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 16,
- 'value': 16,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- -45,
- 45
- ],
- [
- -45,
- 90
- ],
- [
- 0,
- 90
- ],
- [
- 0,
- 45
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- -22.5,
- -67.5
- ]
- },
- 'properties': {
- 'value': 10,
- 'geohash': '5',
- 'center': [
- -22.5,
- -67.5
- ],
- 'aggConfigResult': {
- '$parent': {
- 'key': '5',
- 'value': '5',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 10,
- 'value': 10,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- -90,
- -45
- ],
- [
- -90,
- 0
- ],
- [
- -45,
- 0
- ],
- [
- -45,
- -45
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 157.5,
- -67.5
- ]
- },
- 'properties': {
- 'value': 6,
- 'geohash': 'p',
- 'center': [
- 157.5,
- -67.5
- ],
- 'aggConfigResult': {
- '$parent': {
- 'key': 'p',
- 'value': 'p',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 6,
- 'value': 6,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- -90,
- 135
- ],
- [
- -90,
- 180
- ],
- [
- -45,
- 180
- ],
- [
- -45,
- 135
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- -157.5,
- -22.5
- ]
- },
- 'properties': {
- 'value': 6,
- 'geohash': '2',
- 'center': [
- -157.5,
- -22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- 'key': '2',
- 'value': '2',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 6,
- 'value': 6,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- -45,
- -180
- ],
- [
- -45,
- -135
- ],
- [
- 0,
- -135
- ],
- [
- 0,
- -180
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 22.5,
- -67.5
- ]
- },
- 'properties': {
- 'value': 4,
- 'geohash': 'h',
- 'center': [
- 22.5,
- -67.5
- ],
- 'aggConfigResult': {
- '$parent': {
- 'key': 'h',
- 'value': 'h',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 4,
- 'value': 4,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- -90,
- 0
- ],
- [
- -90,
- 45
- ],
- [
- -45,
- 45
- ],
- [
- -45,
- 0
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 112.5,
- -67.5
- ]
- },
- 'properties': {
- 'value': 2,
- 'geohash': 'n',
- 'center': [
- 112.5,
- -67.5
- ],
- 'aggConfigResult': {
- '$parent': {
- 'key': 'n',
- 'value': 'n',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 2,
- 'value': 2,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- -90,
- 90
- ],
- [
- -90,
- 135
- ],
- [
- -45,
- 135
- ],
- [
- -45,
- 90
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 67.5,
- -67.5
- ]
- },
- 'properties': {
- 'value': 2,
- 'geohash': 'j',
- 'center': [
- 67.5,
- -67.5
- ],
- 'aggConfigResult': {
- '$parent': {
- 'key': 'j',
- 'value': 'j',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 2,
- 'value': 2,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- -90,
- 45
- ],
- [
- -90,
- 90
- ],
- [
- -45,
- 90
- ],
- [
- -45,
- 45
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- -112.5,
- -22.5
- ]
- },
- 'properties': {
- 'value': 1,
- 'geohash': '3',
- 'center': [
- -112.5,
- -22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- 'key': '3',
- 'value': '3',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 1,
- 'value': 1,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- -45,
- -135
- ],
- [
- -45,
- -90
- ],
- [
- 0,
- -90
- ],
- [
- 0,
- -135
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- -112.5,
- -67.5
- ]
- },
- 'properties': {
- 'value': 1,
- 'geohash': '1',
- 'center': [
- -112.5,
- -67.5
- ],
- 'aggConfigResult': {
- '$parent': {
- 'key': '1',
- 'value': '1',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 1,
- 'value': 1,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- -90,
- -135
- ],
- [
- -90,
- -90
- ],
- [
- -45,
- -90
- ],
- [
- -45,
- -135
- ]
- ]
- }
- }
- ],
- 'properties': {
- 'min': 1,
- 'max': 608,
- 'zoom': 2,
- 'center': [5, 15]
- }
- },
-};
diff --git a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/geohash/_rows.js b/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/geohash/_rows.js
deleted file mode 100644
index 64deea0e391a6e..00000000000000
--- a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/geohash/_rows.js
+++ /dev/null
@@ -1,3667 +0,0 @@
-import _ from 'lodash';
-
-export default {
- 'rows': [
- {
- 'title': 'Top 2 geo.dest: CN',
- 'valueFormatter': _.identity,
- 'geoJson': {
- 'type': 'FeatureCollection',
- 'features': [
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 22.5,
- 22.5
- ]
- },
- 'properties': {
- 'value': 39,
- 'geohash': 's',
- 'center': [
- 22.5,
- 22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'CN',
- 'value': 'CN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': true
- }
- },
- 'type': 'bucket'
- },
- 'key': 's',
- 'value': 's',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 39,
- 'value': 39,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 0,
- 0
- ],
- [
- 45,
- 0
- ],
- [
- 45,
- 45
- ],
- [
- 0,
- 45
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 112.5,
- 22.5
- ]
- },
- 'properties': {
- 'value': 31,
- 'geohash': 'w',
- 'center': [
- 112.5,
- 22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'CN',
- 'value': 'CN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': true
- }
- },
- 'type': 'bucket'
- },
- 'key': 'w',
- 'value': 'w',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 31,
- 'value': 31,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 90,
- 0
- ],
- [
- 135,
- 0
- ],
- [
- 135,
- 45
- ],
- [
- 90,
- 45
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- -67.5,
- 22.5
- ]
- },
- 'properties': {
- 'value': 30,
- 'geohash': 'd',
- 'center': [
- -67.5,
- 22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'CN',
- 'value': 'CN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': true
- }
- },
- 'type': 'bucket'
- },
- 'key': 'd',
- 'value': 'd',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 30,
- 'value': 30,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- -90,
- 0
- ],
- [
- -45,
- 0
- ],
- [
- -45,
- 45
- ],
- [
- -90,
- 45
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- -112.5,
- 22.5
- ]
- },
- 'properties': {
- 'value': 25,
- 'geohash': '9',
- 'center': [
- -112.5,
- 22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'CN',
- 'value': 'CN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': true
- }
- },
- 'type': 'bucket'
- },
- 'key': '9',
- 'value': '9',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 25,
- 'value': 25,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- -135,
- 0
- ],
- [
- -90,
- 0
- ],
- [
- -90,
- 45
- ],
- [
- -135,
- 45
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 67.5,
- 22.5
- ]
- },
- 'properties': {
- 'value': 23,
- 'geohash': 't',
- 'center': [
- 67.5,
- 22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'CN',
- 'value': 'CN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': true
- }
- },
- 'type': 'bucket'
- },
- 'key': 't',
- 'value': 't',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 23,
- 'value': 23,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 45,
- 0
- ],
- [
- 90,
- 0
- ],
- [
- 90,
- 45
- ],
- [
- 45,
- 45
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 22.5,
- -22.5
- ]
- },
- 'properties': {
- 'value': 23,
- 'geohash': 'k',
- 'center': [
- 22.5,
- -22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'CN',
- 'value': 'CN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': true
- }
- },
- 'type': 'bucket'
- },
- 'key': 'k',
- 'value': 'k',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 23,
- 'value': 23,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 0,
- -45
- ],
- [
- 45,
- -45
- ],
- [
- 45,
- 0
- ],
- [
- 0,
- 0
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- -67.5,
- -22.5
- ]
- },
- 'properties': {
- 'value': 22,
- 'geohash': '6',
- 'center': [
- -67.5,
- -22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'CN',
- 'value': 'CN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': true
- }
- },
- 'type': 'bucket'
- },
- 'key': '6',
- 'value': '6',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 22,
- 'value': 22,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- -90,
- -45
- ],
- [
- -45,
- -45
- ],
- [
- -45,
- 0
- ],
- [
- -90,
- 0
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 22.5,
- 67.5
- ]
- },
- 'properties': {
- 'value': 20,
- 'geohash': 'u',
- 'center': [
- 22.5,
- 67.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'CN',
- 'value': 'CN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': true
- }
- },
- 'type': 'bucket'
- },
- 'key': 'u',
- 'value': 'u',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 20,
- 'value': 20,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 0,
- 45
- ],
- [
- 45,
- 45
- ],
- [
- 45,
- 90
- ],
- [
- 0,
- 90
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 67.5,
- 67.5
- ]
- },
- 'properties': {
- 'value': 18,
- 'geohash': 'v',
- 'center': [
- 67.5,
- 67.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'CN',
- 'value': 'CN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': true
- }
- },
- 'type': 'bucket'
- },
- 'key': 'v',
- 'value': 'v',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 18,
- 'value': 18,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 45,
- 45
- ],
- [
- 90,
- 45
- ],
- [
- 90,
- 90
- ],
- [
- 45,
- 90
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 157.5,
- -22.5
- ]
- },
- 'properties': {
- 'value': 11,
- 'geohash': 'r',
- 'center': [
- 157.5,
- -22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'CN',
- 'value': 'CN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': true
- }
- },
- 'type': 'bucket'
- },
- 'key': 'r',
- 'value': 'r',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 11,
- 'value': 11,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 135,
- -45
- ],
- [
- 180,
- -45
- ],
- [
- 180,
- 0
- ],
- [
- 135,
- 0
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- -22.5,
- 22.5
- ]
- },
- 'properties': {
- 'value': 11,
- 'geohash': 'e',
- 'center': [
- -22.5,
- 22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'CN',
- 'value': 'CN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': true
- }
- },
- 'type': 'bucket'
- },
- 'key': 'e',
- 'value': 'e',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 11,
- 'value': 11,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- -45,
- 0
- ],
- [
- 0,
- 0
- ],
- [
- 0,
- 45
- ],
- [
- -45,
- 45
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 112.5,
- 67.5
- ]
- },
- 'properties': {
- 'value': 10,
- 'geohash': 'y',
- 'center': [
- 112.5,
- 67.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'CN',
- 'value': 'CN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': true
- }
- },
- 'type': 'bucket'
- },
- 'key': 'y',
- 'value': 'y',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 10,
- 'value': 10,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 90,
- 45
- ],
- [
- 135,
- 45
- ],
- [
- 135,
- 90
- ],
- [
- 90,
- 90
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- -112.5,
- 67.5
- ]
- },
- 'properties': {
- 'value': 10,
- 'geohash': 'c',
- 'center': [
- -112.5,
- 67.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'CN',
- 'value': 'CN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': true
- }
- },
- 'type': 'bucket'
- },
- 'key': 'c',
- 'value': 'c',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 10,
- 'value': 10,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- -135,
- 45
- ],
- [
- -90,
- 45
- ],
- [
- -90,
- 90
- ],
- [
- -135,
- 90
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- -67.5,
- 67.5
- ]
- },
- 'properties': {
- 'value': 8,
- 'geohash': 'f',
- 'center': [
- -67.5,
- 67.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'CN',
- 'value': 'CN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': true
- }
- },
- 'type': 'bucket'
- },
- 'key': 'f',
- 'value': 'f',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 8,
- 'value': 8,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- -90,
- 45
- ],
- [
- -45,
- 45
- ],
- [
- -45,
- 90
- ],
- [
- -90,
- 90
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- -22.5,
- -22.5
- ]
- },
- 'properties': {
- 'value': 8,
- 'geohash': '7',
- 'center': [
- -22.5,
- -22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'CN',
- 'value': 'CN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': true
- }
- },
- 'type': 'bucket'
- },
- 'key': '7',
- 'value': '7',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 8,
- 'value': 8,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- -45,
- -45
- ],
- [
- 0,
- -45
- ],
- [
- 0,
- 0
- ],
- [
- -45,
- 0
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 112.5,
- -22.5
- ]
- },
- 'properties': {
- 'value': 6,
- 'geohash': 'q',
- 'center': [
- 112.5,
- -22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'CN',
- 'value': 'CN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': true
- }
- },
- 'type': 'bucket'
- },
- 'key': 'q',
- 'value': 'q',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 6,
- 'value': 6,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 90,
- -45
- ],
- [
- 135,
- -45
- ],
- [
- 135,
- 0
- ],
- [
- 90,
- 0
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- -22.5,
- 67.5
- ]
- },
- 'properties': {
- 'value': 6,
- 'geohash': 'g',
- 'center': [
- -22.5,
- 67.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'CN',
- 'value': 'CN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': true
- }
- },
- 'type': 'bucket'
- },
- 'key': 'g',
- 'value': 'g',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 6,
- 'value': 6,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- -45,
- 45
- ],
- [
- 0,
- 45
- ],
- [
- 0,
- 90
- ],
- [
- -45,
- 90
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 157.5,
- 22.5
- ]
- },
- 'properties': {
- 'value': 4,
- 'geohash': 'x',
- 'center': [
- 157.5,
- 22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'CN',
- 'value': 'CN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': true
- }
- },
- 'type': 'bucket'
- },
- 'key': 'x',
- 'value': 'x',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 4,
- 'value': 4,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 135,
- 0
- ],
- [
- 180,
- 0
- ],
- [
- 180,
- 45
- ],
- [
- 135,
- 45
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- -157.5,
- 67.5
- ]
- },
- 'properties': {
- 'value': 3,
- 'geohash': 'b',
- 'center': [
- -157.5,
- 67.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'CN',
- 'value': 'CN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': true
- }
- },
- 'type': 'bucket'
- },
- 'key': 'b',
- 'value': 'b',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 3,
- 'value': 3,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- -180,
- 45
- ],
- [
- -135,
- 45
- ],
- [
- -135,
- 90
- ],
- [
- -180,
- 90
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 157.5,
- 67.5
- ]
- },
- 'properties': {
- 'value': 2,
- 'geohash': 'z',
- 'center': [
- 157.5,
- 67.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'CN',
- 'value': 'CN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': true
- }
- },
- 'type': 'bucket'
- },
- 'key': 'z',
- 'value': 'z',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 2,
- 'value': 2,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 135,
- 45
- ],
- [
- 180,
- 45
- ],
- [
- 180,
- 90
- ],
- [
- 135,
- 90
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- -67.5,
- -67.5
- ]
- },
- 'properties': {
- 'value': 2,
- 'geohash': '4',
- 'center': [
- -67.5,
- -67.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'CN',
- 'value': 'CN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': true
- }
- },
- 'type': 'bucket'
- },
- 'key': '4',
- 'value': '4',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 2,
- 'value': 2,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- -90,
- -90
- ],
- [
- -45,
- -90
- ],
- [
- -45,
- -45
- ],
- [
- -90,
- -45
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- -22.5,
- -67.5
- ]
- },
- 'properties': {
- 'value': 1,
- 'geohash': '5',
- 'center': [
- -22.5,
- -67.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'CN',
- 'value': 'CN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': true
- }
- },
- 'type': 'bucket'
- },
- 'key': '5',
- 'value': '5',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 1,
- 'value': 1,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- -45,
- -90
- ],
- [
- 0,
- -90
- ],
- [
- 0,
- -45
- ],
- [
- -45,
- -45
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- -112.5,
- -22.5
- ]
- },
- 'properties': {
- 'value': 1,
- 'geohash': '3',
- 'center': [
- -112.5,
- -22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'CN',
- 'value': 'CN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': true
- }
- },
- 'type': 'bucket'
- },
- 'key': '3',
- 'value': '3',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 1,
- 'value': 1,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- -135,
- -45
- ],
- [
- -90,
- -45
- ],
- [
- -90,
- 0
- ],
- [
- -135,
- 0
- ]
- ]
- }
- }
- ],
- 'properties': {
- 'min': 1,
- 'max': 39
- }
- }
- },
- {
- 'label': 'Top 2 geo.dest: IN',
- 'valueFormatter': _.identity,
- 'geoJson': {
- 'type': 'FeatureCollection',
- 'features': [
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- -67.5,
- -22.5
- ]
- },
- 'properties': {
- 'value': 31,
- 'geohash': '6',
- 'center': [
- -67.5,
- -22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'IN',
- 'value': 'IN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': true
- }
- },
- 'type': 'bucket'
- },
- 'key': '6',
- 'value': '6',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 31,
- 'value': 31,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- -90,
- -45
- ],
- [
- -45,
- -45
- ],
- [
- -45,
- 0
- ],
- [
- -90,
- 0
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 22.5,
- 22.5
- ]
- },
- 'properties': {
- 'value': 30,
- 'geohash': 's',
- 'center': [
- 22.5,
- 22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'IN',
- 'value': 'IN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': true
- }
- },
- 'type': 'bucket'
- },
- 'key': 's',
- 'value': 's',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 30,
- 'value': 30,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 0,
- 0
- ],
- [
- 45,
- 0
- ],
- [
- 45,
- 45
- ],
- [
- 0,
- 45
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 112.5,
- 22.5
- ]
- },
- 'properties': {
- 'value': 29,
- 'geohash': 'w',
- 'center': [
- 112.5,
- 22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'IN',
- 'value': 'IN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': true
- }
- },
- 'type': 'bucket'
- },
- 'key': 'w',
- 'value': 'w',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 29,
- 'value': 29,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 90,
- 0
- ],
- [
- 135,
- 0
- ],
- [
- 135,
- 45
- ],
- [
- 90,
- 45
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- -67.5,
- 22.5
- ]
- },
- 'properties': {
- 'value': 28,
- 'geohash': 'd',
- 'center': [
- -67.5,
- 22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'IN',
- 'value': 'IN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': true
- }
- },
- 'type': 'bucket'
- },
- 'key': 'd',
- 'value': 'd',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 28,
- 'value': 28,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- -90,
- 0
- ],
- [
- -45,
- 0
- ],
- [
- -45,
- 45
- ],
- [
- -90,
- 45
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 67.5,
- 22.5
- ]
- },
- 'properties': {
- 'value': 25,
- 'geohash': 't',
- 'center': [
- 67.5,
- 22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'IN',
- 'value': 'IN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': true
- }
- },
- 'type': 'bucket'
- },
- 'key': 't',
- 'value': 't',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 25,
- 'value': 25,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 45,
- 0
- ],
- [
- 90,
- 0
- ],
- [
- 90,
- 45
- ],
- [
- 45,
- 45
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 22.5,
- -22.5
- ]
- },
- 'properties': {
- 'value': 24,
- 'geohash': 'k',
- 'center': [
- 22.5,
- -22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'IN',
- 'value': 'IN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': true
- }
- },
- 'type': 'bucket'
- },
- 'key': 'k',
- 'value': 'k',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 24,
- 'value': 24,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 0,
- -45
- ],
- [
- 45,
- -45
- ],
- [
- 45,
- 0
- ],
- [
- 0,
- 0
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 22.5,
- 67.5
- ]
- },
- 'properties': {
- 'value': 20,
- 'geohash': 'u',
- 'center': [
- 22.5,
- 67.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'IN',
- 'value': 'IN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': true
- }
- },
- 'type': 'bucket'
- },
- 'key': 'u',
- 'value': 'u',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 20,
- 'value': 20,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 0,
- 45
- ],
- [
- 45,
- 45
- ],
- [
- 45,
- 90
- ],
- [
- 0,
- 90
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- -112.5,
- 22.5
- ]
- },
- 'properties': {
- 'value': 18,
- 'geohash': '9',
- 'center': [
- -112.5,
- 22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'IN',
- 'value': 'IN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': true
- }
- },
- 'type': 'bucket'
- },
- 'key': '9',
- 'value': '9',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 18,
- 'value': 18,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- -135,
- 0
- ],
- [
- -90,
- 0
- ],
- [
- -90,
- 45
- ],
- [
- -135,
- 45
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 67.5,
- 67.5
- ]
- },
- 'properties': {
- 'value': 14,
- 'geohash': 'v',
- 'center': [
- 67.5,
- 67.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'IN',
- 'value': 'IN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': true
- }
- },
- 'type': 'bucket'
- },
- 'key': 'v',
- 'value': 'v',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 14,
- 'value': 14,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 45,
- 45
- ],
- [
- 90,
- 45
- ],
- [
- 90,
- 90
- ],
- [
- 45,
- 90
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- -22.5,
- 22.5
- ]
- },
- 'properties': {
- 'value': 11,
- 'geohash': 'e',
- 'center': [
- -22.5,
- 22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'IN',
- 'value': 'IN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': true
- }
- },
- 'type': 'bucket'
- },
- 'key': 'e',
- 'value': 'e',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 11,
- 'value': 11,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- -45,
- 0
- ],
- [
- 0,
- 0
- ],
- [
- 0,
- 45
- ],
- [
- -45,
- 45
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 157.5,
- -22.5
- ]
- },
- 'properties': {
- 'value': 9,
- 'geohash': 'r',
- 'center': [
- 157.5,
- -22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'IN',
- 'value': 'IN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': true
- }
- },
- 'type': 'bucket'
- },
- 'key': 'r',
- 'value': 'r',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 9,
- 'value': 9,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 135,
- -45
- ],
- [
- 180,
- -45
- ],
- [
- 180,
- 0
- ],
- [
- 135,
- 0
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 112.5,
- 67.5
- ]
- },
- 'properties': {
- 'value': 6,
- 'geohash': 'y',
- 'center': [
- 112.5,
- 67.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'IN',
- 'value': 'IN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': true
- }
- },
- 'type': 'bucket'
- },
- 'key': 'y',
- 'value': 'y',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 6,
- 'value': 6,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 90,
- 45
- ],
- [
- 135,
- 45
- ],
- [
- 135,
- 90
- ],
- [
- 90,
- 90
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- -67.5,
- 67.5
- ]
- },
- 'properties': {
- 'value': 6,
- 'geohash': 'f',
- 'center': [
- -67.5,
- 67.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'IN',
- 'value': 'IN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': true
- }
- },
- 'type': 'bucket'
- },
- 'key': 'f',
- 'value': 'f',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 6,
- 'value': 6,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- -90,
- 45
- ],
- [
- -45,
- 45
- ],
- [
- -45,
- 90
- ],
- [
- -90,
- 90
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- -22.5,
- 67.5
- ]
- },
- 'properties': {
- 'value': 5,
- 'geohash': 'g',
- 'center': [
- -22.5,
- 67.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'IN',
- 'value': 'IN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': true
- }
- },
- 'type': 'bucket'
- },
- 'key': 'g',
- 'value': 'g',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 5,
- 'value': 5,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- -45,
- 45
- ],
- [
- 0,
- 45
- ],
- [
- 0,
- 90
- ],
- [
- -45,
- 90
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- -112.5,
- 67.5
- ]
- },
- 'properties': {
- 'value': 5,
- 'geohash': 'c',
- 'center': [
- -112.5,
- 67.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'IN',
- 'value': 'IN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': true
- }
- },
- 'type': 'bucket'
- },
- 'key': 'c',
- 'value': 'c',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 5,
- 'value': 5,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- -135,
- 45
- ],
- [
- -90,
- 45
- ],
- [
- -90,
- 90
- ],
- [
- -135,
- 90
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- -157.5,
- 67.5
- ]
- },
- 'properties': {
- 'value': 4,
- 'geohash': 'b',
- 'center': [
- -157.5,
- 67.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'IN',
- 'value': 'IN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': true
- }
- },
- 'type': 'bucket'
- },
- 'key': 'b',
- 'value': 'b',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 4,
- 'value': 4,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- -180,
- 45
- ],
- [
- -135,
- 45
- ],
- [
- -135,
- 90
- ],
- [
- -180,
- 90
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 112.5,
- -22.5
- ]
- },
- 'properties': {
- 'value': 3,
- 'geohash': 'q',
- 'center': [
- 112.5,
- -22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'IN',
- 'value': 'IN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': true
- }
- },
- 'type': 'bucket'
- },
- 'key': 'q',
- 'value': 'q',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 3,
- 'value': 3,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 90,
- -45
- ],
- [
- 135,
- -45
- ],
- [
- 135,
- 0
- ],
- [
- 90,
- 0
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- -67.5,
- -67.5
- ]
- },
- 'properties': {
- 'value': 2,
- 'geohash': '4',
- 'center': [
- -67.5,
- -67.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'IN',
- 'value': 'IN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': true
- }
- },
- 'type': 'bucket'
- },
- 'key': '4',
- 'value': '4',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 2,
- 'value': 2,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- -90,
- -90
- ],
- [
- -45,
- -90
- ],
- [
- -45,
- -45
- ],
- [
- -90,
- -45
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 157.5,
- 67.5
- ]
- },
- 'properties': {
- 'value': 1,
- 'geohash': 'z',
- 'center': [
- 157.5,
- 67.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'IN',
- 'value': 'IN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': true
- }
- },
- 'type': 'bucket'
- },
- 'key': 'z',
- 'value': 'z',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 1,
- 'value': 1,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 135,
- 45
- ],
- [
- 180,
- 45
- ],
- [
- 180,
- 90
- ],
- [
- 135,
- 90
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 157.5,
- 22.5
- ]
- },
- 'properties': {
- 'value': 1,
- 'geohash': 'x',
- 'center': [
- 157.5,
- 22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'IN',
- 'value': 'IN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': true
- }
- },
- 'type': 'bucket'
- },
- 'key': 'x',
- 'value': 'x',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 1,
- 'value': 1,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 135,
- 0
- ],
- [
- 180,
- 0
- ],
- [
- 180,
- 45
- ],
- [
- 135,
- 45
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 157.5,
- -67.5
- ]
- },
- 'properties': {
- 'value': 1,
- 'geohash': 'p',
- 'center': [
- 157.5,
- -67.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'IN',
- 'value': 'IN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': true
- }
- },
- 'type': 'bucket'
- },
- 'key': 'p',
- 'value': 'p',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 1,
- 'value': 1,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 135,
- -90
- ],
- [
- 180,
- -90
- ],
- [
- 180,
- -45
- ],
- [
- 135,
- -45
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- 67.5,
- -22.5
- ]
- },
- 'properties': {
- 'value': 1,
- 'geohash': 'm',
- 'center': [
- 67.5,
- -22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'IN',
- 'value': 'IN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': true
- }
- },
- 'type': 'bucket'
- },
- 'key': 'm',
- 'value': 'm',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 1,
- 'value': 1,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- 45,
- -45
- ],
- [
- 90,
- -45
- ],
- [
- 90,
- 0
- ],
- [
- 45,
- 0
- ]
- ]
- }
- },
- {
- 'type': 'Feature',
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [
- -22.5,
- -22.5
- ]
- },
- 'properties': {
- 'value': 1,
- 'geohash': '7',
- 'center': [
- -22.5,
- -22.5
- ],
- 'aggConfigResult': {
- '$parent': {
- '$parent': {
- '$parent': null,
- 'key': 'IN',
- 'value': 'IN',
- 'aggConfig': {
- 'id': '3',
- 'type': 'terms',
- 'schema': 'split',
- 'params': {
- 'field': 'geo.dest',
- 'size': 2,
- 'order': 'desc',
- 'orderBy': '1',
- 'row': true
- }
- },
- 'type': 'bucket'
- },
- 'key': '7',
- 'value': '7',
- 'aggConfig': {
- 'id': '2',
- 'type': 'geohash_grid',
- 'schema': 'segment',
- 'params': {
- 'field': 'geo.coordinates',
- 'precision': 1
- }
- },
- 'type': 'bucket'
- },
- 'key': 1,
- 'value': 1,
- 'aggConfig': {
- 'id': '1',
- 'type': 'count',
- 'schema': 'metric',
- 'params': {}
- },
- 'type': 'metric'
- },
- 'rectangle': [
- [
- -45,
- -45
- ],
- [
- 0,
- -45
- ],
- [
- 0,
- 0
- ],
- [
- -45,
- 0
- ]
- ]
- }
- }
- ],
- 'properties': {
- 'min': 1,
- 'max': 31
- }
- }
- }
- ],
- 'hits': 1639
-};
diff --git a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/histogram/_columns.js b/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/histogram/_columns.js
deleted file mode 100644
index 96d2cfd174579c..00000000000000
--- a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/histogram/_columns.js
+++ /dev/null
@@ -1,368 +0,0 @@
-import _ from 'lodash';
-
-export default {
- 'columns': [
- {
- 'label': '404: response',
- 'xAxisLabel': 'machine.ram',
- 'ordered': {
- 'interval': 100
- },
- 'yAxisLabel': 'Count of documents',
- 'series': [
- {
- 'label': 'Count',
- 'values': [
- {
- 'x': 2147483600,
- 'y': 1,
- 'y0': 0
- },
- {
- 'x': 3221225400,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 4294967200,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 5368709100,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 6442450900,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 7516192700,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 8589934500,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 10737418200,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 11811160000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 12884901800,
- 'y': 1,
- 'y0': 0
- },
- {
- 'x': 13958643700,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 15032385500,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 16106127300,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 18253611000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 19327352800,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 20401094600,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 21474836400,
- 'y': 0,
- 'y0': 0
- }
- ]
- }
- ],
- 'xAxisFormatter': function (val) {
- if (_.isObject(val)) {
- return JSON.stringify(val);
- }
- else if (val == null) {
- return '';
- }
- else {
- return '' + val;
- }
- },
- 'tooltipFormatter': function (d) {
- return d;
- }
- },
- {
- 'label': '200: response',
- 'xAxisLabel': 'machine.ram',
- 'ordered': {
- 'interval': 100
- },
- 'yAxisLabel': 'Count of documents',
- 'series': [
- {
- 'label': 'Count',
- 'values': [
- {
- 'x': 2147483600,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 3221225400,
- 'y': 2,
- 'y0': 0
- },
- {
- 'x': 4294967200,
- 'y': 3,
- 'y0': 0
- },
- {
- 'x': 5368709100,
- 'y': 3,
- 'y0': 0
- },
- {
- 'x': 6442450900,
- 'y': 1,
- 'y0': 0
- },
- {
- 'x': 7516192700,
- 'y': 1,
- 'y0': 0
- },
- {
- 'x': 8589934500,
- 'y': 4,
- 'y0': 0
- },
- {
- 'x': 10737418200,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 11811160000,
- 'y': 1,
- 'y0': 0
- },
- {
- 'x': 12884901800,
- 'y': 1,
- 'y0': 0
- },
- {
- 'x': 13958643700,
- 'y': 1,
- 'y0': 0
- },
- {
- 'x': 15032385500,
- 'y': 2,
- 'y0': 0
- },
- {
- 'x': 16106127300,
- 'y': 3,
- 'y0': 0
- },
- {
- 'x': 18253611000,
- 'y': 4,
- 'y0': 0
- },
- {
- 'x': 19327352800,
- 'y': 5,
- 'y0': 0
- },
- {
- 'x': 20401094600,
- 'y': 2,
- 'y0': 0
- },
- {
- 'x': 21474836400,
- 'y': 2,
- 'y0': 0
- }
- ]
- }
- ],
- 'xAxisFormatter': function (val) {
- if (_.isObject(val)) {
- return JSON.stringify(val);
- }
- else if (val == null) {
- return '';
- }
- else {
- return '' + val;
- }
- },
- 'tooltipFormatter': function (d) {
- return d;
- }
- },
- {
- 'label': '503: response',
- 'xAxisLabel': 'machine.ram',
- 'ordered': {
- 'interval': 100
- },
- 'yAxisLabel': 'Count of documents',
- 'series': [
- {
- 'label': 'Count',
- 'values': [
- {
- 'x': 2147483600,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 3221225400,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 4294967200,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 5368709100,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 6442450900,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 7516192700,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 8589934500,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 10737418200,
- 'y': 1,
- 'y0': 0
- },
- {
- 'x': 11811160000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 12884901800,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 13958643700,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 15032385500,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 16106127300,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 18253611000,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 19327352800,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 20401094600,
- 'y': 0,
- 'y0': 0
- },
- {
- 'x': 21474836400,
- 'y': 0,
- 'y0': 0
- }
- ]
- }
- ],
- 'xAxisFormatter': function (val) {
- if (_.isObject(val)) {
- return JSON.stringify(val);
- }
- else if (val == null) {
- return '';
- }
- else {
- return '' + val;
- }
- },
- 'tooltipFormatter': function (d) {
- return d;
- }
- }
- ],
- 'xAxisOrderedValues': [
- 2147483600,
- 3221225400,
- 4294967200,
- 5368709100,
- 6442450900,
- 7516192700,
- 8589934500,
- 10737418200,
- 11811160000,
- 12884901800,
- 13958643700,
- 15032385500,
- 16106127300,
- 18253611000,
- 19327352800,
- 20401094600,
- 21474836400,
- ],
- 'hits': 40
-};
diff --git a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/histogram/_rows.js b/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/histogram/_rows.js
deleted file mode 100644
index 27050030ebdfd5..00000000000000
--- a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/histogram/_rows.js
+++ /dev/null
@@ -1,212 +0,0 @@
-import _ from 'lodash';
-
-export default {
- 'rows': [
- {
- 'label': '404: response',
- 'xAxisLabel': 'machine.ram',
- 'ordered': {
- 'interval': 100
- },
- 'yAxisLabel': 'Count of documents',
- 'series': [
- {
- 'label': 'Count',
- 'values': [
- {
- 'x': 2147483600,
- 'y': 1
- },
- {
- 'x': 10737418200,
- 'y': 1
- },
- {
- 'x': 15032385500,
- 'y': 2
- },
- {
- 'x': 19327352800,
- 'y': 1
- },
- {
- 'x': 32212254700,
- 'y': 1
- }
- ]
- }
- ],
- 'xAxisFormatter': function (val) {
- if (_.isObject(val)) {
- return JSON.stringify(val);
- }
- else if (val == null) {
- return '';
- }
- else {
- return '' + val;
- }
- },
- 'tooltipFormatter': function (d) {
- return d;
- }
- },
- {
- 'label': '200: response',
- 'xAxisLabel': 'machine.ram',
- 'ordered': {
- 'interval': 100
- },
- 'yAxisLabel': 'Count of documents',
- 'series': [
- {
- 'label': 'Count',
- 'values': [
- {
- 'x': 3221225400,
- 'y': 4
- },
- {
- 'x': 4294967200,
- 'y': 3
- },
- {
- 'x': 5368709100,
- 'y': 3
- },
- {
- 'x': 6442450900,
- 'y': 2
- },
- {
- 'x': 7516192700,
- 'y': 2
- },
- {
- 'x': 8589934500,
- 'y': 2
- },
- {
- 'x': 9663676400,
- 'y': 3
- },
- {
- 'x': 11811160000,
- 'y': 3
- },
- {
- 'x': 12884901800,
- 'y': 2
- },
- {
- 'x': 13958643700,
- 'y': 1
- },
- {
- 'x': 15032385500,
- 'y': 2
- },
- {
- 'x': 16106127300,
- 'y': 3
- },
- {
- 'x': 17179869100,
- 'y': 1
- },
- {
- 'x': 18253611000,
- 'y': 4
- },
- {
- 'x': 19327352800,
- 'y': 1
- },
- {
- 'x': 20401094600,
- 'y': 1
- },
- {
- 'x': 21474836400,
- 'y': 4
- },
- {
- 'x': 32212254700,
- 'y': 3
- }
- ]
- }
- ],
- 'xAxisFormatter': function (val) {
- if (_.isObject(val)) {
- return JSON.stringify(val);
- }
- else if (val == null) {
- return '';
- }
- else {
- return '' + val;
- }
- },
- 'tooltipFormatter': function (d) {
- return d;
- }
- },
- {
- 'label': '503: response',
- 'xAxisLabel': 'machine.ram',
- 'ordered': {
- 'interval': 100
- },
- 'yAxisLabel': 'Count of documents',
- 'series': [
- {
- 'label': 'Count',
- 'values': [
- {
- 'x': 10737418200,
- 'y': 1
- }
- ]
- }
- ],
- 'xAxisFormatter': function (val) {
- if (_.isObject(val)) {
- return JSON.stringify(val);
- }
- else if (val == null) {
- return '';
- }
- else {
- return '' + val;
- }
- },
- 'tooltipFormatter': function (d) {
- return d;
- }
- }
- ],
- 'xAxisOrderedValues': [
- 2147483600,
- 3221225400,
- 4294967200,
- 5368709100,
- 6442450900,
- 7516192700,
- 8589934500,
- 9663676400,
- 10737418200,
- 11811160000,
- 12884901800,
- 13958643700,
- 15032385500,
- 16106127300,
- 17179869100,
- 18253611000,
- 19327352800,
- 20401094600,
- 21474836400,
- 32212254700,
- ],
- 'hits': 51
-};
diff --git a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/histogram/_series.js b/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/histogram/_series.js
deleted file mode 100644
index 5c7554db2060df..00000000000000
--- a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/histogram/_series.js
+++ /dev/null
@@ -1,124 +0,0 @@
-import _ from 'lodash';
-
-export default {
- 'label': '',
- 'xAxisLabel': 'machine.ram',
- 'ordered': {
- 'interval': 100
- },
- 'yAxisLabel': 'Count of documents',
- 'series': [
- {
- 'label': 'Count',
- 'values': [
- {
- 'x': 3221225400,
- 'y': 5
- },
- {
- 'x': 4294967200,
- 'y': 2
- },
- {
- 'x': 5368709100,
- 'y': 5
- },
- {
- 'x': 6442450900,
- 'y': 4
- },
- {
- 'x': 7516192700,
- 'y': 1
- },
- {
- 'x': 9663676400,
- 'y': 9
- },
- {
- 'x': 10737418200,
- 'y': 5
- },
- {
- 'x': 11811160000,
- 'y': 5
- },
- {
- 'x': 12884901800,
- 'y': 2
- },
- {
- 'x': 13958643700,
- 'y': 3
- },
- {
- 'x': 15032385500,
- 'y': 3
- },
- {
- 'x': 16106127300,
- 'y': 3
- },
- {
- 'x': 17179869100,
- 'y': 1
- },
- {
- 'x': 18253611000,
- 'y': 6
- },
- {
- 'x': 19327352800,
- 'y': 3
- },
- {
- 'x': 20401094600,
- 'y': 3
- },
- {
- 'x': 21474836400,
- 'y': 7
- },
- {
- 'x': 32212254700,
- 'y': 4
- }
- ]
- }
- ],
- 'hits': 71,
- 'xAxisOrderedValues': [
- 3221225400,
- 4294967200,
- 5368709100,
- 6442450900,
- 7516192700,
- 9663676400,
- 10737418200,
- 11811160000,
- 12884901800,
- 13958643700,
- 15032385500,
- 16106127300,
- 17179869100,
- 18253611000,
- 19327352800,
- 20401094600,
- 21474836400,
- 32212254700,
- ],
- 'xAxisFormatter': function (val) {
- if (_.isObject(val)) {
- return JSON.stringify(val);
- }
- else if (val == null) {
- return '';
- }
- else {
- return '' + val;
- }
- },
- 'tooltipFormatter': function (d) {
- return d;
- }
-};
diff --git a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/histogram/_slices.js b/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/histogram/_slices.js
deleted file mode 100644
index c47155840cec50..00000000000000
--- a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/histogram/_slices.js
+++ /dev/null
@@ -1,309 +0,0 @@
-import _ from 'lodash';
-
-export default {
- 'label': '',
- 'slices': {
- 'children': [
- {
- 'name': 0,
- 'size': 378611,
- 'aggConfig': {
- 'type': 'histogram',
- 'schema': 'segment',
- 'fieldFormatter': _.constant(String),
- 'params': {
- 'interval': 1000,
- 'extended_bounds': {}
- }
- }
- },
- {
- 'name': 1000,
- 'size': 205997,
- 'aggConfig': {
- 'type': 'histogram',
- 'schema': 'segment',
- 'fieldFormatter': _.constant(String),
- 'params': {
- 'interval': 1000,
- 'extended_bounds': {}
- }
- }
- },
- {
- 'name': 2000,
- 'size': 397189,
- 'aggConfig': {
- 'type': 'histogram',
- 'schema': 'segment',
- 'fieldFormatter': _.constant(String),
- 'params': {
- 'interval': 1000,
- 'extended_bounds': {}
- }
- }
- },
- {
- 'name': 3000,
- 'size': 397195,
- 'aggConfig': {
- 'type': 'histogram',
- 'schema': 'segment',
- 'fieldFormatter': _.constant(String),
- 'params': {
- 'interval': 1000,
- 'extended_bounds': {}
- }
- }
- },
- {
- 'name': 4000,
- 'size': 398429,
- 'aggConfig': {
- 'type': 'histogram',
- 'schema': 'segment',
- 'fieldFormatter': _.constant(String),
- 'params': {
- 'interval': 1000,
- 'extended_bounds': {}
- }
- }
- },
- {
- 'name': 5000,
- 'size': 397843,
- 'aggConfig': {
- 'type': 'histogram',
- 'schema': 'segment',
- 'fieldFormatter': _.constant(String),
- 'params': {
- 'interval': 1000,
- 'extended_bounds': {}
- }
- }
- },
- {
- 'name': 6000,
- 'size': 398140,
- 'aggConfig': {
- 'type': 'histogram',
- 'schema': 'segment',
- 'fieldFormatter': _.constant(String),
- 'params': {
- 'interval': 1000,
- 'extended_bounds': {}
- }
- }
- },
- {
- 'name': 7000,
- 'size': 398076,
- 'aggConfig': {
- 'type': 'histogram',
- 'schema': 'segment',
- 'fieldFormatter': _.constant(String),
- 'params': {
- 'interval': 1000,
- 'extended_bounds': {}
- }
- }
- },
- {
- 'name': 8000,
- 'size': 396746,
- 'aggConfig': {
- 'type': 'histogram',
- 'schema': 'segment',
- 'fieldFormatter': _.constant(String),
- 'params': {
- 'interval': 1000,
- 'extended_bounds': {}
- }
- }
- },
- {
- 'name': 9000,
- 'size': 397418,
- 'aggConfig': {
- 'type': 'histogram',
- 'schema': 'segment',
- 'fieldFormatter': _.constant(String),
- 'params': {
- 'interval': 1000,
- 'extended_bounds': {}
- }
- }
- },
- {
- 'name': 10000,
- 'size': 20222,
- 'aggConfig': {
- 'type': 'histogram',
- 'schema': 'segment',
- 'fieldFormatter': _.constant(String),
- 'params': {
- 'interval': 1000,
- 'extended_bounds': {}
- }
- }
- },
- {
- 'name': 11000,
- 'size': 20173,
- 'aggConfig': {
- 'type': 'histogram',
- 'schema': 'segment',
- 'fieldFormatter': _.constant(String),
- 'params': {
- 'interval': 1000,
- 'extended_bounds': {}
- }
- }
- },
- {
- 'name': 12000,
- 'size': 20026,
- 'aggConfig': {
- 'type': 'histogram',
- 'schema': 'segment',
- 'fieldFormatter': _.constant(String),
- 'params': {
- 'interval': 1000,
- 'extended_bounds': {}
- }
- }
- },
- {
- 'name': 13000,
- 'size': 19986,
- 'aggConfig': {
- 'type': 'histogram',
- 'schema': 'segment',
- 'fieldFormatter': _.constant(String),
- 'params': {
- 'interval': 1000,
- 'extended_bounds': {}
- }
- }
- },
- {
- 'name': 14000,
- 'size': 20091,
- 'aggConfig': {
- 'type': 'histogram',
- 'schema': 'segment',
- 'fieldFormatter': _.constant(String),
- 'params': {
- 'interval': 1000,
- 'extended_bounds': {}
- }
- }
- },
- {
- 'name': 15000,
- 'size': 20052,
- 'aggConfig': {
- 'type': 'histogram',
- 'schema': 'segment',
- 'fieldFormatter': _.constant(String),
- 'params': {
- 'interval': 1000,
- 'extended_bounds': {}
- }
- }
- },
- {
- 'name': 16000,
- 'size': 20349,
- 'aggConfig': {
- 'type': 'histogram',
- 'schema': 'segment',
- 'fieldFormatter': _.constant(String),
- 'params': {
- 'interval': 1000,
- 'extended_bounds': {}
- }
- }
- },
- {
- 'name': 17000,
- 'size': 20290,
- 'aggConfig': {
- 'type': 'histogram',
- 'schema': 'segment',
- 'fieldFormatter': _.constant(String),
- 'params': {
- 'interval': 1000,
- 'extended_bounds': {}
- }
- }
- },
- {
- 'name': 18000,
- 'size': 20399,
- 'aggConfig': {
- 'type': 'histogram',
- 'schema': 'segment',
- 'fieldFormatter': _.constant(String),
- 'params': {
- 'interval': 1000,
- 'extended_bounds': {}
- }
- }
- },
- {
- 'name': 19000,
- 'size': 20133,
- 'aggConfig': {
- 'type': 'histogram',
- 'schema': 'segment',
- 'fieldFormatter': _.constant(String),
- 'params': {
- 'interval': 1000,
- 'extended_bounds': {}
- }
- }
- },
- {
- 'name': 20000,
- 'size': 9,
- 'aggConfig': {
- 'type': 'histogram',
- 'schema': 'segment',
- 'fieldFormatter': _.constant(String),
- 'params': {
- 'interval': 1000,
- 'extended_bounds': {}
- }
- }
- }
- ]
- },
- 'names': [
- 0,
- 1000,
- 2000,
- 3000,
- 4000,
- 5000,
- 6000,
- 7000,
- 8000,
- 9000,
- 10000,
- 11000,
- 12000,
- 13000,
- 14000,
- 15000,
- 16000,
- 17000,
- 18000,
- 19000,
- 20000
- ],
- 'hits': 3967374,
- 'tooltipFormatter': function (event) {
- return event.point;
- }
-};
diff --git a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/not_enough_data/_one_point.js b/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/not_enough_data/_one_point.js
deleted file mode 100644
index b05e258133963b..00000000000000
--- a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/not_enough_data/_one_point.js
+++ /dev/null
@@ -1,34 +0,0 @@
-import _ from 'lodash';
-
-export default {
- 'label': '',
- 'xAxisLabel': '',
- 'yAxisLabel': 'Count of documents',
- 'series': [
- {
- 'label': 'Count',
- 'values': [
- {
- 'x': '_all',
- 'y': 274
- }
- ]
- }
- ],
- 'hits': 274,
- 'xAxisOrderedValues': ['_all'],
- 'xAxisFormatter': function (val) {
- if (_.isObject(val)) {
- return JSON.stringify(val);
- }
- else if (val == null) {
- return '';
- }
- else {
- return '' + val;
- }
- },
- 'tooltipFormatter': function (d) {
- return d;
- }
-};
diff --git a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/range/_columns.js b/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/range/_columns.js
deleted file mode 100644
index d6f3fc4361f329..00000000000000
--- a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/range/_columns.js
+++ /dev/null
@@ -1,62 +0,0 @@
-import _ from 'lodash';
-
-export default {
- 'columns': [
- {
- 'label': 'apache: _type',
- 'xAxisLabel': 'bytes ranges',
- 'yAxisLabel': 'Count of documents',
- 'series': [
- {
- 'label': 'Count',
- 'values': [
- {
- 'x': '0.0-1000.0',
- 'y': 13309
- },
- {
- 'x': '1000.0-2000.0',
- 'y': 7196
- }
- ]
- }
- ]
- },
- {
- 'label': 'nginx: _type',
- 'xAxisLabel': 'bytes ranges',
- 'yAxisLabel': 'Count of documents',
- 'series': [
- {
- 'label': 'Count',
- 'values': [
- {
- 'x': '0.0-1000.0',
- 'y': 3278
- },
- {
- 'x': '1000.0-2000.0',
- 'y': 1804
- }
- ]
- }
- ]
- }
- ],
- 'hits': 171499,
- 'xAxisOrderedValues': ['0.0-1000.0', '1000.0-2000.0'],
- 'xAxisFormatter': function (val) {
- if (_.isObject(val)) {
- return JSON.stringify(val);
- }
- else if (val == null) {
- return '';
- }
- else {
- return '' + val;
- }
- },
- 'tooltipFormatter': function (d) {
- return d;
- }
-};
diff --git a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/range/_rows.js b/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/range/_rows.js
deleted file mode 100644
index b420565b1c96b5..00000000000000
--- a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/range/_rows.js
+++ /dev/null
@@ -1,88 +0,0 @@
-import _ from 'lodash';
-
-export default {
- 'rows': [
- {
- 'label': 'Mozilla/5.0 (X11; Linux x86_64; rv:6.0a1) Gecko/20110421 Firefox/6.0a1: agent.raw',
- 'xAxisLabel': 'bytes ranges',
- 'yAxisLabel': 'Count of documents',
- 'series': [
- {
- 'label': 'Count',
- 'values': [
- {
- 'x': '0.0-1000.0',
- 'y': 6422,
- 'y0': 0
- },
- {
- 'x': '1000.0-2000.0',
- 'y': 3446,
- 'y0': 0
- }
- ]
- }
- ]
- },
- {
- 'label': 'Mozilla/5.0 (X11; Linux i686) AppleWebKit/534.24 (KHTML, like Gecko) Chrome/11.0.696.50 Safari/534.24: agent.raw',
- 'xAxisLabel': 'bytes ranges',
- 'yAxisLabel': 'Count of documents',
- 'series': [
- {
- 'label': 'Count',
- 'values': [
- {
- 'x': '0.0-1000.0',
- 'y': 5430,
- 'y0': 0
- },
- {
- 'x': '1000.0-2000.0',
- 'y': 3010,
- 'y0': 0
- }
- ]
- }
- ]
- },
- {
- 'label': 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322): agent.raw',
- 'xAxisLabel': 'bytes ranges',
- 'yAxisLabel': 'Count of documents',
- 'series': [
- {
- 'label': 'Count',
- 'values': [
- {
- 'x': '0.0-1000.0',
- 'y': 4735,
- 'y0': 0
- },
- {
- 'x': '1000.0-2000.0',
- 'y': 2542,
- 'y0': 0
- }
- ]
- }
- ]
- }
- ],
- 'hits': 171501,
- 'xAxisOrderedValues': ['0.0-1000.0', '1000.0-2000.0'],
- 'xAxisFormatter': function (val) {
- if (_.isObject(val)) {
- return JSON.stringify(val);
- }
- else if (val == null) {
- return '';
- }
- else {
- return '' + val;
- }
- },
- 'tooltipFormatter': function (d) {
- return d;
- }
-};
diff --git a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/range/_series.js b/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/range/_series.js
deleted file mode 100644
index 2ac35efadc8f2f..00000000000000
--- a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/range/_series.js
+++ /dev/null
@@ -1,38 +0,0 @@
-import _ from 'lodash';
-
-export default {
- 'label': '',
- 'xAxisLabel': 'bytes ranges',
- 'yAxisLabel': 'Count of documents',
- 'series': [
- {
- 'label': 'Count',
- 'values': [
- {
- 'x': '0.0-1000.0',
- 'y': 16576
- },
- {
- 'x': '1000.0-2000.0',
- 'y': 9005
- }
- ]
- }
- ],
- 'hits': 171500,
- 'xAxisOrderedValues': ['0.0-1000.0', '1000.0-2000.0'],
- 'xAxisFormatter': function (val) {
- if (_.isObject(val)) {
- return JSON.stringify(val);
- }
- else if (val == null) {
- return '';
- }
- else {
- return '' + val;
- }
- },
- 'tooltipFormatter': function (d) {
- return d;
- }
-};
diff --git a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/significant_terms/_columns.js b/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/significant_terms/_columns.js
deleted file mode 100644
index 5b1e29ac0d54ae..00000000000000
--- a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/significant_terms/_columns.js
+++ /dev/null
@@ -1,242 +0,0 @@
-import _ from 'lodash';
-
-export default {
- 'columns': [
- {
- 'label': 'http: links',
- 'xAxisLabel': 'Top 5 unusual terms in @tags',
- 'yAxisLabel': 'Count of documents',
- 'series': [
- {
- 'label': 'Count',
- 'values': [
- {
- 'x': 'success',
- 'y': 144000
- },
- {
- 'x': 'info',
- 'y': 128237
- },
- {
- 'x': 'security',
- 'y': 34518
- },
- {
- 'x': 'error',
- 'y': 10258
- },
- {
- 'x': 'warning',
- 'y': 17188
- }
- ]
- }
- ],
- 'xAxisOrderedValues': ['success', 'info', 'security', 'error', 'warning'],
- 'xAxisFormatter': function (val) {
- if (_.isObject(val)) {
- return JSON.stringify(val);
- }
- else if (val == null) {
- return '';
- }
- else {
- return '' + val;
- }
- },
- 'tooltipFormatter': function (d) {
- return d;
- }
- },
- {
- 'label': 'info: links',
- 'xAxisLabel': 'Top 5 unusual terms in @tags',
- 'yAxisLabel': 'Count of documents',
- 'series': [
- {
- 'label': 'Count',
- 'values': [
- {
- 'x': 'success',
- 'y': 108148
- },
- {
- 'x': 'info',
- 'y': 96242
- },
- {
- 'x': 'security',
- 'y': 25889
- },
- {
- 'x': 'error',
- 'y': 7673
- },
- {
- 'x': 'warning',
- 'y': 12842
- }
- ]
- }
- ],
- 'xAxisOrderedValues': ['success', 'info', 'security', 'error', 'warning'],
- 'xAxisFormatter': function (val) {
- if (_.isObject(val)) {
- return JSON.stringify(val);
- }
- else if (val == null) {
- return '';
- }
- else {
- return '' + val;
- }
- },
- 'tooltipFormatter': function (d) {
- return d;
- }
- },
- {
- 'label': 'www.slate.com: links',
- 'xAxisLabel': 'Top 5 unusual terms in @tags',
- 'yAxisLabel': 'Count of documents',
- 'series': [
- {
- 'label': 'Count',
- 'values': [
- {
- 'x': 'success',
- 'y': 98056
- },
- {
- 'x': 'info',
- 'y': 87344
- },
- {
- 'x': 'security',
- 'y': 23577
- },
- {
- 'x': 'error',
- 'y': 7004
- },
- {
- 'x': 'warning',
- 'y': 11759
- }
- ]
- }
- ],
- 'xAxisOrderedValues': ['success', 'info', 'security', 'error', 'warning'],
- 'xAxisFormatter': function (val) {
- if (_.isObject(val)) {
- return JSON.stringify(val);
- }
- else if (val == null) {
- return '';
- }
- else {
- return '' + val;
- }
- },
- 'tooltipFormatter': function (d) {
- return d;
- }
- },
- {
- 'label': 'twitter.com: links',
- 'xAxisLabel': 'Top 5 unusual terms in @tags',
- 'yAxisLabel': 'Count of documents',
- 'series': [
- {
- 'label': 'Count',
- 'values': [
- {
- 'x': 'success',
- 'y': 74154
- },
- {
- 'x': 'info',
- 'y': 65963
- },
- {
- 'x': 'security',
- 'y': 17832
- },
- {
- 'x': 'error',
- 'y': 5258
- },
- {
- 'x': 'warning',
- 'y': 8906
- }
- ]
- }
- ],
- 'xAxisOrderedValues': ['success', 'info', 'security', 'error', 'warning'],
- 'xAxisFormatter': function (val) {
- if (_.isObject(val)) {
- return JSON.stringify(val);
- }
- else if (val == null) {
- return '';
- }
- else {
- return '' + val;
- }
- },
- 'tooltipFormatter': function (d) {
- return d;
- }
- },
- {
- 'label': 'www.www.slate.com: links',
- 'xAxisLabel': 'Top 5 unusual terms in @tags',
- 'yAxisLabel': 'Count of documents',
- 'series': [
- {
- 'label': 'Count',
- 'values': [
- {
- 'x': 'success',
- 'y': 62591
- },
- {
- 'x': 'info',
- 'y': 55822
- },
- {
- 'x': 'security',
- 'y': 15100
- },
- {
- 'x': 'error',
- 'y': 4564
- },
- {
- 'x': 'warning',
- 'y': 7498
- }
- ]
- }
- ],
- 'xAxisOrderedValues': ['success', 'info', 'security', 'error', 'warning'],
- 'xAxisFormatter': function (val) {
- if (_.isObject(val)) {
- return JSON.stringify(val);
- }
- else if (val == null) {
- return '';
- }
- else {
- return '' + val;
- }
- },
- 'tooltipFormatter': function (d) {
- return d;
- }
- }
- ],
- 'hits': 171446
-};
diff --git a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/significant_terms/_rows.js b/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/significant_terms/_rows.js
deleted file mode 100644
index 147eb691eb67bc..00000000000000
--- a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/significant_terms/_rows.js
+++ /dev/null
@@ -1,242 +0,0 @@
-import _ from 'lodash';
-
-export default {
- 'rows': [
- {
- 'label': 'h3: headings',
- 'xAxisLabel': 'Top 5 unusual terms in @tags',
- 'yAxisLabel': 'Count of documents',
- 'series': [
- {
- 'label': 'Count',
- 'values': [
- {
- 'x': 'success',
- 'y': 144000
- },
- {
- 'x': 'info',
- 'y': 128235
- },
- {
- 'x': 'security',
- 'y': 34518
- },
- {
- 'x': 'error',
- 'y': 10257
- },
- {
- 'x': 'warning',
- 'y': 17188
- }
- ]
- }
- ],
- 'xAxisOrderedValues': ['success', 'info', 'security', 'error', 'warning'],
- 'xAxisFormatter': function (val) {
- if (_.isObject(val)) {
- return JSON.stringify(val);
- }
- else if (val == null) {
- return '';
- }
- else {
- return '' + val;
- }
- },
- 'tooltipFormatter': function (d) {
- return d;
- }
- },
- {
- 'label': 'h5: headings',
- 'xAxisLabel': 'Top 5 unusual terms in @tags',
- 'yAxisLabel': 'Count of documents',
- 'series': [
- {
- 'label': 'Count',
- 'values': [
- {
- 'x': 'success',
- 'y': 144000
- },
- {
- 'x': 'info',
- 'y': 128235
- },
- {
- 'x': 'security',
- 'y': 34518
- },
- {
- 'x': 'error',
- 'y': 10257
- },
- {
- 'x': 'warning',
- 'y': 17188
- }
- ]
- }
- ],
- 'xAxisOrderedValues': ['success', 'info', 'security', 'error', 'warning'],
- 'xAxisFormatter': function (val) {
- if (_.isObject(val)) {
- return JSON.stringify(val);
- }
- else if (val == null) {
- return '';
- }
- else {
- return '' + val;
- }
- },
- 'tooltipFormatter': function (d) {
- return d;
- }
- },
- {
- 'label': 'http: headings',
- 'xAxisLabel': 'Top 5 unusual terms in @tags',
- 'yAxisLabel': 'Count of documents',
- 'series': [
- {
- 'label': 'Count',
- 'values': [
- {
- 'x': 'success',
- 'y': 144000
- },
- {
- 'x': 'info',
- 'y': 128235
- },
- {
- 'x': 'security',
- 'y': 34518
- },
- {
- 'x': 'error',
- 'y': 10257
- },
- {
- 'x': 'warning',
- 'y': 17188
- }
- ]
- }
- ],
- 'xAxisOrderedValues': ['success', 'info', 'security', 'error', 'warning'],
- 'xAxisFormatter': function (val) {
- if (_.isObject(val)) {
- return JSON.stringify(val);
- }
- else if (val == null) {
- return '';
- }
- else {
- return '' + val;
- }
- },
- 'tooltipFormatter': function (d) {
- return d;
- }
- },
- {
- 'label': 'success: headings',
- 'xAxisLabel': 'Top 5 unusual terms in @tags',
- 'yAxisLabel': 'Count of documents',
- 'series': [
- {
- 'label': 'Count',
- 'values': [
- {
- 'x': 'success',
- 'y': 120689
- },
- {
- 'x': 'info',
- 'y': 107621
- },
- {
- 'x': 'security',
- 'y': 28916
- },
- {
- 'x': 'error',
- 'y': 8590
- },
- {
- 'x': 'warning',
- 'y': 14548
- }
- ]
- }
- ],
- 'xAxisOrderedValues': ['success', 'info', 'security', 'error', 'warning'],
- 'xAxisFormatter': function (val) {
- if (_.isObject(val)) {
- return JSON.stringify(val);
- }
- else if (val == null) {
- return '';
- }
- else {
- return '' + val;
- }
- },
- 'tooltipFormatter': function (d) {
- return d;
- }
- },
- {
- 'label': 'www.slate.com: headings',
- 'xAxisLabel': 'Top 5 unusual terms in @tags',
- 'yAxisLabel': 'Count of documents',
- 'series': [
- {
- 'label': 'Count',
- 'values': [
- {
- 'x': 'success',
- 'y': 62292
- },
- {
- 'x': 'info',
- 'y': 55646
- },
- {
- 'x': 'security',
- 'y': 14823
- },
- {
- 'x': 'error',
- 'y': 4441
- },
- {
- 'x': 'warning',
- 'y': 7539
- }
- ]
- }
- ],
- 'xAxisOrderedValues': ['success', 'info', 'security', 'error', 'warning'],
- 'xAxisFormatter': function (val) {
- if (_.isObject(val)) {
- return JSON.stringify(val);
- }
- else if (val == null) {
- return '';
- }
- else {
- return '' + val;
- }
- },
- 'tooltipFormatter': function (d) {
- return d;
- }
- }
- ],
- 'hits': 171445
-};
diff --git a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/significant_terms/_series.js b/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/significant_terms/_series.js
deleted file mode 100644
index 3691d854c6c2a9..00000000000000
--- a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/significant_terms/_series.js
+++ /dev/null
@@ -1,49 +0,0 @@
-import _ from 'lodash';
-
-export default {
- 'label': '',
- 'xAxisLabel': 'Top 5 unusual terms in @tags',
- 'yAxisLabel': 'Count of documents',
- 'series': [
- {
- 'label': 'Count',
- 'values': [
- {
- 'x': 'success',
- 'y': 143995
- },
- {
- 'x': 'info',
- 'y': 128233
- },
- {
- 'x': 'security',
- 'y': 34515
- },
- {
- 'x': 'error',
- 'y': 10256
- },
- {
- 'x': 'warning',
- 'y': 17188
- }
- ]
- }
- ],
- 'hits': 171439,
- 'xAxisFormatter': function (val) {
- if (_.isObject(val)) {
- return JSON.stringify(val);
- }
- else if (val == null) {
- return '';
- }
- else {
- return '' + val;
- }
- },
- 'tooltipFormatter': function (d) {
- return d;
- }
-};
diff --git a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/stacked/_stacked.js b/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/stacked/_stacked.js
deleted file mode 100644
index 228a22ed534d59..00000000000000
--- a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/stacked/_stacked.js
+++ /dev/null
@@ -1,1635 +0,0 @@
-import moment from 'moment';
-
-export default {
- 'label': '',
- 'xAxisLabel': '@timestamp per 30 sec',
- 'ordered': {
- 'date': true,
- 'interval': 30000,
- 'min': 1416850340336,
- 'max': 1416852140336
- },
- 'yAxisLabel': 'Count of documents',
- 'xAxisOrderedValues': [
- 1416850320000,
- 1416850350000,
- 1416850380000,
- 1416850410000,
- 1416850440000,
- 1416850470000,
- 1416850500000,
- 1416850530000,
- 1416850560000,
- 1416850590000,
- 1416850620000,
- 1416850650000,
- 1416850680000,
- 1416850710000,
- 1416850740000,
- 1416850770000,
- 1416850800000,
- 1416850830000,
- 1416850860000,
- 1416850890000,
- 1416850920000,
- 1416850950000,
- 1416850980000,
- 1416851010000,
- 1416851040000,
- 1416851070000,
- 1416851100000,
- 1416851130000,
- 1416851160000,
- 1416851190000,
- 1416851220000,
- 1416851250000,
- 1416851280000,
- 1416851310000,
- 1416851340000,
- 1416851370000,
- 1416851400000,
- 1416851430000,
- 1416851460000,
- 1416851490000,
- 1416851520000,
- 1416851550000,
- 1416851580000,
- 1416851610000,
- 1416851640000,
- 1416851670000,
- 1416851700000,
- 1416851730000,
- 1416851760000,
- 1416851790000,
- 1416851820000,
- 1416851850000,
- 1416851880000,
- 1416851910000,
- 1416851940000,
- 1416851970000,
- 1416852000000,
- 1416852030000,
- 1416852060000,
- 1416852090000,
- 1416852120000,
- ],
- 'series': [
- {
- 'label': 'jpg',
- 'values': [
- {
- 'x': 1416850320000,
- 'y': 110,
- 'y0': 0
- },
- {
- 'x': 1416850350000,
- 'y': 24,
- 'y0': 0
- },
- {
- 'x': 1416850380000,
- 'y': 34,
- 'y0': 0
- },
- {
- 'x': 1416850410000,
- 'y': 21,
- 'y0': 0
- },
- {
- 'x': 1416850440000,
- 'y': 32,
- 'y0': 0
- },
- {
- 'x': 1416850470000,
- 'y': 24,
- 'y0': 0
- },
- {
- 'x': 1416850500000,
- 'y': 16,
- 'y0': 0
- },
- {
- 'x': 1416850530000,
- 'y': 27,
- 'y0': 0
- },
- {
- 'x': 1416850560000,
- 'y': 24,
- 'y0': 0
- },
- {
- 'x': 1416850590000,
- 'y': 38,
- 'y0': 0
- },
- {
- 'x': 1416850620000,
- 'y': 33,
- 'y0': 0
- },
- {
- 'x': 1416850650000,
- 'y': 33,
- 'y0': 0
- },
- {
- 'x': 1416850680000,
- 'y': 31,
- 'y0': 0
- },
- {
- 'x': 1416850710000,
- 'y': 24,
- 'y0': 0
- },
- {
- 'x': 1416850740000,
- 'y': 24,
- 'y0': 0
- },
- {
- 'x': 1416850770000,
- 'y': 38,
- 'y0': 0
- },
- {
- 'x': 1416850800000,
- 'y': 34,
- 'y0': 0
- },
- {
- 'x': 1416850830000,
- 'y': 30,
- 'y0': 0
- },
- {
- 'x': 1416850860000,
- 'y': 38,
- 'y0': 0
- },
- {
- 'x': 1416850890000,
- 'y': 19,
- 'y0': 0
- },
- {
- 'x': 1416850920000,
- 'y': 23,
- 'y0': 0
- },
- {
- 'x': 1416850950000,
- 'y': 33,
- 'y0': 0
- },
- {
- 'x': 1416850980000,
- 'y': 28,
- 'y0': 0
- },
- {
- 'x': 1416851010000,
- 'y': 24,
- 'y0': 0
- },
- {
- 'x': 1416851040000,
- 'y': 22,
- 'y0': 0
- },
- {
- 'x': 1416851070000,
- 'y': 28,
- 'y0': 0
- },
- {
- 'x': 1416851100000,
- 'y': 27,
- 'y0': 0
- },
- {
- 'x': 1416851130000,
- 'y': 32,
- 'y0': 0
- },
- {
- 'x': 1416851160000,
- 'y': 32,
- 'y0': 0
- },
- {
- 'x': 1416851190000,
- 'y': 30,
- 'y0': 0
- },
- {
- 'x': 1416851220000,
- 'y': 32,
- 'y0': 0
- },
- {
- 'x': 1416851250000,
- 'y': 36,
- 'y0': 0
- },
- {
- 'x': 1416851280000,
- 'y': 32,
- 'y0': 0
- },
- {
- 'x': 1416851310000,
- 'y': 29,
- 'y0': 0
- },
- {
- 'x': 1416851340000,
- 'y': 22,
- 'y0': 0
- },
- {
- 'x': 1416851370000,
- 'y': 29,
- 'y0': 0
- },
- {
- 'x': 1416851400000,
- 'y': 33,
- 'y0': 0
- },
- {
- 'x': 1416851430000,
- 'y': 28,
- 'y0': 0
- },
- {
- 'x': 1416851460000,
- 'y': 39,
- 'y0': 0
- },
- {
- 'x': 1416851490000,
- 'y': 28,
- 'y0': 0
- },
- {
- 'x': 1416851520000,
- 'y': 28,
- 'y0': 0
- },
- {
- 'x': 1416851550000,
- 'y': 28,
- 'y0': 0
- },
- {
- 'x': 1416851580000,
- 'y': 30,
- 'y0': 0
- },
- {
- 'x': 1416851610000,
- 'y': 29,
- 'y0': 0
- },
- {
- 'x': 1416851640000,
- 'y': 30,
- 'y0': 0
- },
- {
- 'x': 1416851670000,
- 'y': 23,
- 'y0': 0
- },
- {
- 'x': 1416851700000,
- 'y': 23,
- 'y0': 0
- },
- {
- 'x': 1416851730000,
- 'y': 27,
- 'y0': 0
- },
- {
- 'x': 1416851760000,
- 'y': 21,
- 'y0': 0
- },
- {
- 'x': 1416851790000,
- 'y': 24,
- 'y0': 0
- },
- {
- 'x': 1416851820000,
- 'y': 26,
- 'y0': 0
- },
- {
- 'x': 1416851850000,
- 'y': 26,
- 'y0': 0
- },
- {
- 'x': 1416851880000,
- 'y': 21,
- 'y0': 0
- },
- {
- 'x': 1416851910000,
- 'y': 33,
- 'y0': 0
- },
- {
- 'x': 1416851940000,
- 'y': 23,
- 'y0': 0
- },
- {
- 'x': 1416851970000,
- 'y': 46,
- 'y0': 0
- },
- {
- 'x': 1416852000000,
- 'y': 27,
- 'y0': 0
- },
- {
- 'x': 1416852030000,
- 'y': 20,
- 'y0': 0
- },
- {
- 'x': 1416852060000,
- 'y': 34,
- 'y0': 0
- },
- {
- 'x': 1416852090000,
- 'y': 15,
- 'y0': 0
- },
- {
- 'x': 1416852120000,
- 'y': 18,
- 'y0': 0
- }
- ]
- },
- {
- 'label': 'css',
- 'values': [
- {
- 'x': 1416850320000,
- 'y': 3,
- 'y0': 11
- },
- {
- 'x': 1416850350000,
- 'y': 13,
- 'y0': 24
- },
- {
- 'x': 1416850380000,
- 'y': 5,
- 'y0': 34
- },
- {
- 'x': 1416850410000,
- 'y': 12,
- 'y0': 21
- },
- {
- 'x': 1416850440000,
- 'y': 9,
- 'y0': 32
- },
- {
- 'x': 1416850470000,
- 'y': 12,
- 'y0': 24
- },
- {
- 'x': 1416850500000,
- 'y': 6,
- 'y0': 16
- },
- {
- 'x': 1416850530000,
- 'y': 6,
- 'y0': 27
- },
- {
- 'x': 1416850560000,
- 'y': 11,
- 'y0': 24
- },
- {
- 'x': 1416850590000,
- 'y': 11,
- 'y0': 38
- },
- {
- 'x': 1416850620000,
- 'y': 6,
- 'y0': 33
- },
- {
- 'x': 1416850650000,
- 'y': 8,
- 'y0': 33
- },
- {
- 'x': 1416850680000,
- 'y': 6,
- 'y0': 31
- },
- {
- 'x': 1416850710000,
- 'y': 4,
- 'y0': 24
- },
- {
- 'x': 1416850740000,
- 'y': 9,
- 'y0': 24
- },
- {
- 'x': 1416850770000,
- 'y': 3,
- 'y0': 38
- },
- {
- 'x': 1416850800000,
- 'y': 5,
- 'y0': 34
- },
- {
- 'x': 1416850830000,
- 'y': 6,
- 'y0': 30
- },
- {
- 'x': 1416850860000,
- 'y': 9,
- 'y0': 38
- },
- {
- 'x': 1416850890000,
- 'y': 5,
- 'y0': 19
- },
- {
- 'x': 1416850920000,
- 'y': 8,
- 'y0': 23
- },
- {
- 'x': 1416850950000,
- 'y': 9,
- 'y0': 33
- },
- {
- 'x': 1416850980000,
- 'y': 5,
- 'y0': 28
- },
- {
- 'x': 1416851010000,
- 'y': 6,
- 'y0': 24
- },
- {
- 'x': 1416851040000,
- 'y': 9,
- 'y0': 22
- },
- {
- 'x': 1416851070000,
- 'y': 9,
- 'y0': 28
- },
- {
- 'x': 1416851100000,
- 'y': 11,
- 'y0': 27
- },
- {
- 'x': 1416851130000,
- 'y': 5,
- 'y0': 32
- },
- {
- 'x': 1416851160000,
- 'y': 8,
- 'y0': 32
- },
- {
- 'x': 1416851190000,
- 'y': 6,
- 'y0': 30
- },
- {
- 'x': 1416851220000,
- 'y': 10,
- 'y0': 32
- },
- {
- 'x': 1416851250000,
- 'y': 5,
- 'y0': 36
- },
- {
- 'x': 1416851280000,
- 'y': 6,
- 'y0': 32
- },
- {
- 'x': 1416851310000,
- 'y': 4,
- 'y0': 29
- },
- {
- 'x': 1416851340000,
- 'y': 8,
- 'y0': 22
- },
- {
- 'x': 1416851370000,
- 'y': 3,
- 'y0': 29
- },
- {
- 'x': 1416851400000,
- 'y': 8,
- 'y0': 33
- },
- {
- 'x': 1416851430000,
- 'y': 10,
- 'y0': 28
- },
- {
- 'x': 1416851460000,
- 'y': 5,
- 'y0': 39
- },
- {
- 'x': 1416851490000,
- 'y': 7,
- 'y0': 28
- },
- {
- 'x': 1416851520000,
- 'y': 6,
- 'y0': 28
- },
- {
- 'x': 1416851550000,
- 'y': 4,
- 'y0': 28
- },
- {
- 'x': 1416851580000,
- 'y': 9,
- 'y0': 30
- },
- {
- 'x': 1416851610000,
- 'y': 3,
- 'y0': 29
- },
- {
- 'x': 1416851640000,
- 'y': 9,
- 'y0': 30
- },
- {
- 'x': 1416851670000,
- 'y': 6,
- 'y0': 23
- },
- {
- 'x': 1416851700000,
- 'y': 11,
- 'y0': 23
- },
- {
- 'x': 1416851730000,
- 'y': 4,
- 'y0': 27
- },
- {
- 'x': 1416851760000,
- 'y': 8,
- 'y0': 21
- },
- {
- 'x': 1416851790000,
- 'y': 5,
- 'y0': 24
- },
- {
- 'x': 1416851820000,
- 'y': 7,
- 'y0': 26
- },
- {
- 'x': 1416851850000,
- 'y': 7,
- 'y0': 26
- },
- {
- 'x': 1416851880000,
- 'y': 4,
- 'y0': 21
- },
- {
- 'x': 1416851910000,
- 'y': 8,
- 'y0': 33
- },
- {
- 'x': 1416851940000,
- 'y': 6,
- 'y0': 23
- },
- {
- 'x': 1416851970000,
- 'y': 6,
- 'y0': 46
- },
- {
- 'x': 1416852000000,
- 'y': 3,
- 'y0': 27
- },
- {
- 'x': 1416852030000,
- 'y': 6,
- 'y0': 20
- },
- {
- 'x': 1416852060000,
- 'y': 5,
- 'y0': 34
- },
- {
- 'x': 1416852090000,
- 'y': 5,
- 'y0': 15
- },
- {
- 'x': 1416852120000,
- 'y': 1,
- 'y0': 18
- }
- ]
- },
- {
- 'label': 'gif',
- 'values': [
- {
- 'x': 1416850320000,
- 'y': 1,
- 'y0': 14
- },
- {
- 'x': 1416850350000,
- 'y': 2,
- 'y0': 37
- },
- {
- 'x': 1416850380000,
- 'y': 4,
- 'y0': 39
- },
- {
- 'x': 1416850410000,
- 'y': 2,
- 'y0': 33
- },
- {
- 'x': 1416850440000,
- 'y': 3,
- 'y0': 41
- },
- {
- 'x': 1416850470000,
- 'y': 1,
- 'y0': 36
- },
- {
- 'x': 1416850500000,
- 'y': 1,
- 'y0': 22
- },
- {
- 'x': 1416850530000,
- 'y': 1,
- 'y0': 33
- },
- {
- 'x': 1416850560000,
- 'y': 2,
- 'y0': 35
- },
- {
- 'x': 1416850590000,
- 'y': 5,
- 'y0': 49
- },
- {
- 'x': 1416850620000,
- 'y': 1,
- 'y0': 39
- },
- {
- 'x': 1416850650000,
- 'y': 1,
- 'y0': 41
- },
- {
- 'x': 1416850680000,
- 'y': 4,
- 'y0': 37
- },
- {
- 'x': 1416850710000,
- 'y': 1,
- 'y0': 28
- },
- {
- 'x': 1416850740000,
- 'y': 3,
- 'y0': 33
- },
- {
- 'x': 1416850770000,
- 'y': 2,
- 'y0': 41
- },
- {
- 'x': 1416850800000,
- 'y': 2,
- 'y0': 39
- },
- {
- 'x': 1416850830000,
- 'y': 5,
- 'y0': 36
- },
- {
- 'x': 1416850860000,
- 'y': 3,
- 'y0': 47
- },
- {
- 'x': 1416850890000,
- 'y': 1,
- 'y0': 24
- },
- {
- 'x': 1416850920000,
- 'y': 3,
- 'y0': 31
- },
- {
- 'x': 1416850950000,
- 'y': 4,
- 'y0': 42
- },
- {
- 'x': 1416850980000,
- 'y': 3,
- 'y0': 33
- },
- {
- 'x': 1416851010000,
- 'y': 5,
- 'y0': 30
- },
- {
- 'x': 1416851040000,
- 'y': 2,
- 'y0': 31
- },
- {
- 'x': 1416851070000,
- 'y': 3,
- 'y0': 37
- },
- {
- 'x': 1416851100000,
- 'y': 5,
- 'y0': 38
- },
- {
- 'x': 1416851130000,
- 'y': 3,
- 'y0': 37
- },
- {
- 'x': 1416851160000,
- 'y': 4,
- 'y0': 40
- },
- {
- 'x': 1416851190000,
- 'y': 9,
- 'y0': 36
- },
- {
- 'x': 1416851220000,
- 'y': 7,
- 'y0': 42
- },
- {
- 'x': 1416851250000,
- 'y': 2,
- 'y0': 41
- },
- {
- 'x': 1416851280000,
- 'y': 1,
- 'y0': 38
- },
- {
- 'x': 1416851310000,
- 'y': 2,
- 'y0': 33
- },
- {
- 'x': 1416851340000,
- 'y': 5,
- 'y0': 30
- },
- {
- 'x': 1416851370000,
- 'y': 3,
- 'y0': 32
- },
- {
- 'x': 1416851400000,
- 'y': 5,
- 'y0': 41
- },
- {
- 'x': 1416851430000,
- 'y': 4,
- 'y0': 38
- },
- {
- 'x': 1416851460000,
- 'y': 5,
- 'y0': 44
- },
- {
- 'x': 1416851490000,
- 'y': 2,
- 'y0': 35
- },
- {
- 'x': 1416851520000,
- 'y': 2,
- 'y0': 34
- },
- {
- 'x': 1416851550000,
- 'y': 4,
- 'y0': 32
- },
- {
- 'x': 1416851580000,
- 'y': 3,
- 'y0': 39
- },
- {
- 'x': 1416851610000,
- 'y': 4,
- 'y0': 32
- },
- {
- 'x': 1416851640000,
- 'y': 0,
- 'y0': 39
- },
- {
- 'x': 1416851670000,
- 'y': 2,
- 'y0': 29
- },
- {
- 'x': 1416851700000,
- 'y': 1,
- 'y0': 34
- },
- {
- 'x': 1416851730000,
- 'y': 3,
- 'y0': 31
- },
- {
- 'x': 1416851760000,
- 'y': 0,
- 'y0': 29
- },
- {
- 'x': 1416851790000,
- 'y': 4,
- 'y0': 29
- },
- {
- 'x': 1416851820000,
- 'y': 3,
- 'y0': 33
- },
- {
- 'x': 1416851850000,
- 'y': 3,
- 'y0': 33
- },
- {
- 'x': 1416851880000,
- 'y': 0,
- 'y0': 25
- },
- {
- 'x': 1416851910000,
- 'y': 0,
- 'y0': 41
- },
- {
- 'x': 1416851940000,
- 'y': 3,
- 'y0': 29
- },
- {
- 'x': 1416851970000,
- 'y': 3,
- 'y0': 52
- },
- {
- 'x': 1416852000000,
- 'y': 1,
- 'y0': 30
- },
- {
- 'x': 1416852030000,
- 'y': 5,
- 'y0': 26
- },
- {
- 'x': 1416852060000,
- 'y': 3,
- 'y0': 39
- },
- {
- 'x': 1416852090000,
- 'y': 1,
- 'y0': 20
- },
- {
- 'x': 1416852120000,
- 'y': 2,
- 'y0': 19
- }
- ]
- },
- {
- 'label': 'png',
- 'values': [
- {
- 'x': 1416850320000,
- 'y': 1,
- 'y0': 15
- },
- {
- 'x': 1416850350000,
- 'y': 6,
- 'y0': 39
- },
- {
- 'x': 1416850380000,
- 'y': 6,
- 'y0': 43
- },
- {
- 'x': 1416850410000,
- 'y': 5,
- 'y0': 35
- },
- {
- 'x': 1416850440000,
- 'y': 3,
- 'y0': 44
- },
- {
- 'x': 1416850470000,
- 'y': 5,
- 'y0': 37
- },
- {
- 'x': 1416850500000,
- 'y': 6,
- 'y0': 23
- },
- {
- 'x': 1416850530000,
- 'y': 1,
- 'y0': 34
- },
- {
- 'x': 1416850560000,
- 'y': 3,
- 'y0': 37
- },
- {
- 'x': 1416850590000,
- 'y': 2,
- 'y0': 54
- },
- {
- 'x': 1416850620000,
- 'y': 1,
- 'y0': 40
- },
- {
- 'x': 1416850650000,
- 'y': 1,
- 'y0': 42
- },
- {
- 'x': 1416850680000,
- 'y': 2,
- 'y0': 41
- },
- {
- 'x': 1416850710000,
- 'y': 5,
- 'y0': 29
- },
- {
- 'x': 1416850740000,
- 'y': 7,
- 'y0': 36
- },
- {
- 'x': 1416850770000,
- 'y': 2,
- 'y0': 43
- },
- {
- 'x': 1416850800000,
- 'y': 3,
- 'y0': 41
- },
- {
- 'x': 1416850830000,
- 'y': 6,
- 'y0': 41
- },
- {
- 'x': 1416850860000,
- 'y': 2,
- 'y0': 50
- },
- {
- 'x': 1416850890000,
- 'y': 4,
- 'y0': 25
- },
- {
- 'x': 1416850920000,
- 'y': 2,
- 'y0': 34
- },
- {
- 'x': 1416850950000,
- 'y': 3,
- 'y0': 46
- },
- {
- 'x': 1416850980000,
- 'y': 8,
- 'y0': 36
- },
- {
- 'x': 1416851010000,
- 'y': 4,
- 'y0': 35
- },
- {
- 'x': 1416851040000,
- 'y': 4,
- 'y0': 33
- },
- {
- 'x': 1416851070000,
- 'y': 1,
- 'y0': 40
- },
- {
- 'x': 1416851100000,
- 'y': 2,
- 'y0': 43
- },
- {
- 'x': 1416851130000,
- 'y': 4,
- 'y0': 40
- },
- {
- 'x': 1416851160000,
- 'y': 3,
- 'y0': 44
- },
- {
- 'x': 1416851190000,
- 'y': 4,
- 'y0': 45
- },
- {
- 'x': 1416851220000,
- 'y': 2,
- 'y0': 49
- },
- {
- 'x': 1416851250000,
- 'y': 4,
- 'y0': 43
- },
- {
- 'x': 1416851280000,
- 'y': 8,
- 'y0': 39
- },
- {
- 'x': 1416851310000,
- 'y': 4,
- 'y0': 35
- },
- {
- 'x': 1416851340000,
- 'y': 4,
- 'y0': 35
- },
- {
- 'x': 1416851370000,
- 'y': 7,
- 'y0': 35
- },
- {
- 'x': 1416851400000,
- 'y': 2,
- 'y0': 46
- },
- {
- 'x': 1416851430000,
- 'y': 3,
- 'y0': 42
- },
- {
- 'x': 1416851460000,
- 'y': 3,
- 'y0': 49
- },
- {
- 'x': 1416851490000,
- 'y': 3,
- 'y0': 37
- },
- {
- 'x': 1416851520000,
- 'y': 4,
- 'y0': 36
- },
- {
- 'x': 1416851550000,
- 'y': 3,
- 'y0': 36
- },
- {
- 'x': 1416851580000,
- 'y': 4,
- 'y0': 42
- },
- {
- 'x': 1416851610000,
- 'y': 5,
- 'y0': 36
- },
- {
- 'x': 1416851640000,
- 'y': 3,
- 'y0': 39
- },
- {
- 'x': 1416851670000,
- 'y': 3,
- 'y0': 31
- },
- {
- 'x': 1416851700000,
- 'y': 2,
- 'y0': 35
- },
- {
- 'x': 1416851730000,
- 'y': 5,
- 'y0': 34
- },
- {
- 'x': 1416851760000,
- 'y': 4,
- 'y0': 29
- },
- {
- 'x': 1416851790000,
- 'y': 5,
- 'y0': 33
- },
- {
- 'x': 1416851820000,
- 'y': 1,
- 'y0': 36
- },
- {
- 'x': 1416851850000,
- 'y': 3,
- 'y0': 36
- },
- {
- 'x': 1416851880000,
- 'y': 6,
- 'y0': 25
- },
- {
- 'x': 1416851910000,
- 'y': 4,
- 'y0': 41
- },
- {
- 'x': 1416851940000,
- 'y': 7,
- 'y0': 32
- },
- {
- 'x': 1416851970000,
- 'y': 5,
- 'y0': 55
- },
- {
- 'x': 1416852000000,
- 'y': 2,
- 'y0': 31
- },
- {
- 'x': 1416852030000,
- 'y': 2,
- 'y0': 31
- },
- {
- 'x': 1416852060000,
- 'y': 4,
- 'y0': 42
- },
- {
- 'x': 1416852090000,
- 'y': 6,
- 'y0': 21
- },
- {
- 'x': 1416852120000,
- 'y': 2,
- 'y0': 21
- }
- ]
- },
- {
- 'label': 'php',
- 'values': [
- {
- 'x': 1416850320000,
- 'y': 0,
- 'y0': 16
- },
- {
- 'x': 1416850350000,
- 'y': 1,
- 'y0': 45
- },
- {
- 'x': 1416850380000,
- 'y': 0,
- 'y0': 49
- },
- {
- 'x': 1416850410000,
- 'y': 2,
- 'y0': 40
- },
- {
- 'x': 1416850440000,
- 'y': 0,
- 'y0': 47
- },
- {
- 'x': 1416850470000,
- 'y': 0,
- 'y0': 42
- },
- {
- 'x': 1416850500000,
- 'y': 3,
- 'y0': 29
- },
- {
- 'x': 1416850530000,
- 'y': 1,
- 'y0': 35
- },
- {
- 'x': 1416850560000,
- 'y': 3,
- 'y0': 40
- },
- {
- 'x': 1416850590000,
- 'y': 2,
- 'y0': 56
- },
- {
- 'x': 1416850620000,
- 'y': 2,
- 'y0': 41
- },
- {
- 'x': 1416850650000,
- 'y': 5,
- 'y0': 43
- },
- {
- 'x': 1416850680000,
- 'y': 2,
- 'y0': 43
- },
- {
- 'x': 1416850710000,
- 'y': 1,
- 'y0': 34
- },
- {
- 'x': 1416850740000,
- 'y': 2,
- 'y0': 43
- },
- {
- 'x': 1416850770000,
- 'y': 2,
- 'y0': 45
- },
- {
- 'x': 1416850800000,
- 'y': 1,
- 'y0': 44
- },
- {
- 'x': 1416850830000,
- 'y': 1,
- 'y0': 47
- },
- {
- 'x': 1416850860000,
- 'y': 1,
- 'y0': 52
- },
- {
- 'x': 1416850890000,
- 'y': 1,
- 'y0': 29
- },
- {
- 'x': 1416850920000,
- 'y': 2,
- 'y0': 36
- },
- {
- 'x': 1416850950000,
- 'y': 2,
- 'y0': 49
- },
- {
- 'x': 1416850980000,
- 'y': 0,
- 'y0': 44
- },
- {
- 'x': 1416851010000,
- 'y': 3,
- 'y0': 39
- },
- {
- 'x': 1416851040000,
- 'y': 2,
- 'y0': 37
- },
- {
- 'x': 1416851070000,
- 'y': 2,
- 'y0': 41
- },
- {
- 'x': 1416851100000,
- 'y': 2,
- 'y0': 45
- },
- {
- 'x': 1416851130000,
- 'y': 0,
- 'y0': 44
- },
- {
- 'x': 1416851160000,
- 'y': 1,
- 'y0': 47
- },
- {
- 'x': 1416851190000,
- 'y': 2,
- 'y0': 49
- },
- {
- 'x': 1416851220000,
- 'y': 4,
- 'y0': 51
- },
- {
- 'x': 1416851250000,
- 'y': 0,
- 'y0': 47
- },
- {
- 'x': 1416851280000,
- 'y': 3,
- 'y0': 47
- },
- {
- 'x': 1416851310000,
- 'y': 3,
- 'y0': 39
- },
- {
- 'x': 1416851340000,
- 'y': 2,
- 'y0': 39
- },
- {
- 'x': 1416851370000,
- 'y': 2,
- 'y0': 42
- },
- {
- 'x': 1416851400000,
- 'y': 3,
- 'y0': 48
- },
- {
- 'x': 1416851430000,
- 'y': 1,
- 'y0': 45
- },
- {
- 'x': 1416851460000,
- 'y': 0,
- 'y0': 52
- },
- {
- 'x': 1416851490000,
- 'y': 2,
- 'y0': 40
- },
- {
- 'x': 1416851520000,
- 'y': 1,
- 'y0': 40
- },
- {
- 'x': 1416851550000,
- 'y': 3,
- 'y0': 39
- },
- {
- 'x': 1416851580000,
- 'y': 1,
- 'y0': 46
- },
- {
- 'x': 1416851610000,
- 'y': 2,
- 'y0': 41
- },
- {
- 'x': 1416851640000,
- 'y': 1,
- 'y0': 42
- },
- {
- 'x': 1416851670000,
- 'y': 2,
- 'y0': 34
- },
- {
- 'x': 1416851700000,
- 'y': 3,
- 'y0': 37
- },
- {
- 'x': 1416851730000,
- 'y': 1,
- 'y0': 39
- },
- {
- 'x': 1416851760000,
- 'y': 1,
- 'y0': 33
- },
- {
- 'x': 1416851790000,
- 'y': 1,
- 'y0': 38
- },
- {
- 'x': 1416851820000,
- 'y': 1,
- 'y0': 37
- },
- {
- 'x': 1416851850000,
- 'y': 1,
- 'y0': 39
- },
- {
- 'x': 1416851880000,
- 'y': 1,
- 'y0': 31
- },
- {
- 'x': 1416851910000,
- 'y': 2,
- 'y0': 45
- },
- {
- 'x': 1416851940000,
- 'y': 0,
- 'y0': 39
- },
- {
- 'x': 1416851970000,
- 'y': 0,
- 'y0': 60
- },
- {
- 'x': 1416852000000,
- 'y': 1,
- 'y0': 33
- },
- {
- 'x': 1416852030000,
- 'y': 2,
- 'y0': 33
- },
- {
- 'x': 1416852060000,
- 'y': 1,
- 'y0': 46
- },
- {
- 'x': 1416852090000,
- 'y': 1,
- 'y0': 27
- },
- {
- 'x': 1416852120000,
- 'y': 0,
- 'y0': 23
- }
- ]
- }
- ],
- 'hits': 2595,
- 'xAxisFormatter': function (thing) {
- return moment(thing);
- },
- 'tooltipFormatter': function (d) {
- return d;
- }
-};
diff --git a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/terms/_columns.js b/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/terms/_columns.js
deleted file mode 100644
index 4683640725f2a8..00000000000000
--- a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/terms/_columns.js
+++ /dev/null
@@ -1,146 +0,0 @@
-import _ from 'lodash';
-
-export default {
- 'columns': [
- {
- 'label': 'logstash: index',
- 'xAxisLabel': 'Top 5 extension',
- 'yAxisLabel': 'Count of documents',
- 'series': [
- {
- 'label': 'Count',
- 'values': [
- {
- 'x': 'jpg',
- 'y': 110710
- },
- {
- 'x': 'css',
- 'y': 27376
- },
- {
- 'x': 'png',
- 'y': 16664
- },
- {
- 'x': 'gif',
- 'y': 11264
- },
- {
- 'x': 'php',
- 'y': 5448
- }
- ]
- }
- ],
- 'xAxisFormatter': function (val) {
- if (_.isObject(val)) {
- return JSON.stringify(val);
- }
- else if (val == null) {
- return '';
- }
- else {
- return '' + val;
- }
- },
- 'tooltipFormatter': function (d) {
- return d;
- }
- },
- {
- 'label': '2014.11.12: index',
- 'xAxisLabel': 'Top 5 extension',
- 'yAxisLabel': 'Count of documents',
- 'series': [
- {
- 'label': 'Count',
- 'values': [
- {
- 'x': 'jpg',
- 'y': 110643
- },
- {
- 'x': 'css',
- 'y': 27350
- },
- {
- 'x': 'png',
- 'y': 16648
- },
- {
- 'x': 'gif',
- 'y': 11257
- },
- {
- 'x': 'php',
- 'y': 5440
- }
- ]
- }
- ],
- 'xAxisFormatter': function (val) {
- if (_.isObject(val)) {
- return JSON.stringify(val);
- }
- else if (val == null) {
- return '';
- }
- else {
- return '' + val;
- }
- },
- 'tooltipFormatter': function (d) {
- return d;
- }
- },
- {
- 'label': '2014.11.11: index',
- 'xAxisLabel': 'Top 5 extension',
- 'yAxisLabel': 'Count of documents',
- 'series': [
- {
- 'label': 'Count',
- 'values': [
- {
- 'x': 'jpg',
- 'y': 67
- },
- {
- 'x': 'css',
- 'y': 26
- },
- {
- 'x': 'png',
- 'y': 16
- },
- {
- 'x': 'gif',
- 'y': 7
- },
- {
- 'x': 'php',
- 'y': 8
- }
- ]
- }
- ],
- 'xAxisFormatter': function (val) {
- if (_.isObject(val)) {
- return JSON.stringify(val);
- }
- else if (val == null) {
- return '';
- }
- else {
- return '' + val;
- }
- },
- 'tooltipFormatter': function (d) {
- return d;
- }
- }
- ],
- 'xAxisOrderedValues': ['jpg', 'css', 'png', 'gif', 'php'],
- 'hits': 171462
-};
diff --git a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/terms/_rows.js b/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/terms/_rows.js
deleted file mode 100644
index 2b4ee83eca44c7..00000000000000
--- a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/terms/_rows.js
+++ /dev/null
@@ -1,100 +0,0 @@
-import _ from 'lodash';
-
-export default {
- '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;
- }
- }
- ],
- 'xAxisOrderedValues': ['jpg', 'css', 'png', 'gif', 'php'],
- 'hits': 171458
-};
diff --git a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/terms/_series.js b/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/terms/_series.js
deleted file mode 100644
index f717012d430cf3..00000000000000
--- a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/terms/_series.js
+++ /dev/null
@@ -1,50 +0,0 @@
-import _ from 'lodash';
-
-export default {
- 'label': '',
- 'xAxisLabel': 'Top 5 extension',
- 'xAxisOrderedValues': ['jpg', 'css', 'png', 'gif', 'php'],
- 'yAxisLabel': 'Count of documents',
- 'series': [
- {
- 'label': 'Count',
- 'values': [
- {
- 'x': 'jpg',
- 'y': 110710
- },
- {
- 'x': 'css',
- 'y': 27389
- },
- {
- 'x': 'png',
- 'y': 16661
- },
- {
- 'x': 'gif',
- 'y': 11269
- },
- {
- 'x': 'php',
- 'y': 5447
- }
- ]
- }
- ],
- 'hits': 171476,
- 'xAxisFormatter': function (val) {
- if (_.isObject(val)) {
- return JSON.stringify(val);
- }
- else if (val == null) {
- return '';
- }
- else {
- return '' + val;
- }
- },
- 'tooltipFormatter': function (d) {
- return d;
- }
-};
diff --git a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/terms/_seriesMultiple.js b/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/terms/_seriesMultiple.js
deleted file mode 100644
index 2b86663ab4673e..00000000000000
--- a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/terms/_seriesMultiple.js
+++ /dev/null
@@ -1,72 +0,0 @@
-import _ from 'lodash';
-
-export default {
- 'xAxisOrderedValues': ['_all'],
- 'yAxisLabel': 'Count',
- 'zAxisLabel': 'machine.os.raw: Descending',
- 'yScale': null,
- 'series': [{
- 'label': 'ios',
- 'id': '1',
- 'yAxisFormatter': _.identity,
- 'values': [{
- 'x': '_all',
- 'y': 2820,
- 'series': 'ios'
- }]
- }, {
- 'label': 'win 7',
- 'aggId': '1',
- 'yAxisFormatter': _.identity,
- 'values': [{
- 'x': '_all',
- 'y': 2319,
- 'series': 'win 7'
- }]
- }, {
- 'label': 'win 8',
- 'id': '1',
- 'yAxisFormatter': _.identity,
- 'values': [{
- 'x': '_all',
- 'y': 1835,
- 'series': 'win 8'
- }]
- }, {
- 'label': 'windows xp service pack 2 version 20123452',
- 'id': '1',
- 'yAxisFormatter': _.identity,
- 'values': [{
- 'x': '_all',
- 'y': 734,
- 'series': 'win xp'
- }]
- }, {
- 'label': 'osx',
- 'id': '1',
- 'yAxisFormatter': _.identity,
- 'values': [{
- 'x': '_all',
- 'y': 1352,
- 'series': 'osx'
- }]
- }],
- 'hits': 14005,
- 'xAxisFormatter': function (val) {
- if (_.isObject(val)) {
- return JSON.stringify(val);
- }
- else if (val == null) {
- return '';
- }
- else {
- return '' + val;
- }
- },
- 'yAxisFormatter': function (val) {
- return val;
- },
- 'tooltipFormatter': function (d) {
- return d;
- }
-};
diff --git a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/types/point_series.js b/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/types/point_series.js
deleted file mode 100644
index 03646d08298dd6..00000000000000
--- a/src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/types/point_series.js
+++ /dev/null
@@ -1,128 +0,0 @@
-/*
- * Licensed to Elasticsearch B.V. under one or more contributor
- * license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright
- * ownership. Elasticsearch B.V. licenses this file to you under
- * the Apache License, Version 2.0 (the "License"); you may
- * not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-import expect from '@kbn/expect';
-
-import percentileTestdata from './testdata_linechart_percentile.json';
-import percentileTestdataResult from './testdata_linechart_percentile_result.json';
-
-import { vislibPointSeriesTypes as pointSeriesConfig } from '../../../lib/types/point_series';
-
-describe('Point Series Config Type Class Test Suite', function() {
- let parsedConfig;
- const histogramConfig = {
- type: 'histogram',
- addLegend: true,
- tooltip: {
- show: true,
- },
- categoryAxes: [
- {
- id: 'CategoryAxis-1',
- type: 'category',
- title: {},
- },
- ],
- valueAxes: [
- {
- id: 'ValueAxis-1',
- type: 'value',
- labels: {},
- title: {},
- },
- ],
- };
-
- const data = {
- get: prop => {
- return data[prop] || data.data[prop] || null;
- },
- getLabels: () => [],
- data: {
- hits: 621,
- ordered: {
- date: true,
- interval: 30000,
- max: 1408734982458,
- min: 1408734082458,
- },
- series: [
- { label: 's1', values: [{ x: 1408734060000, y: 8 }] },
- { label: 's2', values: [{ x: 1408734060000, y: 8 }] },
- { label: 's3', values: [{ x: 1408734060000, y: 8 }] },
- { label: 's4', values: [{ x: 1408734060000, y: 8 }] },
- { label: 's5', values: [{ x: 1408734060000, y: 8 }] },
- { label: 's6', values: [{ x: 1408734060000, y: 8 }] },
- { label: 's7', values: [{ x: 1408734060000, y: 8 }] },
- { label: 's8', values: [{ x: 1408734060000, y: 8 }] },
- { label: 's9', values: [{ x: 1408734060000, y: 8 }] },
- { label: 's10', values: [{ x: 1408734060000, y: 8 }] },
- { label: 's11', values: [{ x: 1408734060000, y: 8 }] },
- { label: 's12', values: [{ x: 1408734060000, y: 8 }] },
- { label: 's13', values: [{ x: 1408734060000, y: 8 }] },
- { label: 's14', values: [{ x: 1408734060000, y: 8 }] },
- { label: 's15', values: [{ x: 1408734060000, y: 8 }] },
- { label: 's16', values: [{ x: 1408734060000, y: 8 }] },
- { label: 's17', values: [{ x: 1408734060000, y: 8 }] },
- { label: 's18', values: [{ x: 1408734060000, y: 8 }] },
- { label: 's19', values: [{ x: 1408734060000, y: 8 }] },
- { label: 's20', values: [{ x: 1408734060000, y: 8 }] },
- { label: 's21', values: [{ x: 1408734060000, y: 8 }] },
- { label: 's22', values: [{ x: 1408734060000, y: 8 }] },
- { label: 's23', values: [{ x: 1408734060000, y: 8 }] },
- { label: 's24', values: [{ x: 1408734060000, y: 8 }] },
- { label: 's25', values: [{ x: 1408734060000, y: 8 }] },
- { label: 's26', values: [{ x: 1408734060000, y: 8 }] },
- ],
- xAxisLabel: 'Date Histogram',
- yAxisLabel: 'series',
- yAxisFormatter: () => 'test',
- },
- };
-
- describe('histogram chart', function() {
- beforeEach(function() {
- parsedConfig = pointSeriesConfig.column(histogramConfig, data);
- });
- it('should not throw an error when more than 25 series are provided', function() {
- expect(parsedConfig.error).to.be.undefined;
- });
-
- it('should set axis title and formatter from data', () => {
- expect(parsedConfig.categoryAxes[0].title.text).to.equal(data.data.xAxisLabel);
- expect(parsedConfig.valueAxes[0].labels.axisFormatter).to.not.be.undefined;
- });
- });
-
- describe('line chart', function() {
- beforeEach(function() {
- const percentileDataObj = {
- get: prop => {
- return data[prop] || data.data[prop] || null;
- },
- getLabels: () => [],
- data: percentileTestdata.data,
- };
- parsedConfig = pointSeriesConfig.line(percentileTestdata.cfg, percentileDataObj);
- });
- it('should render a percentile line chart', function() {
- expect(JSON.stringify(parsedConfig)).to.eql(JSON.stringify(percentileTestdataResult));
- });
- });
-});
diff --git a/src/legacy/core_plugins/vis_type_vislib/public/vislib/vislib.js b/src/legacy/core_plugins/vis_type_vislib/public/vislib/vislib.js
deleted file mode 100644
index 024dee60ef2bf4..00000000000000
--- a/src/legacy/core_plugins/vis_type_vislib/public/vislib/vislib.js
+++ /dev/null
@@ -1,43 +0,0 @@
-/*
- * Licensed to Elasticsearch B.V. under one or more contributor
- * license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright
- * ownership. Elasticsearch B.V. licenses this file to you under
- * the Apache License, Version 2.0 (the "License"); you may
- * not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-import './lib/types/pie';
-import './lib/types/point_series';
-import './lib/types';
-import './lib/layout/layout_types';
-import './lib/data';
-import './visualizations/vis_types';
-import { Vis } from './vis';
-
-// prefetched for faster optimization runs
-// end prefetching
-
-/**
- * Provides the Kibana4 Visualization Library
- *
- * @module vislib
- * @main vislib
- * @return {Object} Contains the version number and the Vis Class for creating visualizations
- */
-export function VislibProvider() {
- return {
- version: '0.0.0',
- Vis,
- };
-}
diff --git a/src/legacy/ui/public/field_editor/__snapshots__/field_editor.test.js.snap b/src/legacy/ui/public/field_editor/__snapshots__/field_editor.test.tsx.snap
similarity index 77%
rename from src/legacy/ui/public/field_editor/__snapshots__/field_editor.test.js.snap
rename to src/legacy/ui/public/field_editor/__snapshots__/field_editor.test.tsx.snap
index 19d12f4bbbd4c4..dc11bdfefa46bf 100644
--- a/src/legacy/ui/public/field_editor/__snapshots__/field_editor.test.js.snap
+++ b/src/legacy/ui/public/field_editor/__snapshots__/field_editor.test.tsx.snap
@@ -19,10 +19,31 @@ exports[`FieldEditor should render create new scripted field correctly 1`] = `
isVisible={false}
/>