diff --git a/src/plugins/data/common/search/aggs/agg_types.ts b/src/plugins/data/common/search/aggs/agg_types.ts index 5e8343ba417b4..33485b2fda629 100644 --- a/src/plugins/data/common/search/aggs/agg_types.ts +++ b/src/plugins/data/common/search/aggs/agg_types.ts @@ -66,7 +66,6 @@ export const getAggTypes = () => ({ { name: BUCKET_TYPES.FILTERS, fn: buckets.getFiltersBucketAgg }, { name: BUCKET_TYPES.SIGNIFICANT_TERMS, fn: buckets.getSignificantTermsBucketAgg }, { name: BUCKET_TYPES.SIGNIFICANT_TEXT, fn: buckets.getSignificantTextBucketAgg }, - { name: BUCKET_TYPES.GEOHASH_GRID, fn: buckets.getGeoHashBucketAgg }, { name: BUCKET_TYPES.GEOTILE_GRID, fn: buckets.getGeoTitleBucketAgg }, { name: BUCKET_TYPES.SAMPLER, fn: buckets.getSamplerBucketAgg }, { name: BUCKET_TYPES.DIVERSIFIED_SAMPLER, fn: buckets.getDiversifiedSamplerBucketAgg }, @@ -84,7 +83,6 @@ export const getAggTypesFunctions = () => [ buckets.aggDateRange, buckets.aggRange, buckets.aggGeoTile, - buckets.aggGeoHash, buckets.aggHistogram, buckets.aggDateHistogram, buckets.aggTerms, diff --git a/src/plugins/data/common/search/aggs/aggs_service.test.ts b/src/plugins/data/common/search/aggs/aggs_service.test.ts index c12b2d93b029d..c7f3fc54bfaf4 100644 --- a/src/plugins/data/common/search/aggs/aggs_service.test.ts +++ b/src/plugins/data/common/search/aggs/aggs_service.test.ts @@ -65,7 +65,6 @@ describe('Aggs service', () => { "filters", "significant_terms", "significant_text", - "geohash_grid", "geotile_grid", "sampler", "diversified_sampler", @@ -121,7 +120,6 @@ describe('Aggs service', () => { "filters", "significant_terms", "significant_text", - "geohash_grid", "geotile_grid", "sampler", "diversified_sampler", diff --git a/src/plugins/data/common/search/aggs/buckets/bucket_agg_types.ts b/src/plugins/data/common/search/aggs/buckets/bucket_agg_types.ts index fa34c7f6535c1..91b0bc1b56fc3 100644 --- a/src/plugins/data/common/search/aggs/buckets/bucket_agg_types.ts +++ b/src/plugins/data/common/search/aggs/buckets/bucket_agg_types.ts @@ -18,7 +18,6 @@ export enum BUCKET_TYPES { RARE_TERMS = 'rare_terms', SIGNIFICANT_TERMS = 'significant_terms', SIGNIFICANT_TEXT = 'significant_text', - GEOHASH_GRID = 'geohash_grid', GEOTILE_GRID = 'geotile_grid', DATE_HISTOGRAM = 'date_histogram', SAMPLER = 'sampler', diff --git a/src/plugins/data/common/search/aggs/buckets/geo_hash.test.ts b/src/plugins/data/common/search/aggs/buckets/geo_hash.test.ts deleted file mode 100644 index efdbc921290a3..0000000000000 --- a/src/plugins/data/common/search/aggs/buckets/geo_hash.test.ts +++ /dev/null @@ -1,206 +0,0 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Elastic License - * 2.0 and the Server Side Public License, v 1; you may not use this file except - * in compliance with, at your election, the Elastic License 2.0 or the Server - * Side Public License, v 1. - */ - -import { getGeoHashBucketAgg } from './geo_hash'; -import { AggConfigs, IAggConfigs } from '../agg_configs'; -import { mockAggTypesRegistry } from '../test_helpers'; -import { BUCKET_TYPES } from './bucket_agg_types'; -import { BucketAggType, IBucketAggConfig } from './bucket_agg_type'; - -describe('Geohash Agg', () => { - let geoHashBucketAgg: BucketAggType; - - beforeEach(() => { - geoHashBucketAgg = getGeoHashBucketAgg(); - }); - - const getAggConfigs = (params?: Record) => { - const indexPattern = { - id: '1234', - title: 'logstash-*', - fields: { - getByName: () => field, - filter: () => [field], - }, - } as any; - - const field = { - name: 'location', - indexPattern, - }; - - return new AggConfigs( - indexPattern, - [ - { - id: BUCKET_TYPES.GEOHASH_GRID, - type: BUCKET_TYPES.GEOHASH_GRID, - schema: 'segment', - params: { - field: { - name: 'location', - }, - isFilteredByCollar: true, - useGeocentroid: true, - mapZoom: 10, - mapBounds: { - top_left: { lat: 1.0, lon: -1.0 }, - bottom_right: { lat: -1.0, lon: 1.0 }, - }, - ...params, - }, - }, - ], - { - typesRegistry: mockAggTypesRegistry(), - }, - jest.fn() - ); - }; - - describe('precision parameter', () => { - const PRECISION_PARAM_INDEX = 2; - - let precisionParam: any; - - beforeEach(() => { - precisionParam = geoHashBucketAgg.params[PRECISION_PARAM_INDEX]; - }); - - test('should select precision parameter', () => { - expect(precisionParam.name).toEqual('precision'); - }); - }); - - test('produces the expected expression ast', () => { - const aggConfigs = getAggConfigs(); - expect(aggConfigs.aggs[0].toExpressionAst()).toMatchInlineSnapshot(` - Object { - "chain": Array [ - Object { - "arguments": Object { - "autoPrecision": Array [ - true, - ], - "enabled": Array [ - true, - ], - "field": Array [ - "location", - ], - "id": Array [ - "geohash_grid", - ], - "isFilteredByCollar": Array [ - true, - ], - "precision": Array [ - 2, - ], - "schema": Array [ - "segment", - ], - "useGeocentroid": Array [ - true, - ], - }, - "function": "aggGeoHash", - "type": "function", - }, - ], - "type": "expression", - } - `); - }); - - describe('getRequestAggs', () => { - describe('initial aggregation creation', () => { - let aggConfigs: IAggConfigs; - let geoHashGridAgg: IBucketAggConfig; - - beforeEach(() => { - aggConfigs = getAggConfigs(); - geoHashGridAgg = aggConfigs.aggs[0] as IBucketAggConfig; - }); - - test('should create filter, geohash_grid, and geo_centroid aggregations', () => { - const requestAggs = geoHashBucketAgg.getRequestAggs(geoHashGridAgg) as IBucketAggConfig[]; - - expect(requestAggs.length).toEqual(3); - expect(requestAggs[0].type.name).toEqual('filter'); - expect(requestAggs[1].type.name).toEqual('geohash_grid'); - expect(requestAggs[2].type.name).toEqual('geo_centroid'); - }); - }); - }); - - describe('aggregation options', () => { - test('should only create geohash_grid and geo_centroid aggregations when isFilteredByCollar is false', () => { - const aggConfigs = getAggConfigs({ isFilteredByCollar: false }); - const requestAggs = geoHashBucketAgg.getRequestAggs( - aggConfigs.aggs[0] as IBucketAggConfig - ) as IBucketAggConfig[]; - - expect(requestAggs.length).toEqual(2); - expect(requestAggs[0].type.name).toEqual('geohash_grid'); - expect(requestAggs[1].type.name).toEqual('geo_centroid'); - }); - - test('should only create filter and geohash_grid aggregations when useGeocentroid is false', () => { - const aggConfigs = getAggConfigs({ useGeocentroid: false }); - const requestAggs = geoHashBucketAgg.getRequestAggs( - aggConfigs.aggs[0] as IBucketAggConfig - ) as IBucketAggConfig[]; - - expect(requestAggs.length).toEqual(2); - expect(requestAggs[0].type.name).toEqual('filter'); - expect(requestAggs[1].type.name).toEqual('geohash_grid'); - }); - }); - - describe('aggregation creation after map interaction', () => { - let originalRequestAggs: IBucketAggConfig[]; - - beforeEach(() => { - originalRequestAggs = geoHashBucketAgg.getRequestAggs( - getAggConfigs({ - boundingBox: { - top_left: { lat: 1, lon: -1 }, - bottom_right: { lat: -1, lon: 1 }, - }, - }).aggs[0] as IBucketAggConfig - ) as IBucketAggConfig[]; - }); - - test('should change geo_bounding_box filter aggregation and vis session state when map movement is outside map collar', () => { - const [, geoBoxingBox] = geoHashBucketAgg.getRequestAggs( - getAggConfigs({ - boundingBox: { - top_left: { lat: 10.0, lon: -10.0 }, - bottom_right: { lat: 9.0, lon: -9.0 }, - }, - }).aggs[0] as IBucketAggConfig - ) as IBucketAggConfig[]; - - expect(originalRequestAggs[1].params).not.toEqual(geoBoxingBox.params); - }); - - test('should not change geo_bounding_box filter aggregation and vis session state when map movement is within map collar', () => { - const [, geoBoxingBox] = geoHashBucketAgg.getRequestAggs( - getAggConfigs({ - boundingBox: { - top_left: { lat: 1, lon: -1 }, - bottom_right: { lat: -1, lon: 1 }, - }, - }).aggs[0] as IBucketAggConfig - ) as IBucketAggConfig[]; - - expect(originalRequestAggs[1].params).toEqual(geoBoxingBox.params); - }); - }); -}); diff --git a/src/plugins/data/common/search/aggs/buckets/geo_hash.ts b/src/plugins/data/common/search/aggs/buckets/geo_hash.ts deleted file mode 100644 index bec2e06efca1f..0000000000000 --- a/src/plugins/data/common/search/aggs/buckets/geo_hash.ts +++ /dev/null @@ -1,121 +0,0 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Elastic License - * 2.0 and the Server Side Public License, v 1; you may not use this file except - * in compliance with, at your election, the Elastic License 2.0 or the Server - * Side Public License, v 1. - */ - -import { i18n } from '@kbn/i18n'; -import { GeoBoundingBox, geoBoundingBoxToAst } from '../../expressions'; - -import { BucketAggType, IBucketAggConfig } from './bucket_agg_type'; -import { KBN_FIELD_TYPES } from '../../..'; -import { BUCKET_TYPES } from './bucket_agg_types'; -import { aggGeoHashFnName } from './geo_hash_fn'; -import { BaseAggParams } from '../types'; - -const defaultBoundingBox = { - top_left: { lat: 1, lon: 1 }, - bottom_right: { lat: 0, lon: 0 }, -}; - -const defaultPrecision = 2; - -const geohashGridTitle = i18n.translate('data.search.aggs.buckets.geohashGridTitle', { - defaultMessage: 'Geohash', -}); - -export interface AggParamsGeoHash extends BaseAggParams { - field: string; - autoPrecision?: boolean; - precision?: number; - useGeocentroid?: boolean; - isFilteredByCollar?: boolean; - boundingBox?: GeoBoundingBox; -} - -export const getGeoHashBucketAgg = () => - new BucketAggType({ - name: BUCKET_TYPES.GEOHASH_GRID, - expressionName: aggGeoHashFnName, - title: geohashGridTitle, - makeLabel: () => geohashGridTitle, - params: [ - { - name: 'field', - type: 'field', - filterFieldTypes: KBN_FIELD_TYPES.GEO_POINT, - }, - { - name: 'autoPrecision', - default: true, - write: () => {}, - }, - { - name: 'precision', - default: defaultPrecision, - write(aggConfig, output) { - output.params.precision = aggConfig.params.precision; - }, - }, - { - name: 'useGeocentroid', - default: true, - write: () => {}, - }, - { - name: 'isFilteredByCollar', - default: true, - write: () => {}, - }, - { - name: 'boundingBox', - default: null, - write: () => {}, - toExpressionAst: geoBoundingBoxToAst, - }, - ], - getRequestAggs(agg) { - const aggs = []; - const params = agg.params; - - if (params.isFilteredByCollar && agg.getField()) { - aggs.push( - agg.aggConfigs.createAggConfig( - { - type: 'filter', - id: 'filter_agg', - enabled: true, - params: { - geo_bounding_box: { - ignore_unmapped: true, - [agg.getField().name]: params.boundingBox || defaultBoundingBox, - }, - }, - } as any, - { addToAggConfigs: false } - ) - ); - } - - aggs.push(agg); - - if (params.useGeocentroid) { - aggs.push( - agg.aggConfigs.createAggConfig( - { - type: 'geo_centroid', - enabled: true, - params: { - field: agg.getField(), - }, - }, - { addToAggConfigs: false } - ) - ); - } - - return aggs; - }, - }); diff --git a/src/plugins/data/common/search/aggs/buckets/geo_hash_fn.test.ts b/src/plugins/data/common/search/aggs/buckets/geo_hash_fn.test.ts deleted file mode 100644 index 0df8c42f70bfb..0000000000000 --- a/src/plugins/data/common/search/aggs/buckets/geo_hash_fn.test.ts +++ /dev/null @@ -1,95 +0,0 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Elastic License - * 2.0 and the Server Side Public License, v 1; you may not use this file except - * in compliance with, at your election, the Elastic License 2.0 or the Server - * Side Public License, v 1. - */ - -import { functionWrapper } from '../test_helpers'; -import { aggGeoHash } from './geo_hash_fn'; - -describe('agg_expression_functions', () => { - describe('aggGeoHash', () => { - const fn = functionWrapper(aggGeoHash()); - - test('fills in defaults when only required args are provided', () => { - const actual = fn({ - field: 'geo_field', - }); - expect(actual).toMatchInlineSnapshot(` - Object { - "type": "agg_type", - "value": Object { - "enabled": true, - "id": undefined, - "params": Object { - "autoPrecision": undefined, - "boundingBox": undefined, - "customLabel": undefined, - "field": "geo_field", - "isFilteredByCollar": undefined, - "json": undefined, - "precision": undefined, - "useGeocentroid": undefined, - }, - "schema": undefined, - "type": "geohash_grid", - }, - } - `); - }); - - test('includes optional params when they are provided', () => { - const actual = fn({ - field: 'geo_field', - autoPrecision: false, - precision: 10, - useGeocentroid: true, - isFilteredByCollar: false, - boundingBox: { - type: 'geo_bounding_box', - top_left: [-74.1, 40.73], - bottom_right: [-71.12, 40.01], - }, - }); - - expect(actual.value).toMatchInlineSnapshot(` - Object { - "enabled": true, - "id": undefined, - "params": Object { - "autoPrecision": false, - "boundingBox": Object { - "bottom_right": Array [ - -71.12, - 40.01, - ], - "top_left": Array [ - -74.1, - 40.73, - ], - }, - "customLabel": undefined, - "field": "geo_field", - "isFilteredByCollar": false, - "json": undefined, - "precision": 10, - "useGeocentroid": true, - }, - "schema": undefined, - "type": "geohash_grid", - } - `); - }); - - test('correctly parses json string argument', () => { - const actual = fn({ - field: 'geo_field', - json: '{ "foo": true }', - }); - - expect(actual.value.params.json).toEqual('{ "foo": true }'); - }); - }); -}); diff --git a/src/plugins/data/common/search/aggs/buckets/geo_hash_fn.ts b/src/plugins/data/common/search/aggs/buckets/geo_hash_fn.ts deleted file mode 100644 index c1028133e56b1..0000000000000 --- a/src/plugins/data/common/search/aggs/buckets/geo_hash_fn.ts +++ /dev/null @@ -1,122 +0,0 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Elastic License - * 2.0 and the Server Side Public License, v 1; you may not use this file except - * in compliance with, at your election, the Elastic License 2.0 or the Server - * Side Public License, v 1. - */ - -import { omit } from 'lodash'; -import { i18n } from '@kbn/i18n'; -import { Assign } from '@kbn/utility-types'; -import { ExpressionFunctionDefinition } from '@kbn/expressions-plugin/common'; - -import { GeoBoundingBoxOutput } from '../../expressions'; -import { AggExpressionType, AggExpressionFunctionArgs, BUCKET_TYPES } from '..'; - -export const aggGeoHashFnName = 'aggGeoHash'; - -type Input = any; -type AggArgs = AggExpressionFunctionArgs; - -type Arguments = Assign; -type Output = AggExpressionType; -type FunctionDefinition = ExpressionFunctionDefinition< - typeof aggGeoHashFnName, - Input, - Arguments, - Output ->; - -export const aggGeoHash = (): FunctionDefinition => ({ - name: aggGeoHashFnName, - help: i18n.translate('data.search.aggs.function.buckets.geoHash.help', { - defaultMessage: 'Generates a serialized agg config for a Geo Hash agg', - }), - type: 'agg_type', - args: { - id: { - types: ['string'], - help: i18n.translate('data.search.aggs.buckets.geoHash.id.help', { - defaultMessage: 'ID for this aggregation', - }), - }, - enabled: { - types: ['boolean'], - default: true, - help: i18n.translate('data.search.aggs.buckets.geoHash.enabled.help', { - defaultMessage: 'Specifies whether this aggregation should be enabled', - }), - }, - schema: { - types: ['string'], - help: i18n.translate('data.search.aggs.buckets.geoHash.schema.help', { - defaultMessage: 'Schema to use for this aggregation', - }), - }, - field: { - types: ['string'], - required: true, - help: i18n.translate('data.search.aggs.buckets.geoHash.field.help', { - defaultMessage: 'Field to use for this aggregation', - }), - }, - useGeocentroid: { - types: ['boolean'], - help: i18n.translate('data.search.aggs.buckets.geoHash.useGeocentroid.help', { - defaultMessage: 'Specifies whether to use geocentroid for this aggregation', - }), - }, - autoPrecision: { - types: ['boolean'], - help: i18n.translate('data.search.aggs.buckets.geoHash.autoPrecision.help', { - defaultMessage: 'Specifies whether to use auto precision for this aggregation', - }), - }, - isFilteredByCollar: { - types: ['boolean'], - help: i18n.translate('data.search.aggs.buckets.geoHash.isFilteredByCollar.help', { - defaultMessage: 'Specifies whether to filter by collar', - }), - }, - boundingBox: { - types: ['geo_bounding_box'], - help: i18n.translate('data.search.aggs.buckets.geoHash.boundingBox.help', { - defaultMessage: 'Filter results based on a point location within a bounding box', - }), - }, - precision: { - types: ['number'], - help: i18n.translate('data.search.aggs.buckets.geoHash.precision.help', { - defaultMessage: 'Precision to use for this aggregation.', - }), - }, - json: { - types: ['string'], - help: i18n.translate('data.search.aggs.buckets.geoHash.json.help', { - defaultMessage: 'Advanced json to include when the agg is sent to Elasticsearch', - }), - }, - customLabel: { - types: ['string'], - help: i18n.translate('data.search.aggs.buckets.geoHash.customLabel.help', { - defaultMessage: 'Represents a custom label for this aggregation', - }), - }, - }, - fn: (input, { id, enabled, schema, boundingBox, ...params }) => { - return { - type: 'agg_type', - value: { - id, - enabled, - schema, - params: { - ...params, - boundingBox: boundingBox && omit(boundingBox, 'type'), - }, - type: BUCKET_TYPES.GEOHASH_GRID, - }, - }; - }, -}); diff --git a/src/plugins/data/common/search/aggs/buckets/index.ts b/src/plugins/data/common/search/aggs/buckets/index.ts index 1f673f96199fd..31bc7cf9ca544 100644 --- a/src/plugins/data/common/search/aggs/buckets/index.ts +++ b/src/plugins/data/common/search/aggs/buckets/index.ts @@ -17,8 +17,6 @@ export * from './filter_fn'; export * from './filter'; export * from './filters_fn'; export * from './filters'; -export * from './geo_hash_fn'; -export * from './geo_hash'; export * from './geo_tile_fn'; export * from './geo_tile'; export * from './histogram_fn'; diff --git a/src/plugins/data/common/search/aggs/types.ts b/src/plugins/data/common/search/aggs/types.ts index 4bd20b63945a2..06320728105d2 100644 --- a/src/plugins/data/common/search/aggs/types.ts +++ b/src/plugins/data/common/search/aggs/types.ts @@ -28,7 +28,6 @@ import { aggFilters, aggGeoBounds, aggGeoCentroid, - aggGeoHash, aggGeoTile, aggHistogram, aggIpRange, @@ -58,7 +57,6 @@ import { AggParamsFilters, AggParamsGeoBounds, AggParamsGeoCentroid, - AggParamsGeoHash, AggParamsGeoTile, AggParamsHistogram, AggParamsIpRange, @@ -182,7 +180,6 @@ interface SerializedAggParamsMapping { [BUCKET_TYPES.SIGNIFICANT_TERMS]: AggParamsSignificantTerms; [BUCKET_TYPES.SIGNIFICANT_TEXT]: AggParamsSignificantText; [BUCKET_TYPES.GEOTILE_GRID]: AggParamsGeoTile; - [BUCKET_TYPES.GEOHASH_GRID]: AggParamsGeoHash; [BUCKET_TYPES.HISTOGRAM]: AggParamsHistogram; [BUCKET_TYPES.DATE_HISTOGRAM]: AggParamsDateHistogram; [BUCKET_TYPES.TERMS]: AggParamsTermsSerialized; @@ -229,7 +226,6 @@ export interface AggParamsMapping { [BUCKET_TYPES.SIGNIFICANT_TERMS]: AggParamsSignificantTerms; [BUCKET_TYPES.SIGNIFICANT_TEXT]: AggParamsSignificantText; [BUCKET_TYPES.GEOTILE_GRID]: AggParamsGeoTile; - [BUCKET_TYPES.GEOHASH_GRID]: AggParamsGeoHash; [BUCKET_TYPES.HISTOGRAM]: AggParamsHistogram; [BUCKET_TYPES.DATE_HISTOGRAM]: AggParamsDateHistogram; [BUCKET_TYPES.TERMS]: AggParamsTerms; @@ -277,7 +273,6 @@ export interface AggFunctionsMapping { aggDateRange: ReturnType; aggRange: ReturnType; aggGeoTile: ReturnType; - aggGeoHash: ReturnType; aggHistogram: ReturnType; aggDateHistogram: ReturnType; aggTerms: ReturnType; diff --git a/src/plugins/data/public/search/aggs/aggs_service.test.ts b/src/plugins/data/public/search/aggs/aggs_service.test.ts index 9742314478704..e348779d6190d 100644 --- a/src/plugins/data/public/search/aggs/aggs_service.test.ts +++ b/src/plugins/data/public/search/aggs/aggs_service.test.ts @@ -52,7 +52,7 @@ describe('AggsService - public', () => { test('registers default agg types', () => { service.setup(setupDeps); const start = service.start(startDeps); - expect(start.types.getAll().buckets.length).toBe(17); + expect(start.types.getAll().buckets.length).toBe(16); expect(start.types.getAll().metrics.length).toBe(27); }); @@ -68,7 +68,7 @@ describe('AggsService - public', () => { ); const start = service.start(startDeps); - expect(start.types.getAll().buckets.length).toBe(18); + expect(start.types.getAll().buckets.length).toBe(17); expect(start.types.getAll().buckets.some(({ name }) => name === 'foo')).toBe(true); expect(start.types.getAll().metrics.length).toBe(28); expect(start.types.getAll().metrics.some(({ name }) => name === 'bar')).toBe(true); diff --git a/src/plugins/vis_default_editor/public/components/agg_params_map.ts b/src/plugins/vis_default_editor/public/components/agg_params_map.ts index e7361af3b7e6d..7802da7bf9e2f 100644 --- a/src/plugins/vis_default_editor/public/components/agg_params_map.ts +++ b/src/plugins/vis_default_editor/public/components/agg_params_map.ts @@ -24,12 +24,6 @@ const buckets = { [BUCKET_TYPES.FILTERS]: { filters: controls.FiltersParamEditor, }, - [BUCKET_TYPES.GEOHASH_GRID]: { - autoPrecision: controls.AutoPrecisionParamEditor, - precision: controls.PrecisionParamEditor, - useGeocentroid: controls.UseGeocentroidParamEditor, - isFilteredByCollar: controls.IsFilteredByCollarParamEditor, - }, [BUCKET_TYPES.HISTOGRAM]: { interval: controls.NumberIntervalParamEditor, maxBars: controls.MaxBarsParamEditor, diff --git a/src/plugins/vis_default_editor/public/components/controls/auto_precision.tsx b/src/plugins/vis_default_editor/public/components/controls/auto_precision.tsx deleted file mode 100644 index 7e2244216d4f2..0000000000000 --- a/src/plugins/vis_default_editor/public/components/controls/auto_precision.tsx +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Elastic License - * 2.0 and the Server Side Public License, v 1; you may not use this file except - * in compliance with, at your election, the Elastic License 2.0 or the Server - * Side Public License, v 1. - */ - -import React from 'react'; - -import { EuiSwitch, EuiFormRow } from '@elastic/eui'; -import { i18n } from '@kbn/i18n'; -import { AggParamEditorProps } from '../agg_param_props'; - -function AutoPrecisionParamEditor({ value = false, setValue }: AggParamEditorProps) { - const label = i18n.translate('visDefaultEditor.controls.changePrecisionLabel', { - defaultMessage: 'Change precision on map zoom', - }); - - return ( - - setValue(ev.target.checked)} - /> - - ); -} - -export { AutoPrecisionParamEditor }; diff --git a/src/plugins/vis_default_editor/public/components/controls/index.ts b/src/plugins/vis_default_editor/public/components/controls/index.ts index 6c54c4fd0d54a..3d040130b2acd 100644 --- a/src/plugins/vis_default_editor/public/components/controls/index.ts +++ b/src/plugins/vis_default_editor/public/components/controls/index.ts @@ -6,7 +6,6 @@ * Side Public License, v 1. */ -export { AutoPrecisionParamEditor } from './auto_precision'; export { DateRangesParamEditor } from './date_ranges'; export { DropPartialsParamEditor } from './drop_partials'; export { ExtendedBoundsParamEditor } from './extended_bounds'; @@ -16,7 +15,6 @@ export { HasExtendedBoundsParamEditor } from './has_extended_bounds'; export { IncludeExcludeParamEditor } from './include_exclude'; export { IpRangesParamEditor } from './ip_ranges'; export { IpRangeTypeParamEditor } from './ip_range_type'; -export { IsFilteredByCollarParamEditor } from './is_filtered_by_collar'; export { MetricAggParamEditor } from './metric_agg'; export { MinDocCountParamEditor } from './min_doc_count'; export { MissingBucketParamEditor } from './missing_bucket'; @@ -26,7 +24,6 @@ export { OtherBucketParamEditor } from './other_bucket'; export { OrderAggParamEditor } from './order_agg'; export { PercentilesEditor } from './percentiles'; export { PercentileRanksEditor } from './percentile_ranks'; -export { PrecisionParamEditor } from './precision'; export { RangesControl } from './range_control'; export { RawJsonParamEditor } from './raw_json'; export { ScaleMetricsParamEditor } from './scale_metrics'; @@ -40,5 +37,4 @@ export { TopFieldParamEditor } from './top_field'; export { TopSizeParamEditor } from './top_size'; export { TopSortFieldParamEditor } from './top_sort_field'; export { OrderParamEditor } from './order'; -export { UseGeocentroidParamEditor } from './use_geocentroid'; export { MaxBarsParamEditor } from './max_bars'; diff --git a/src/plugins/vis_default_editor/public/components/controls/is_filtered_by_collar.tsx b/src/plugins/vis_default_editor/public/components/controls/is_filtered_by_collar.tsx deleted file mode 100644 index eebc68de54387..0000000000000 --- a/src/plugins/vis_default_editor/public/components/controls/is_filtered_by_collar.tsx +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Elastic License - * 2.0 and the Server Side Public License, v 1; you may not use this file except - * in compliance with, at your election, the Elastic License 2.0 or the Server - * Side Public License, v 1. - */ - -import React from 'react'; -import { i18n } from '@kbn/i18n'; -import { SwitchParamEditor } from './switch'; -import { AggParamEditorProps } from '../agg_param_props'; - -function IsFilteredByCollarParamEditor(props: AggParamEditorProps) { - return ( - - ); -} - -export { IsFilteredByCollarParamEditor }; diff --git a/src/plugins/vis_default_editor/public/components/controls/precision.tsx b/src/plugins/vis_default_editor/public/components/controls/precision.tsx deleted file mode 100644 index 872c254cc9105..0000000000000 --- a/src/plugins/vis_default_editor/public/components/controls/precision.tsx +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Elastic License - * 2.0 and the Server Side Public License, v 1; you may not use this file except - * in compliance with, at your election, the Elastic License 2.0 or the Server - * Side Public License, v 1. - */ - -import React from 'react'; - -import { EuiRange, EuiFormRow } from '@elastic/eui'; -import { i18n } from '@kbn/i18n'; -import { IUiSettingsClient } from '@kbn/core/public'; - -import { useKibana } from '@kbn/kibana-react-plugin/public'; -import { AggParamEditorProps } from '../agg_param_props'; - -function PrecisionParamEditor({ agg, value, setValue }: AggParamEditorProps) { - const { services } = useKibana<{ uiSettings: IUiSettingsClient }>(); - const label = i18n.translate('visDefaultEditor.controls.precisionLabel', { - defaultMessage: 'Precision', - }); - - if (agg.params.autoPrecision) { - return null; - } - - return ( - - setValue(Number(ev.currentTarget.value))} - data-test-subj={`visEditorMapPrecision${agg.id}`} - showValue - compressed - /> - - ); -} - -export { PrecisionParamEditor }; diff --git a/src/plugins/vis_default_editor/public/components/controls/use_geocentroid.tsx b/src/plugins/vis_default_editor/public/components/controls/use_geocentroid.tsx deleted file mode 100644 index 613921c40288b..0000000000000 --- a/src/plugins/vis_default_editor/public/components/controls/use_geocentroid.tsx +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Elastic License - * 2.0 and the Server Side Public License, v 1; you may not use this file except - * in compliance with, at your election, the Elastic License 2.0 or the Server - * Side Public License, v 1. - */ - -import React from 'react'; -import { EuiSwitch, EuiFormRow } from '@elastic/eui'; -import { i18n } from '@kbn/i18n'; -import { AggParamEditorProps } from '../agg_param_props'; - -function UseGeocentroidParamEditor({ value = false, setValue }: AggParamEditorProps) { - const label = i18n.translate('visDefaultEditor.controls.placeMarkersOffGridLabel', { - defaultMessage: 'Place markers off grid (use geocentroid)', - }); - - return ( - - setValue(ev.target.checked)} - /> - - ); -} - -export { UseGeocentroidParamEditor }; diff --git a/src/plugins/vis_types/gauge/public/vis_type/gauge.tsx b/src/plugins/vis_types/gauge/public/vis_type/gauge.tsx index d2e722c88717a..264acd660252d 100644 --- a/src/plugins/vis_types/gauge/public/vis_type/gauge.tsx +++ b/src/plugins/vis_types/gauge/public/vis_type/gauge.tsx @@ -118,7 +118,6 @@ export const getGaugeVisTypeDefinition = ( min: 0, max: 1, aggFilter: [ - '!geohash_grid', '!geotile_grid', '!filter', '!sampler', diff --git a/src/plugins/vis_types/gauge/public/vis_type/goal.tsx b/src/plugins/vis_types/gauge/public/vis_type/goal.tsx index 1e63652f5bd5f..52fc8aa4e763f 100644 --- a/src/plugins/vis_types/gauge/public/vis_type/goal.tsx +++ b/src/plugins/vis_types/gauge/public/vis_type/goal.tsx @@ -110,7 +110,6 @@ export const getGoalVisTypeDefinition = ( min: 0, max: 1, aggFilter: [ - '!geohash_grid', '!geotile_grid', '!filter', '!sampler', diff --git a/src/plugins/vis_types/heatmap/public/sample_vis.test.mocks.ts b/src/plugins/vis_types/heatmap/public/sample_vis.test.mocks.ts index 89ede55b951ef..8c77809bb7cb6 100644 --- a/src/plugins/vis_types/heatmap/public/sample_vis.test.mocks.ts +++ b/src/plugins/vis_types/heatmap/public/sample_vis.test.mocks.ts @@ -106,7 +106,7 @@ export const sampleHeatmapVis = { title: 'X-axis', min: 0, max: 1, - aggFilter: ['!geohash_grid', '!geotile_grid', '!filter'], + aggFilter: ['!geotile_grid', '!filter'], editor: false, params: [], }, @@ -116,7 +116,7 @@ export const sampleHeatmapVis = { title: 'Split series', min: 0, max: 3, - aggFilter: ['!geohash_grid', '!geotile_grid', '!filter'], + aggFilter: ['!geotile_grid', '!filter'], editor: false, params: [], }, @@ -126,7 +126,7 @@ export const sampleHeatmapVis = { title: 'Split chart', min: 0, max: 1, - aggFilter: ['!geohash_grid', '!geotile_grid', '!filter'], + aggFilter: ['!geotile_grid', '!filter'], params: [ { name: 'row', diff --git a/src/plugins/vis_types/heatmap/public/vis_type/heatmap.tsx b/src/plugins/vis_types/heatmap/public/vis_type/heatmap.tsx index 336da6e2d8041..6c4b63c1095a7 100644 --- a/src/plugins/vis_types/heatmap/public/vis_type/heatmap.tsx +++ b/src/plugins/vis_types/heatmap/public/vis_type/heatmap.tsx @@ -101,7 +101,6 @@ export const getHeatmapVisTypeDefinition = ({ min: 0, max: 1, aggFilter: [ - '!geohash_grid', '!geotile_grid', '!filter', '!sampler', @@ -118,7 +117,6 @@ export const getHeatmapVisTypeDefinition = ({ min: 0, max: 1, aggFilter: [ - '!geohash_grid', '!geotile_grid', '!filter', '!sampler', @@ -142,7 +140,6 @@ export const getHeatmapVisTypeDefinition = ({ min: 0, max: 1, aggFilter: [ - '!geohash_grid', '!geotile_grid', '!filter', '!sampler', diff --git a/src/plugins/vis_types/metric/public/metric_vis_type.ts b/src/plugins/vis_types/metric/public/metric_vis_type.ts index b39cde5e07fc4..32a201e82f31d 100644 --- a/src/plugins/vis_types/metric/public/metric_vis_type.ts +++ b/src/plugins/vis_types/metric/public/metric_vis_type.ts @@ -91,7 +91,6 @@ export const createMetricVisTypeDefinition = (): VisTypeDefinition => min: 0, max: 1, aggFilter: [ - '!geohash_grid', '!geotile_grid', '!filter', '!sampler', diff --git a/src/plugins/vis_types/pie/public/sample_vis.test.mocks.ts b/src/plugins/vis_types/pie/public/sample_vis.test.mocks.ts index 58a512d95bd64..fdf731224d8d7 100644 --- a/src/plugins/vis_types/pie/public/sample_vis.test.mocks.ts +++ b/src/plugins/vis_types/pie/public/sample_vis.test.mocks.ts @@ -93,7 +93,6 @@ export const samplePieVis = { min: 0, max: null, aggFilter: [ - '!geohash_grid', '!geotile_grid', '!filter', '!sampler', @@ -113,7 +112,6 @@ export const samplePieVis = { min: 0, max: 1, aggFilter: [ - '!geohash_grid', '!geotile_grid', '!filter', '!sampler', diff --git a/src/plugins/vis_types/pie/public/vis_type/pie.ts b/src/plugins/vis_types/pie/public/vis_type/pie.ts index 8d4b7b6828e39..dfe88e3191a91 100644 --- a/src/plugins/vis_types/pie/public/vis_type/pie.ts +++ b/src/plugins/vis_types/pie/public/vis_type/pie.ts @@ -90,7 +90,6 @@ export const getPieVisTypeDefinition = ({ min: 0, max: Infinity, aggFilter: [ - '!geohash_grid', '!geotile_grid', '!filter', '!sampler', @@ -110,7 +109,6 @@ export const getPieVisTypeDefinition = ({ min: 0, max: 1, aggFilter: [ - '!geohash_grid', '!geotile_grid', '!filter', '!sampler', diff --git a/src/plugins/vis_types/vislib/public/fixtures/mock_data/geohash/_columns.js b/src/plugins/vis_types/vislib/public/fixtures/mock_data/geohash/_columns.js deleted file mode 100644 index aa32ef571cfe4..0000000000000 --- a/src/plugins/vis_types/vislib/public/fixtures/mock_data/geohash/_columns.js +++ /dev/null @@ -1,2907 +0,0 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Elastic License - * 2.0 and the Server Side Public License, v 1; you may not use this file except - * in compliance with, at your election, the Elastic License 2.0 or the Server - * Side Public License, v 1. - */ - -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/plugins/vis_types/vislib/public/fixtures/mock_data/geohash/_geo_json.js b/src/plugins/vis_types/vislib/public/fixtures/mock_data/geohash/_geo_json.js deleted file mode 100644 index 6852656143c62..0000000000000 --- a/src/plugins/vis_types/vislib/public/fixtures/mock_data/geohash/_geo_json.js +++ /dev/null @@ -1,1315 +0,0 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Elastic License - * 2.0 and the Server Side Public License, v 1; you may not use this file except - * in compliance with, at your election, the Elastic License 2.0 or the Server - * Side Public License, v 1. - */ - -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/plugins/vis_types/vislib/public/fixtures/mock_data/geohash/_rows.js b/src/plugins/vis_types/vislib/public/fixtures/mock_data/geohash/_rows.js deleted file mode 100644 index 84d301e196bcc..0000000000000 --- a/src/plugins/vis_types/vislib/public/fixtures/mock_data/geohash/_rows.js +++ /dev/null @@ -1,2847 +0,0 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Elastic License - * 2.0 and the Server Side Public License, v 1; you may not use this file except - * in compliance with, at your election, the Elastic License 2.0 or the Server - * Side Public License, v 1. - */ - -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/plugins/vis_types/vislib/public/vislib/lib/data.js b/src/plugins/vis_types/vislib/public/vislib/lib/data.js index 27e421169a529..6b6bcb6101595 100644 --- a/src/plugins/vis_types/vislib/public/vislib/lib/data.js +++ b/src/plugins/vis_types/vislib/public/vislib/lib/data.js @@ -136,8 +136,6 @@ export class Data { type = 'series'; } else if (obj.slices) { type = 'slices'; - } else if (obj.geoJson) { - type = 'geoJson'; } }); @@ -226,27 +224,6 @@ export class Data { return visData; } - /** - * get min and max for all cols, rows of data - * - * @method getMaxMin - * @return {Object} - */ - getGeoExtents() { - const visData = this.getVisData(); - - return _.reduce( - _.map(visData, 'geoJson.properties'), - function (minMax, props) { - return { - min: Math.min(props.min, minMax.min), - max: Math.max(props.max, minMax.max), - }; - }, - { min: Infinity, max: -Infinity } - ); - } - /** * Get attributes off the data, e.g. `tooltipFormatter` or `xAxisFormatter` * pulls the value off the first item in the array diff --git a/src/plugins/vis_types/vislib/public/vislib/lib/data.test.js b/src/plugins/vis_types/vislib/public/vislib/lib/data.test.js index ac3528381da76..31e2dc69ff8b6 100644 --- a/src/plugins/vis_types/vislib/public/vislib/lib/data.test.js +++ b/src/plugins/vis_types/vislib/public/vislib/lib/data.test.js @@ -195,62 +195,6 @@ describe('Vislib Data Class Test Suite', function () { } }); - describe('geohashGrid methods', function () { - let data; - const geohashGridData = { - hits: 3954, - rows: [ - { - title: 'Top 5 _type: apache', - label: 'Top 5 _type: apache', - geoJson: { - type: 'FeatureCollection', - features: [], - properties: { - min: 2, - max: 331, - zoom: 3, - center: [47.517200697839414, -112.06054687499999], - }, - }, - }, - { - title: 'Top 5 _type: nginx', - label: 'Top 5 _type: nginx', - geoJson: { - type: 'FeatureCollection', - features: [], - properties: { - min: 1, - max: 88, - zoom: 3, - center: [47.517200697839414, -112.06054687499999], - }, - }, - }, - ], - }; - - beforeEach(function () { - data = new Data(geohashGridData, mockUiState, () => undefined); - }); - - describe('getVisData', function () { - it('should return the rows property', function () { - const visData = data.getVisData(); - expect(visData[0].title).toEqual(geohashGridData.rows[0].title); - }); - }); - - describe('getGeoExtents', function () { - it('should return the min and max geoJson properties', function () { - const minMax = data.getGeoExtents(); - expect(minMax.min).toBe(1); - expect(minMax.max).toBe(331); - }); - }); - }); - describe('null value check', function () { it('should return false', function () { const data = new Data(rowsData, mockUiState, () => undefined); diff --git a/src/plugins/vis_types/xy/public/editor/components/options/point_series/point_series.mocks.ts b/src/plugins/vis_types/xy/public/editor/components/options/point_series/point_series.mocks.ts index a60e6577d412a..2b4fcdac39592 100644 --- a/src/plugins/vis_types/xy/public/editor/components/options/point_series/point_series.mocks.ts +++ b/src/plugins/vis_types/xy/public/editor/components/options/point_series/point_series.mocks.ts @@ -626,7 +626,6 @@ export const getVis = (bucketType: string) => { min: 0, max: 1, aggFilter: [ - '!geohash_grid', '!geotile_grid', '!filter', '!sampler', @@ -643,7 +642,6 @@ export const getVis = (bucketType: string) => { min: 0, max: 3, aggFilter: [ - '!geohash_grid', '!geotile_grid', '!filter', '!sampler', @@ -660,7 +658,6 @@ export const getVis = (bucketType: string) => { min: 0, max: 1, aggFilter: [ - '!geohash_grid', '!geotile_grid', '!filter', '!sampler', @@ -713,7 +710,6 @@ export const getVis = (bucketType: string) => { min: 0, max: 1, aggFilter: [ - '!geohash_grid', '!geotile_grid', '!filter', '!sampler', @@ -730,7 +726,6 @@ export const getVis = (bucketType: string) => { min: 0, max: 3, aggFilter: [ - '!geohash_grid', '!geotile_grid', '!filter', '!sampler', @@ -747,7 +742,6 @@ export const getVis = (bucketType: string) => { min: 0, max: 1, aggFilter: [ - '!geohash_grid', '!geotile_grid', '!filter', '!sampler', @@ -771,7 +765,6 @@ export const getVis = (bucketType: string) => { min: 0, max: 1, aggFilter: [ - '!geohash_grid', '!geotile_grid', '!filter', '!sampler', @@ -788,7 +781,6 @@ export const getVis = (bucketType: string) => { min: 0, max: 3, aggFilter: [ - '!geohash_grid', '!geotile_grid', '!filter', '!sampler', @@ -805,7 +797,6 @@ export const getVis = (bucketType: string) => { min: 0, max: 1, aggFilter: [ - '!geohash_grid', '!geotile_grid', '!filter', '!sampler', diff --git a/src/plugins/vis_types/xy/public/sample_vis.test.mocks.ts b/src/plugins/vis_types/xy/public/sample_vis.test.mocks.ts index da78864bc08d0..ca1454a70e053 100644 --- a/src/plugins/vis_types/xy/public/sample_vis.test.mocks.ts +++ b/src/plugins/vis_types/xy/public/sample_vis.test.mocks.ts @@ -155,7 +155,6 @@ export const sampleAreaVis = { min: 0, max: 1, aggFilter: [ - '!geohash_grid', '!geotile_grid', '!filter', '!sampler', @@ -174,7 +173,6 @@ export const sampleAreaVis = { min: 0, max: 3, aggFilter: [ - '!geohash_grid', '!geotile_grid', '!filter', '!sampler', @@ -193,7 +191,6 @@ export const sampleAreaVis = { min: 0, max: 1, aggFilter: [ - '!geohash_grid', '!geotile_grid', '!filter', '!sampler', diff --git a/src/plugins/vis_types/xy/public/vis_types/area.ts b/src/plugins/vis_types/xy/public/vis_types/area.ts index 0ca07c8067457..34afc54720e9b 100644 --- a/src/plugins/vis_types/xy/public/vis_types/area.ts +++ b/src/plugins/vis_types/xy/public/vis_types/area.ts @@ -166,7 +166,6 @@ export const areaVisTypeDefinition = { min: 0, max: 1, aggFilter: [ - '!geohash_grid', '!geotile_grid', '!filter', '!sampler', @@ -185,7 +184,6 @@ export const areaVisTypeDefinition = { min: 0, max: 3, aggFilter: [ - '!geohash_grid', '!geotile_grid', '!filter', '!sampler', @@ -204,7 +202,6 @@ export const areaVisTypeDefinition = { min: 0, max: 1, aggFilter: [ - '!geohash_grid', '!geotile_grid', '!filter', '!sampler', diff --git a/src/plugins/vis_types/xy/public/vis_types/histogram.ts b/src/plugins/vis_types/xy/public/vis_types/histogram.ts index 680186eb330f9..0a898f62ef227 100644 --- a/src/plugins/vis_types/xy/public/vis_types/histogram.ts +++ b/src/plugins/vis_types/xy/public/vis_types/histogram.ts @@ -169,7 +169,6 @@ export const histogramVisTypeDefinition = { min: 0, max: 1, aggFilter: [ - '!geohash_grid', '!geotile_grid', '!filter', '!sampler', @@ -188,7 +187,6 @@ export const histogramVisTypeDefinition = { min: 0, max: 3, aggFilter: [ - '!geohash_grid', '!geotile_grid', '!filter', '!sampler', @@ -207,7 +205,6 @@ export const histogramVisTypeDefinition = { min: 0, max: 1, aggFilter: [ - '!geohash_grid', '!geotile_grid', '!filter', '!sampler', diff --git a/src/plugins/vis_types/xy/public/vis_types/horizontal_bar.ts b/src/plugins/vis_types/xy/public/vis_types/horizontal_bar.ts index 25fc3142e0e98..dfbf51aa6d684 100644 --- a/src/plugins/vis_types/xy/public/vis_types/horizontal_bar.ts +++ b/src/plugins/vis_types/xy/public/vis_types/horizontal_bar.ts @@ -168,7 +168,6 @@ export const horizontalBarVisTypeDefinition = { min: 0, max: 1, aggFilter: [ - '!geohash_grid', '!geotile_grid', '!filter', '!sampler', @@ -187,7 +186,6 @@ export const horizontalBarVisTypeDefinition = { min: 0, max: 3, aggFilter: [ - '!geohash_grid', '!geotile_grid', '!filter', '!sampler', @@ -206,7 +204,6 @@ export const horizontalBarVisTypeDefinition = { min: 0, max: 1, aggFilter: [ - '!geohash_grid', '!geotile_grid', '!filter', '!sampler', diff --git a/src/plugins/vis_types/xy/public/vis_types/line.ts b/src/plugins/vis_types/xy/public/vis_types/line.ts index e0c7e081573f3..49113e2a21b27 100644 --- a/src/plugins/vis_types/xy/public/vis_types/line.ts +++ b/src/plugins/vis_types/xy/public/vis_types/line.ts @@ -160,7 +160,6 @@ export const lineVisTypeDefinition = { min: 0, max: 1, aggFilter: [ - '!geohash_grid', '!geotile_grid', '!filter', '!sampler', @@ -179,7 +178,6 @@ export const lineVisTypeDefinition = { min: 0, max: 3, aggFilter: [ - '!geohash_grid', '!geotile_grid', '!filter', '!sampler', @@ -198,7 +196,6 @@ export const lineVisTypeDefinition = { min: 0, max: 1, aggFilter: [ - '!geohash_grid', '!geotile_grid', '!filter', '!sampler', diff --git a/src/plugins/visualizations/common/vis_schemas.ts b/src/plugins/visualizations/common/vis_schemas.ts index cdccc7902e08d..bc83ea941a361 100644 --- a/src/plugins/visualizations/common/vis_schemas.ts +++ b/src/plugins/visualizations/common/vis_schemas.ts @@ -33,11 +33,6 @@ export function convertToSchemaConfig(agg: IAggConfig): SchemaConfig { - // maps hack, remove once esaggs function is cleaned up and ready to accept variables - if (event.name === 'bounds') { - const agg = this.vis.data.aggs!.aggs.find((a: any) => { - return get(a, 'type.dslName') === 'geohash_grid'; - }); - if ( - (agg && agg.params.precision !== event.data.precision) || - (agg && !_.isEqual(agg.params.boundingBox, event.data.boundingBox)) - ) { - agg.params.boundingBox = event.data.boundingBox; - agg.params.precision = event.data.precision; - this.reload(); - } - return; - } - if (!this.input.disableTriggers) { const triggerId = get(VIS_EVENT_TO_TRIGGER, event.name, VIS_EVENT_TO_TRIGGER.filter); let context; diff --git a/x-pack/plugins/translations/translations/fr-FR.json b/x-pack/plugins/translations/translations/fr-FR.json index 1365952d92061..2982703f38e3f 100644 --- a/x-pack/plugins/translations/translations/fr-FR.json +++ b/x-pack/plugins/translations/translations/fr-FR.json @@ -1397,18 +1397,6 @@ "data.search.aggs.buckets.filters.schema.help": "Schéma à utiliser pour cette agrégation", "data.search.aggs.buckets.filtersTitle": "Filtres", "data.search.aggs.buckets.filterTitle": "Filtre", - "data.search.aggs.buckets.geoHash.autoPrecision.help": "Spécifie l'utilisation ou non de la précision automatique pour cette agrégation.", - "data.search.aggs.buckets.geoHash.boundingBox.help": "Pour filtrer les résultats en fonction d’une localisation au sein d’une zone de délimitation", - "data.search.aggs.buckets.geoHash.customLabel.help": "Représente une étiquette personnalisée pour cette agrégation", - "data.search.aggs.buckets.geoHash.enabled.help": "Spécifie si cette agrégation doit être activée.", - "data.search.aggs.buckets.geoHash.field.help": "Champ à utiliser pour cette agrégation", - "data.search.aggs.buckets.geoHash.id.help": "ID pour cette agrégation", - "data.search.aggs.buckets.geoHash.isFilteredByCollar.help": "Spécifie le filtrage ou non par collier.", - "data.search.aggs.buckets.geoHash.json.help": "Json avancé à inclure lorsque l'agrégation est envoyée vers Elasticsearch", - "data.search.aggs.buckets.geoHash.precision.help": "Précision à utiliser pour cette agrégation.", - "data.search.aggs.buckets.geoHash.schema.help": "Schéma à utiliser pour cette agrégation", - "data.search.aggs.buckets.geoHash.useGeocentroid.help": "Spécifie l'utilisation ou non d’un centroïde géométrique pour cette agrégation.", - "data.search.aggs.buckets.geohashGridTitle": "Geohash", "data.search.aggs.buckets.geoTile.customLabel.help": "Représente une étiquette personnalisée pour cette agrégation", "data.search.aggs.buckets.geoTile.enabled.help": "Spécifie si cette agrégation doit être activée.", "data.search.aggs.buckets.geoTile.field.help": "Champ à utiliser pour cette agrégation", @@ -1549,7 +1537,6 @@ "data.search.aggs.function.buckets.diversifiedSampler.help": "Génère une configuration d'agrégation en série pour une agrégation Échantillonneur diversifié.", "data.search.aggs.function.buckets.filter.help": "Génère une configuration d'agrégation en série pour une agrégation Filtre.", "data.search.aggs.function.buckets.filters.help": "Génère une configuration d'agrégation en série pour une agrégation Filtre.", - "data.search.aggs.function.buckets.geoHash.help": "Génère une configuration d'agrégation en série pour une agrégation Geohash.", "data.search.aggs.function.buckets.geoTile.help": "Génère une configuration d'agrégation en série pour une agrégation Geotile.", "data.search.aggs.function.buckets.histogram.help": "Génère une configuration d'agrégation en série pour une agrégation Histogramme.", "data.search.aggs.function.buckets.ipRange.help": "Génère une configuration d'agrégation en série pour une agrégation Plage d'IP.", @@ -5386,7 +5373,6 @@ "visDefaultEditor.controls.aggregateWith.noAggsErrorTooltip": "Le champ choisi n'a pas d'agrégations compatibles.", "visDefaultEditor.controls.aggregateWithLabel": "Agréger avec", "visDefaultEditor.controls.aggregateWithTooltip": "Choisissez une stratégie pour combiner plusieurs occurrences ou un champ à valeurs multiples en un seul indicateur.", - "visDefaultEditor.controls.changePrecisionLabel": "Modifier la précision lors d'un zoom sur la carte", "visDefaultEditor.controls.columnsLabel": "Colonnes", "visDefaultEditor.controls.customMetricLabel": "Indicateur personnalisé", "visDefaultEditor.controls.dateRanges.acceptedDateFormatsLinkText": "Formats de date acceptables", @@ -5428,8 +5414,6 @@ "visDefaultEditor.controls.numberList.duplicateValueErrorMessage": "Dupliquez la valeur.", "visDefaultEditor.controls.numberList.enterValuePlaceholder": "Saisir une valeur", "visDefaultEditor.controls.numberList.invalidAscOrderErrorMessage": "La valeur n'est pas dans l'ordre croissant.", - "visDefaultEditor.controls.onlyRequestDataAroundMapExtentLabel": "Demander uniquement des données sur l'étendue de la carte", - "visDefaultEditor.controls.onlyRequestDataAroundMapExtentTooltip": "Appliquer l'agrégation de filtres geo_bounding_box pour réduire la zone d’intérêt à la zone d'affichage de la carte avec collier", "visDefaultEditor.controls.orderAgg.alphabeticalLabel": "Alphabétique", "visDefaultEditor.controls.orderAgg.orderByLabel": "Classer par", "visDefaultEditor.controls.orderLabel": "Ordre", @@ -5441,8 +5425,6 @@ "visDefaultEditor.controls.percentileRanks.valuesLabel": "Valeurs", "visDefaultEditor.controls.percentileRanks.valueUnitNameText": "valeur", "visDefaultEditor.controls.percentiles.percentsLabel": "Pour cent", - "visDefaultEditor.controls.placeMarkersOffGridLabel": "Placer les marqueurs hors grille (utiliser un centroïde géométrique)", - "visDefaultEditor.controls.precisionLabel": "Précision", "visDefaultEditor.controls.ranges.addRangeButtonLabel": "Ajouter une plage", "visDefaultEditor.controls.ranges.fromLabel": "De", "visDefaultEditor.controls.ranges.greaterThanOrEqualPrepend": "≥", diff --git a/x-pack/plugins/translations/translations/ja-JP.json b/x-pack/plugins/translations/translations/ja-JP.json index 43887bed8250d..9bb82ff450a23 100644 --- a/x-pack/plugins/translations/translations/ja-JP.json +++ b/x-pack/plugins/translations/translations/ja-JP.json @@ -1397,18 +1397,6 @@ "data.search.aggs.buckets.filters.schema.help": "このアグリゲーションで使用するスキーマ", "data.search.aggs.buckets.filtersTitle": "フィルター", "data.search.aggs.buckets.filterTitle": "フィルター", - "data.search.aggs.buckets.geoHash.autoPrecision.help": "このアグリゲーションで自動精度を使用するかどうかを指定します", - "data.search.aggs.buckets.geoHash.boundingBox.help": "バウンディングボックス内の点の位置に基づいて結果をフィルタリングします", - "data.search.aggs.buckets.geoHash.customLabel.help": "このアグリゲーションのカスタムラベルを表します", - "data.search.aggs.buckets.geoHash.enabled.help": "このアグリゲーションが有効かどうかを指定します", - "data.search.aggs.buckets.geoHash.field.help": "このアグリゲーションで使用するフィールド", - "data.search.aggs.buckets.geoHash.id.help": "このアグリゲーションのID", - "data.search.aggs.buckets.geoHash.isFilteredByCollar.help": "カラーでフィルタリングするかどうかを指定します", - "data.search.aggs.buckets.geoHash.json.help": "アグリゲーションがElasticsearchに送信されるときに含める高度なJSON", - "data.search.aggs.buckets.geoHash.precision.help": "このアグリゲーションで使用する精度。", - "data.search.aggs.buckets.geoHash.schema.help": "このアグリゲーションで使用するスキーマ", - "data.search.aggs.buckets.geoHash.useGeocentroid.help": "このアグリゲーションでgeocentroid使用するかどうかを指定します", - "data.search.aggs.buckets.geohashGridTitle": "ジオハッシュ", "data.search.aggs.buckets.geoTile.customLabel.help": "このアグリゲーションのカスタムラベルを表します", "data.search.aggs.buckets.geoTile.enabled.help": "このアグリゲーションが有効かどうかを指定します", "data.search.aggs.buckets.geoTile.field.help": "このアグリゲーションで使用するフィールド", @@ -1549,7 +1537,6 @@ "data.search.aggs.function.buckets.diversifiedSampler.help": "分散サンプラーアグリゲーションのシリアル化されたアグリゲーション構成を生成します", "data.search.aggs.function.buckets.filter.help": "フィルターアグリゲーションのシリアル化されたアグリゲーション構成を生成します", "data.search.aggs.function.buckets.filters.help": "フィルターアグリゲーションのシリアル化されたアグリゲーション構成を生成します", - "data.search.aggs.function.buckets.geoHash.help": "ジオハッシュアグリゲーションのシリアル化されたアグリゲーション構成を生成します", "data.search.aggs.function.buckets.geoTile.help": "ジオタイルアグリゲーションのシリアル化されたアグリゲーション構成を生成します", "data.search.aggs.function.buckets.histogram.help": "ヒストグラムアグリゲーションのシリアル化されたアグリゲーション構成を生成します", "data.search.aggs.function.buckets.ipRange.help": "IP範囲アグリゲーションのシリアル化されたアグリゲーション構成を生成します", @@ -5383,7 +5370,6 @@ "visDefaultEditor.controls.aggregateWith.noAggsErrorTooltip": "選択されたフィールドには互換性のある集約がありません。", "visDefaultEditor.controls.aggregateWithLabel": "集約:", "visDefaultEditor.controls.aggregateWithTooltip": "複数ヒットまたは複数値のフィールドを 1 つのメトリックにまとめる方法を選択します。", - "visDefaultEditor.controls.changePrecisionLabel": "マップズームの精度を変更", "visDefaultEditor.controls.columnsLabel": "列", "visDefaultEditor.controls.customMetricLabel": "カスタムメトリック", "visDefaultEditor.controls.dateRanges.acceptedDateFormatsLinkText": "許容可能な日付形式", @@ -5425,8 +5411,6 @@ "visDefaultEditor.controls.numberList.duplicateValueErrorMessage": "重複値。", "visDefaultEditor.controls.numberList.enterValuePlaceholder": "値を入力", "visDefaultEditor.controls.numberList.invalidAscOrderErrorMessage": "値は昇順になっていません。", - "visDefaultEditor.controls.onlyRequestDataAroundMapExtentLabel": "マップ範囲のデータのみリクエストしてください", - "visDefaultEditor.controls.onlyRequestDataAroundMapExtentTooltip": "geo_bounding_box フィルター集約を適用して、襟付きのマップビューボックスにサブジェクトエリアを絞ります", "visDefaultEditor.controls.orderAgg.alphabeticalLabel": "アルファベット順", "visDefaultEditor.controls.orderAgg.orderByLabel": "並び順", "visDefaultEditor.controls.orderLabel": "順序", @@ -5438,8 +5422,6 @@ "visDefaultEditor.controls.percentileRanks.valuesLabel": "値", "visDefaultEditor.controls.percentileRanks.valueUnitNameText": "値", "visDefaultEditor.controls.percentiles.percentsLabel": "パーセント", - "visDefaultEditor.controls.placeMarkersOffGridLabel": "グリッド外にマーカーを配置(ジオセントロイドを使用)", - "visDefaultEditor.controls.precisionLabel": "精度", "visDefaultEditor.controls.ranges.addRangeButtonLabel": "範囲を追加", "visDefaultEditor.controls.ranges.fromLabel": "開始:", "visDefaultEditor.controls.ranges.greaterThanOrEqualPrepend": "≥", diff --git a/x-pack/plugins/translations/translations/zh-CN.json b/x-pack/plugins/translations/translations/zh-CN.json index 11a741a29c129..afb3aa596fe78 100644 --- a/x-pack/plugins/translations/translations/zh-CN.json +++ b/x-pack/plugins/translations/translations/zh-CN.json @@ -1399,18 +1399,6 @@ "data.search.aggs.buckets.filters.schema.help": "要用于此聚合的方案", "data.search.aggs.buckets.filtersTitle": "筛选", "data.search.aggs.buckets.filterTitle": "筛选", - "data.search.aggs.buckets.geoHash.autoPrecision.help": "指定是否要将自动精度用于此聚合", - "data.search.aggs.buckets.geoHash.boundingBox.help": "基于边界框的点位置筛选结果", - "data.search.aggs.buckets.geoHash.customLabel.help": "表示此聚合的定制标签", - "data.search.aggs.buckets.geoHash.enabled.help": "指定是否启用此聚合", - "data.search.aggs.buckets.geoHash.field.help": "要用于此聚合的字段", - "data.search.aggs.buckets.geoHash.id.help": "此聚合的 ID", - "data.search.aggs.buckets.geoHash.isFilteredByCollar.help": "指定是否要按领口筛选", - "data.search.aggs.buckets.geoHash.json.help": "聚合发送至 Elasticsearch 时要包括的高级 json", - "data.search.aggs.buckets.geoHash.precision.help": "要用于此聚合的精度。", - "data.search.aggs.buckets.geoHash.schema.help": "要用于此聚合的方案", - "data.search.aggs.buckets.geoHash.useGeocentroid.help": "指定是否将 geocentroid 用于此聚合", - "data.search.aggs.buckets.geohashGridTitle": "Geohash", "data.search.aggs.buckets.geoTile.customLabel.help": "表示此聚合的定制标签", "data.search.aggs.buckets.geoTile.enabled.help": "指定是否启用此聚合", "data.search.aggs.buckets.geoTile.field.help": "要用于此聚合的字段", @@ -1551,7 +1539,6 @@ "data.search.aggs.function.buckets.diversifiedSampler.help": "为多样性取样器聚合生成序列化聚合配置", "data.search.aggs.function.buckets.filter.help": "为筛选聚合生成序列化聚合配置", "data.search.aggs.function.buckets.filters.help": "为筛选聚合生成序列化聚合配置", - "data.search.aggs.function.buckets.geoHash.help": "为地理位置哈希聚合生成序列化聚合配置", "data.search.aggs.function.buckets.geoTile.help": "为地理位置磁帖聚合生成序列化聚合配置", "data.search.aggs.function.buckets.histogram.help": "为 Histogram 聚合生成序列化聚合配置", "data.search.aggs.function.buckets.ipRange.help": "为 IP 范围聚合生成序列化聚合配置", @@ -5389,7 +5376,6 @@ "visDefaultEditor.controls.aggregateWith.noAggsErrorTooltip": "选择的字段没有兼容的聚合。", "visDefaultEditor.controls.aggregateWithLabel": "聚合对象", "visDefaultEditor.controls.aggregateWithTooltip": "选择将多个命中或多值字段组合成单个指标的策略。", - "visDefaultEditor.controls.changePrecisionLabel": "更改地图缩放的精确度", "visDefaultEditor.controls.columnsLabel": "列", "visDefaultEditor.controls.customMetricLabel": "定制指标", "visDefaultEditor.controls.dateRanges.acceptedDateFormatsLinkText": "可接受日期格式", @@ -5431,8 +5417,6 @@ "visDefaultEditor.controls.numberList.duplicateValueErrorMessage": "重复值。", "visDefaultEditor.controls.numberList.enterValuePlaceholder": "输入值", "visDefaultEditor.controls.numberList.invalidAscOrderErrorMessage": "值非升序。", - "visDefaultEditor.controls.onlyRequestDataAroundMapExtentLabel": "仅请求地图范围的数据", - "visDefaultEditor.controls.onlyRequestDataAroundMapExtentTooltip": "应用 geo_bounding_box 筛选聚合以使用领口将主题区域缩小到地图视图框", "visDefaultEditor.controls.orderAgg.alphabeticalLabel": "按字母顺序", "visDefaultEditor.controls.orderAgg.orderByLabel": "排序依据", "visDefaultEditor.controls.orderLabel": "顺序", @@ -5444,8 +5428,6 @@ "visDefaultEditor.controls.percentileRanks.valuesLabel": "值", "visDefaultEditor.controls.percentileRanks.valueUnitNameText": "值", "visDefaultEditor.controls.percentiles.percentsLabel": "百分数", - "visDefaultEditor.controls.placeMarkersOffGridLabel": "将标记置于网格外(使用 geocentroid)", - "visDefaultEditor.controls.precisionLabel": "精确度", "visDefaultEditor.controls.ranges.addRangeButtonLabel": "添加范围", "visDefaultEditor.controls.ranges.fromLabel": "自", "visDefaultEditor.controls.ranges.greaterThanOrEqualPrepend": "≥",