diff --git a/src/core_plugins/kbn_vislib_vis_types/public/area.js b/src/core_plugins/kbn_vislib_vis_types/public/area.js index 9d0c8bb515dfa..8f405387c25ff 100644 --- a/src/core_plugins/kbn_vislib_vis_types/public/area.js +++ b/src/core_plugins/kbn_vislib_vis_types/public/area.js @@ -83,6 +83,7 @@ export default function PointSeriesVisType(Private) { addTimeMarker: false, }, }, + responseHandler: 'series_data', editorConfig: { collections: { positions: ['top', 'left', 'right', 'bottom'], diff --git a/src/core_plugins/kbn_vislib_vis_types/public/gauge.js b/src/core_plugins/kbn_vislib_vis_types/public/gauge.js index f5550ba39d81c..f47accf84930b 100644 --- a/src/core_plugins/kbn_vislib_vis_types/public/gauge.js +++ b/src/core_plugins/kbn_vislib_vis_types/public/gauge.js @@ -62,6 +62,7 @@ export default function GaugeVisType(Private) { } }, }, + responseHandler: 'series_data', editorConfig: { collections: { gaugeTypes: ['Arc', 'Circle', 'Metric'], diff --git a/src/core_plugins/kbn_vislib_vis_types/public/goal.js b/src/core_plugins/kbn_vislib_vis_types/public/goal.js index 6ea27f770403c..df3c361e3fc4e 100644 --- a/src/core_plugins/kbn_vislib_vis_types/public/goal.js +++ b/src/core_plugins/kbn_vislib_vis_types/public/goal.js @@ -56,6 +56,7 @@ export default function GoalVisType(Private) { } }, }, + responseHandler: 'series_data', editorConfig: { collections: { gaugeTypes: ['Arc', 'Circle', 'Metric'], diff --git a/src/core_plugins/kbn_vislib_vis_types/public/heatmap.js b/src/core_plugins/kbn_vislib_vis_types/public/heatmap.js index 8370d1f6869d2..e2b88aa63af55 100644 --- a/src/core_plugins/kbn_vislib_vis_types/public/heatmap.js +++ b/src/core_plugins/kbn_vislib_vis_types/public/heatmap.js @@ -45,6 +45,7 @@ export default function HeatmapVisType(Private) { }] }, }, + responseHandler: 'series_data', editorConfig: { collections: { legendPositions: [{ diff --git a/src/core_plugins/kbn_vislib_vis_types/public/histogram.js b/src/core_plugins/kbn_vislib_vis_types/public/histogram.js index cfd29461a6e53..409e2bea5e6c2 100644 --- a/src/core_plugins/kbn_vislib_vis_types/public/histogram.js +++ b/src/core_plugins/kbn_vislib_vis_types/public/histogram.js @@ -84,6 +84,7 @@ export default function PointSeriesVisType(Private) { addTimeMarker: false, }, }, + responseHandler: 'series_data', editorConfig: { collections: { positions: ['top', 'left', 'right', 'bottom'], diff --git a/src/core_plugins/kbn_vislib_vis_types/public/horizontal_bar.js b/src/core_plugins/kbn_vislib_vis_types/public/horizontal_bar.js index 9a1c8f9daf51b..0b2008a2e03ac 100644 --- a/src/core_plugins/kbn_vislib_vis_types/public/horizontal_bar.js +++ b/src/core_plugins/kbn_vislib_vis_types/public/horizontal_bar.js @@ -86,6 +86,7 @@ export default function PointSeriesVisType(Private) { addTimeMarker: false, }, }, + responseHandler: 'series_data', editorConfig: { collections: { positions: ['top', 'left', 'right', 'bottom'], diff --git a/src/core_plugins/kbn_vislib_vis_types/public/line.js b/src/core_plugins/kbn_vislib_vis_types/public/line.js index ac8e41c17e21c..6a876b336fc73 100644 --- a/src/core_plugins/kbn_vislib_vis_types/public/line.js +++ b/src/core_plugins/kbn_vislib_vis_types/public/line.js @@ -84,6 +84,7 @@ export default function PointSeriesVisType(Private) { addTimeMarker: false, }, }, + responseHandler: 'series_data', editorConfig: { collections: { positions: ['top', 'left', 'right', 'bottom'], diff --git a/src/core_plugins/kbn_vislib_vis_types/public/metric.js b/src/core_plugins/kbn_vislib_vis_types/public/metric.js index 65e599d520133..8b9b7628e11b3 100644 --- a/src/core_plugins/kbn_vislib_vis_types/public/metric.js +++ b/src/core_plugins/kbn_vislib_vis_types/public/metric.js @@ -55,6 +55,7 @@ export default function MetricVisType(Private) { } }, }, + responseHandler: 'series_data', editorConfig: { collections: { gaugeTypes: ['Arc', 'Circle', 'Metric'], diff --git a/src/core_plugins/kbn_vislib_vis_types/public/pie.js b/src/core_plugins/kbn_vislib_vis_types/public/pie.js index 817f7d46d9b44..ed29b2a4ab339 100644 --- a/src/core_plugins/kbn_vislib_vis_types/public/pie.js +++ b/src/core_plugins/kbn_vislib_vis_types/public/pie.js @@ -23,6 +23,7 @@ export default function HistogramVisType(Private) { isDonut: false }, }, + responseHandler: 'hierarchical_data', editorConfig: { collections: { legendPositions: [{ diff --git a/src/core_plugins/kibana/public/discover/controllers/discover.js b/src/core_plugins/kibana/public/discover/controllers/discover.js index 5d6a3237e8fc0..14dc2207ca68f 100644 --- a/src/core_plugins/kibana/public/discover/controllers/discover.js +++ b/src/core_plugins/kibana/public/discover/controllers/discover.js @@ -16,7 +16,7 @@ import 'ui/timefilter'; import 'ui/share'; import 'ui/query_bar'; import { VisProvider } from 'ui/vis'; -import { BasicResponseHandlerProvider } from 'ui/vis/response_handlers/basic'; +import { seriesResponseHandlerProvider } from 'ui/vis/response_handlers/series_data'; import { DocTitleProvider } from 'ui/doc_title'; import PluginsKibanaDiscoverHitSortFnProvider from 'plugins/kibana/discover/_hit_sort_fn'; import { FilterBarQueryFilterProvider } from 'ui/filter_bar/query_filter'; @@ -117,7 +117,7 @@ function discoverController( const docTitle = Private(DocTitleProvider); const HitSortFn = Private(PluginsKibanaDiscoverHitSortFnProvider); const queryFilter = Private(FilterBarQueryFilterProvider); - const responseHandler = Private(BasicResponseHandlerProvider).handler; + const responseHandler = Private(seriesResponseHandlerProvider).handler; const notify = new Notifier({ location: 'Discover' }); diff --git a/src/fixtures/agg_resp/date_term_filter.js b/src/fixtures/agg_resp/date_term_filter.js new file mode 100644 index 0000000000000..785d391a0b669 --- /dev/null +++ b/src/fixtures/agg_resp/date_term_filter.js @@ -0,0 +1,957 @@ +const response = { + 'took': 128, + 'timed_out': false, + '_shards': { + 'total': 1, + 'successful': 1, + 'skipped': 0, + 'failed': 0 + }, + 'hits': { + 'total': 11125, + 'max_score': 0, + 'hits': [] + }, + 'aggregations': { + '2': { + 'buckets': [{ + '3': { + 'doc_count_error_upper_bound': 0, + 'sum_other_doc_count': 0, + 'buckets': [{ + '4': { + 'buckets': { + '200': { + 'doc_count': 40 + }, + '404': { + 'doc_count': 0 + } + } + }, + 'key': '200', + 'doc_count': 40 + }, { + '4': { + 'buckets': { + '200': { + 'doc_count': 0 + }, + '404': { + 'doc_count': 3 + } + } + }, + 'key': '404', + 'doc_count': 3 + }, { + '4': { + 'buckets': { + '200': { + 'doc_count': 0 + }, + '404': { + 'doc_count': 0 + } + } + }, + 'key': '503', + 'doc_count': 1 + }] + }, + 'key_as_string': '2017-07-25T00:00:00.000+02:00', + 'key': 1500933600000, + 'doc_count': 44 + }, { + '3': { + 'doc_count_error_upper_bound': 0, + 'sum_other_doc_count': 0, + 'buckets': [{ + '4': { + 'buckets': { + '200': { + 'doc_count': 148 + }, + '404': { + 'doc_count': 0 + } + } + }, + 'key': '200', + 'doc_count': 148 + }, { + '4': { + 'buckets': { + '200': { + 'doc_count': 0 + }, + '404': { + 'doc_count': 8 + } + } + }, + 'key': '404', + 'doc_count': 8 + }, { + '4': { + 'buckets': { + '200': { + 'doc_count': 0 + }, + '404': { + 'doc_count': 0 + } + } + }, + 'key': '503', + 'doc_count': 2 + }] + }, + 'key_as_string': '2017-07-25T03:00:00.000+02:00', + 'key': 1500944400000, + 'doc_count': 158 + }, { + '3': { + 'doc_count_error_upper_bound': 0, + 'sum_other_doc_count': 0, + 'buckets': [{ + '4': { + 'buckets': { + '200': { + 'doc_count': 613 + }, + '404': { + 'doc_count': 1 + } + } + }, + 'key': '200', + 'doc_count': 613 + }, { + '4': { + 'buckets': { + '200': { + 'doc_count': 3 + }, + '404': { + 'doc_count': 29 + } + } + }, + 'key': '404', + 'doc_count': 29 + }, { + '4': { + 'buckets': { + '200': { + 'doc_count': 2 + }, + '404': { + 'doc_count': 0 + } + } + }, + 'key': '503', + 'doc_count': 20 + }] + }, + 'key_as_string': '2017-07-25T06:00:00.000+02:00', + 'key': 1500955200000, + 'doc_count': 662 + }, { + '3': { + 'doc_count_error_upper_bound': 0, + 'sum_other_doc_count': 0, + 'buckets': [{ + '4': { + 'buckets': { + '200': { + 'doc_count': 1281 + }, + '404': { + 'doc_count': 3 + } + } + }, + 'key': '200', + 'doc_count': 1281 + }, { + '4': { + 'buckets': { + '200': { + 'doc_count': 5 + }, + '404': { + 'doc_count': 83 + } + } + }, + 'key': '404', + 'doc_count': 83 + }, { + '4': { + 'buckets': { + '200': { + 'doc_count': 3 + }, + '404': { + 'doc_count': 0 + } + } + }, + 'key': '503', + 'doc_count': 36 + }] + }, + 'key_as_string': '2017-07-25T09:00:00.000+02:00', + 'key': 1500966000000, + 'doc_count': 1400 + }, { + '3': { + 'doc_count_error_upper_bound': 0, + 'sum_other_doc_count': 0, + 'buckets': [{ + '4': { + 'buckets': { + '200': { + 'doc_count': 1276 + }, + '404': { + 'doc_count': 1 + } + } + }, + 'key': '200', + 'doc_count': 1276 + }, { + '4': { + 'buckets': { + '200': { + 'doc_count': 1 + }, + '404': { + 'doc_count': 65 + } + } + }, + 'key': '404', + 'doc_count': 65 + }, { + '4': { + 'buckets': { + '200': { + 'doc_count': 6 + }, + '404': { + 'doc_count': 0 + } + } + }, + 'key': '503', + 'doc_count': 46 + }] + }, + 'key_as_string': '2017-07-25T12:00:00.000+02:00', + 'key': 1500976800000, + 'doc_count': 1387 + }, { + '3': { + 'doc_count_error_upper_bound': 0, + 'sum_other_doc_count': 0, + 'buckets': [{ + '4': { + 'buckets': { + '200': { + 'doc_count': 705 + }, + '404': { + 'doc_count': 1 + } + } + }, + 'key': '200', + 'doc_count': 705 + }, { + '4': { + 'buckets': { + '200': { + 'doc_count': 2 + }, + '404': { + 'doc_count': 24 + } + } + }, + 'key': '404', + 'doc_count': 24 + }, { + '4': { + 'buckets': { + '200': { + 'doc_count': 1 + }, + '404': { + 'doc_count': 1 + } + } + }, + 'key': '503', + 'doc_count': 17 + }] + }, + 'key_as_string': '2017-07-25T15:00:00.000+02:00', + 'key': 1500987600000, + 'doc_count': 746 + }, { + '3': { + 'doc_count_error_upper_bound': 0, + 'sum_other_doc_count': 0, + 'buckets': [{ + '4': { + 'buckets': { + '200': { + 'doc_count': 200 + }, + '404': { + 'doc_count': 0 + } + } + }, + 'key': '200', + 'doc_count': 200 + }, { + '4': { + 'buckets': { + '200': { + 'doc_count': 1 + }, + '404': { + 'doc_count': 15 + } + } + }, + 'key': '404', + 'doc_count': 15 + }, { + '4': { + 'buckets': { + '200': { + 'doc_count': 0 + }, + '404': { + 'doc_count': 0 + } + } + }, + 'key': '503', + 'doc_count': 11 + }] + }, + 'key_as_string': '2017-07-25T18:00:00.000+02:00', + 'key': 1500998400000, + 'doc_count': 226 + }, { + '3': { + 'doc_count_error_upper_bound': 0, + 'sum_other_doc_count': 0, + 'buckets': [{ + '4': { + 'buckets': { + '200': { + 'doc_count': 37 + }, + '404': { + 'doc_count': 0 + } + } + }, + 'key': '200', + 'doc_count': 37 + }, { + '4': { + 'buckets': { + '200': { + 'doc_count': 0 + }, + '404': { + 'doc_count': 3 + } + } + }, + 'key': '404', + 'doc_count': 3 + }, { + '4': { + 'buckets': { + '200': { + 'doc_count': 0 + }, + '404': { + 'doc_count': 0 + } + } + }, + 'key': '503', + 'doc_count': 2 + }] + }, + 'key_as_string': '2017-07-25T21:00:00.000+02:00', + 'key': 1501009200000, + 'doc_count': 42 + }, { + '3': { + 'doc_count_error_upper_bound': 0, + 'sum_other_doc_count': 0, + 'buckets': [{ + '4': { + 'buckets': { + '200': { + 'doc_count': 40 + }, + '404': { + 'doc_count': 0 + } + } + }, + 'key': '200', + 'doc_count': 40 + }, { + '4': { + 'buckets': { + '200': { + 'doc_count': 0 + }, + '404': { + 'doc_count': 1 + } + } + }, + 'key': '404', + 'doc_count': 1 + }] + }, + 'key_as_string': '2017-07-26T00:00:00.000+02:00', + 'key': 1501020000000, + 'doc_count': 41 + }, { + '3': { + 'doc_count_error_upper_bound': 0, + 'sum_other_doc_count': 0, + 'buckets': [{ + '4': { + 'buckets': { + '200': { + 'doc_count': 183 + }, + '404': { + 'doc_count': 0 + } + } + }, + 'key': '200', + 'doc_count': 183 + }, { + '4': { + 'buckets': { + '200': { + 'doc_count': 0 + }, + '404': { + 'doc_count': 14 + } + } + }, + 'key': '404', + 'doc_count': 14 + }, { + '4': { + 'buckets': { + '200': { + 'doc_count': 0 + }, + '404': { + 'doc_count': 0 + } + } + }, + 'key': '503', + 'doc_count': 4 + }] + }, + 'key_as_string': '2017-07-26T03:00:00.000+02:00', + 'key': 1501030800000, + 'doc_count': 201 + }, { + '3': { + 'doc_count_error_upper_bound': 0, + 'sum_other_doc_count': 0, + 'buckets': [{ + '4': { + 'buckets': { + '200': { + 'doc_count': 662 + }, + '404': { + 'doc_count': 0 + } + } + }, + 'key': '200', + 'doc_count': 662 + }, { + '4': { + 'buckets': { + '200': { + 'doc_count': 1 + }, + '404': { + 'doc_count': 34 + } + } + }, + 'key': '404', + 'doc_count': 34 + }, { + '4': { + 'buckets': { + '200': { + 'doc_count': 0 + }, + '404': { + 'doc_count': 0 + } + } + }, + 'key': '503', + 'doc_count': 19 + }] + }, + 'key_as_string': '2017-07-26T06:00:00.000+02:00', + 'key': 1501041600000, + 'doc_count': 715 + }, { + '3': { + 'doc_count_error_upper_bound': 0, + 'sum_other_doc_count': 0, + 'buckets': [{ + '4': { + 'buckets': { + '200': { + 'doc_count': 1286 + }, + '404': { + 'doc_count': 3 + } + } + }, + 'key': '200', + 'doc_count': 1286 + }, { + '4': { + 'buckets': { + '200': { + 'doc_count': 5 + }, + '404': { + 'doc_count': 66 + } + } + }, + 'key': '404', + 'doc_count': 66 + }, { + '4': { + 'buckets': { + '200': { + 'doc_count': 2 + }, + '404': { + 'doc_count': 0 + } + } + }, + 'key': '503', + 'doc_count': 50 + }] + }, + 'key_as_string': '2017-07-26T09:00:00.000+02:00', + 'key': 1501052400000, + 'doc_count': 1402 + }, { + '3': { + 'doc_count_error_upper_bound': 0, + 'sum_other_doc_count': 0, + 'buckets': [{ + '4': { + 'buckets': { + '200': { + 'doc_count': 1272 + }, + '404': { + 'doc_count': 3 + } + } + }, + 'key': '200', + 'doc_count': 1272 + }, { + '4': { + 'buckets': { + '200': { + 'doc_count': 6 + }, + '404': { + 'doc_count': 73 + } + } + }, + 'key': '404', + 'doc_count': 73 + }, { + '4': { + 'buckets': { + '200': { + 'doc_count': 1 + }, + '404': { + 'doc_count': 1 + } + } + }, + 'key': '503', + 'doc_count': 45 + }] + }, + 'key_as_string': '2017-07-26T12:00:00.000+02:00', + 'key': 1501063200000, + 'doc_count': 1390 + }, { + '3': { + 'doc_count_error_upper_bound': 0, + 'sum_other_doc_count': 0, + 'buckets': [{ + '4': { + 'buckets': { + '200': { + 'doc_count': 662 + }, + '404': { + 'doc_count': 0 + } + } + }, + 'key': '200', + 'doc_count': 662 + }, { + '4': { + 'buckets': { + '200': { + 'doc_count': 0 + }, + '404': { + 'doc_count': 34 + } + } + }, + 'key': '404', + 'doc_count': 34 + }, { + '4': { + 'buckets': { + '200': { + 'doc_count': 1 + }, + '404': { + 'doc_count': 0 + } + } + }, + 'key': '503', + 'doc_count': 14 + }] + }, + 'key_as_string': '2017-07-26T15:00:00.000+02:00', + 'key': 1501074000000, + 'doc_count': 710 + }, { + '3': { + 'doc_count_error_upper_bound': 0, + 'sum_other_doc_count': 0, + 'buckets': [{ + '4': { + 'buckets': { + '200': { + 'doc_count': 159 + }, + '404': { + 'doc_count': 0 + } + } + }, + 'key': '200', + 'doc_count': 159 + }, { + '4': { + 'buckets': { + '200': { + 'doc_count': 0 + }, + '404': { + 'doc_count': 12 + } + } + }, + 'key': '404', + 'doc_count': 12 + }, { + '4': { + 'buckets': { + '200': { + 'doc_count': 0 + }, + '404': { + 'doc_count': 0 + } + } + }, + 'key': '503', + 'doc_count': 1 + }] + }, + 'key_as_string': '2017-07-26T18:00:00.000+02:00', + 'key': 1501084800000, + 'doc_count': 172 + }, { + '3': { + 'doc_count_error_upper_bound': 0, + 'sum_other_doc_count': 0, + 'buckets': [{ + '4': { + 'buckets': { + '200': { + 'doc_count': 33 + }, + '404': { + 'doc_count': 0 + } + } + }, + 'key': '200', + 'doc_count': 33 + }, { + '4': { + 'buckets': { + '200': { + 'doc_count': 0 + }, + '404': { + 'doc_count': 0 + } + } + }, + 'key': '503', + 'doc_count': 2 + }, { + '4': { + 'buckets': { + '200': { + 'doc_count': 0 + }, + '404': { + 'doc_count': 1 + } + } + }, + 'key': '404', + 'doc_count': 1 + }] + }, + 'key_as_string': '2017-07-26T21:00:00.000+02:00', + 'key': 1501095600000, + 'doc_count': 36 + }, { + '3': { + 'doc_count_error_upper_bound': 0, + 'sum_other_doc_count': 0, + 'buckets': [{ + '4': { + 'buckets': { + '200': { + 'doc_count': 33 + }, + '404': { + 'doc_count': 0 + } + } + }, + 'key': '200', + 'doc_count': 33 + }, { + '4': { + 'buckets': { + '200': { + 'doc_count': 0 + }, + '404': { + 'doc_count': 1 + } + } + }, + 'key': '404', + 'doc_count': 1 + }] + }, + 'key_as_string': '2017-07-27T00:00:00.000+02:00', + 'key': 1501106400000, + 'doc_count': 34 + }, { + '3': { + 'doc_count_error_upper_bound': 0, + 'sum_other_doc_count': 0, + 'buckets': [{ + '4': { + 'buckets': { + '200': { + 'doc_count': 159 + }, + '404': { + 'doc_count': 1 + } + } + }, + 'key': '200', + 'doc_count': 159 + }, { + '4': { + 'buckets': { + '200': { + 'doc_count': 0 + }, + '404': { + 'doc_count': 11 + } + } + }, + 'key': '404', + 'doc_count': 11 + }, { + '4': { + 'buckets': { + '200': { + 'doc_count': 0 + }, + '404': { + 'doc_count': 0 + } + } + }, + 'key': '503', + 'doc_count': 8 + }] + }, + 'key_as_string': '2017-07-27T03:00:00.000+02:00', + 'key': 1501117200000, + 'doc_count': 178 + }, { + '3': { + 'doc_count_error_upper_bound': 0, + 'sum_other_doc_count': 0, + 'buckets': [{ + '4': { + 'buckets': { + '200': { + 'doc_count': 676 + }, + '404': { + 'doc_count': 0 + } + } + }, + 'key': '200', + 'doc_count': 676 + }, { + '4': { + 'buckets': { + '200': { + 'doc_count': 2 + }, + '404': { + 'doc_count': 45 + } + } + }, + 'key': '404', + 'doc_count': 45 + }, { + '4': { + 'buckets': { + '200': { + 'doc_count': 0 + }, + '404': { + 'doc_count': 0 + } + } + }, + 'key': '503', + 'doc_count': 21 + }] + }, + 'key_as_string': '2017-07-27T06:00:00.000+02:00', + 'key': 1501128000000, + 'doc_count': 742 + }, { + '3': { + 'doc_count_error_upper_bound': 0, + 'sum_other_doc_count': 0, + 'buckets': [{ + '4': { + 'buckets': { + '200': { + 'doc_count': 778 + }, + '404': { + 'doc_count': 1 + } + } + }, + 'key': '200', + 'doc_count': 778 + }, { + '4': { + 'buckets': { + '200': { + 'doc_count': 2 + }, + '404': { + 'doc_count': 42 + } + } + }, + 'key': '404', + 'doc_count': 42 + }, { + '4': { + 'buckets': { + '200': { + 'doc_count': 2 + }, + '404': { + 'doc_count': 0 + } + } + }, + 'key': '503', + 'doc_count': 19 + }] + }, + 'key_as_string': '2017-07-27T09:00:00.000+02:00', + 'key': 1501138800000, + 'doc_count': 839 + }] + } + }, + 'status': 200 +}; + +export default response; diff --git a/src/fixtures/agg_resp/histogram_range_iprange.js b/src/fixtures/agg_resp/histogram_range_iprange.js new file mode 100644 index 0000000000000..d1f09b5bab655 --- /dev/null +++ b/src/fixtures/agg_resp/histogram_range_iprange.js @@ -0,0 +1,1083 @@ +const response = { + 'took': 8, + 'timed_out': false, + '_shards': { + 'total': 1, + 'successful': 1, + 'skipped': 0, + 'failed': 0 + }, + 'hits': { + 'total': 11205, + 'max_score': 0, + 'hits': [] + }, + 'aggregations': { + '2': { + 'buckets': [{ + '3': { + 'buckets': { + '*-100000.0': { + '4': { + 'buckets': [{ + 'from': '0.0.0.0', + 'to': '127.255.255.255', + 'doc_count': 20 + }, { + 'from': '128.0.0.0', + 'to': '191.255.255.255', + 'doc_count': 8 + }] + }, + 'to': 100000, + 'doc_count': 38 + }, + '100000.0-200000.0': { + '4': { + 'buckets': [{ + 'from': '0.0.0.0', + 'to': '127.255.255.255', + 'doc_count': 0 + }, { + 'from': '128.0.0.0', + 'to': '191.255.255.255', + 'doc_count': 0 + }] + }, + 'from': 100000, + 'to': 200000, + 'doc_count': 0 + }, + '200000.0-*': { + '4': { + 'buckets': [{ + 'from': '0.0.0.0', + 'to': '127.255.255.255', + 'doc_count': 0 + }, { + 'from': '128.0.0.0', + 'to': '191.255.255.255', + 'doc_count': 0 + }] + }, + 'from': 200000, + 'doc_count': 0 + } + } + }, + 'key': 0, + 'doc_count': 1087 + }, { + '3': { + 'buckets': { + '*-100000.0': { + '4': { + 'buckets': [{ + 'from': '0.0.0.0', + 'to': '127.255.255.255', + 'doc_count': 21 + }, { + 'from': '128.0.0.0', + 'to': '191.255.255.255', + 'doc_count': 7 + }] + }, + 'to': 100000, + 'doc_count': 36 + }, + '100000.0-200000.0': { + '4': { + 'buckets': [{ + 'from': '0.0.0.0', + 'to': '127.255.255.255', + 'doc_count': 0 + }, { + 'from': '128.0.0.0', + 'to': '191.255.255.255', + 'doc_count': 0 + }] + }, + 'from': 100000, + 'to': 200000, + 'doc_count': 0 + }, + '200000.0-*': { + '4': { + 'buckets': [{ + 'from': '0.0.0.0', + 'to': '127.255.255.255', + 'doc_count': 0 + }, { + 'from': '128.0.0.0', + 'to': '191.255.255.255', + 'doc_count': 0 + }] + }, + 'from': 200000, + 'doc_count': 0 + } + } + }, + 'key': 1000, + 'doc_count': 569 + }, { + '3': { + 'buckets': { + '*-100000.0': { + '4': { + 'buckets': [{ + 'from': '0.0.0.0', + 'to': '127.255.255.255', + 'doc_count': 10 + }, { + 'from': '128.0.0.0', + 'to': '191.255.255.255', + 'doc_count': 5 + }] + }, + 'to': 100000, + 'doc_count': 18 + }, + '100000.0-200000.0': { + '4': { + 'buckets': [{ + 'from': '0.0.0.0', + 'to': '127.255.255.255', + 'doc_count': 11 + }, { + 'from': '128.0.0.0', + 'to': '191.255.255.255', + 'doc_count': 4 + }] + }, + 'from': 100000, + 'to': 200000, + 'doc_count': 21 + }, + '200000.0-*': { + '4': { + 'buckets': [{ + 'from': '0.0.0.0', + 'to': '127.255.255.255', + 'doc_count': 0 + }, { + 'from': '128.0.0.0', + 'to': '191.255.255.255', + 'doc_count': 0 + }] + }, + 'from': 200000, + 'doc_count': 0 + } + } + }, + 'key': 2000, + 'doc_count': 1128 + }, { + '3': { + 'buckets': { + '*-100000.0': { + '4': { + 'buckets': [{ + 'from': '0.0.0.0', + 'to': '127.255.255.255', + 'doc_count': 0 + }, { + 'from': '128.0.0.0', + 'to': '191.255.255.255', + 'doc_count': 0 + }] + }, + 'to': 100000, + 'doc_count': 0 + }, + '100000.0-200000.0': { + '4': { + 'buckets': [{ + 'from': '0.0.0.0', + 'to': '127.255.255.255', + 'doc_count': 13 + }, { + 'from': '128.0.0.0', + 'to': '191.255.255.255', + 'doc_count': 10 + }] + }, + 'from': 100000, + 'to': 200000, + 'doc_count': 31 + }, + '200000.0-*': { + '4': { + 'buckets': [{ + 'from': '0.0.0.0', + 'to': '127.255.255.255', + 'doc_count': 0 + }, { + 'from': '128.0.0.0', + 'to': '191.255.255.255', + 'doc_count': 0 + }] + }, + 'from': 200000, + 'doc_count': 0 + } + } + }, + 'key': 3000, + 'doc_count': 1092 + }, { + '3': { + 'buckets': { + '*-100000.0': { + '4': { + 'buckets': [{ + 'from': '0.0.0.0', + 'to': '127.255.255.255', + 'doc_count': 0 + }, { + 'from': '128.0.0.0', + 'to': '191.255.255.255', + 'doc_count': 0 + }] + }, + 'to': 100000, + 'doc_count': 0 + }, + '100000.0-200000.0': { + '4': { + 'buckets': [{ + 'from': '0.0.0.0', + 'to': '127.255.255.255', + 'doc_count': 17 + }, { + 'from': '128.0.0.0', + 'to': '191.255.255.255', + 'doc_count': 9 + }] + }, + 'from': 100000, + 'to': 200000, + 'doc_count': 35 + }, + '200000.0-*': { + '4': { + 'buckets': [{ + 'from': '0.0.0.0', + 'to': '127.255.255.255', + 'doc_count': 0 + }, { + 'from': '128.0.0.0', + 'to': '191.255.255.255', + 'doc_count': 0 + }] + }, + 'from': 200000, + 'doc_count': 0 + } + } + }, + 'key': 4000, + 'doc_count': 1124 + }, { + '3': { + 'buckets': { + '*-100000.0': { + '4': { + 'buckets': [{ + 'from': '0.0.0.0', + 'to': '127.255.255.255', + 'doc_count': 0 + }, { + 'from': '128.0.0.0', + 'to': '191.255.255.255', + 'doc_count': 0 + }] + }, + 'to': 100000, + 'doc_count': 0 + }, + '100000.0-200000.0': { + '4': { + 'buckets': [{ + 'from': '0.0.0.0', + 'to': '127.255.255.255', + 'doc_count': 0 + }, { + 'from': '128.0.0.0', + 'to': '191.255.255.255', + 'doc_count': 0 + }] + }, + 'from': 100000, + 'to': 200000, + 'doc_count': 0 + }, + '200000.0-*': { + '4': { + 'buckets': [{ + 'from': '0.0.0.0', + 'to': '127.255.255.255', + 'doc_count': 19 + }, { + 'from': '128.0.0.0', + 'to': '191.255.255.255', + 'doc_count': 11 + }] + }, + 'from': 200000, + 'doc_count': 37 + } + } + }, + 'key': 5000, + 'doc_count': 1133 + }, { + '3': { + 'buckets': { + '*-100000.0': { + '4': { + 'buckets': [{ + 'from': '0.0.0.0', + 'to': '127.255.255.255', + 'doc_count': 0 + }, { + 'from': '128.0.0.0', + 'to': '191.255.255.255', + 'doc_count': 0 + }] + }, + 'to': 100000, + 'doc_count': 0 + }, + '100000.0-200000.0': { + '4': { + 'buckets': [{ + 'from': '0.0.0.0', + 'to': '127.255.255.255', + 'doc_count': 0 + }, { + 'from': '128.0.0.0', + 'to': '191.255.255.255', + 'doc_count': 0 + }] + }, + 'from': 100000, + 'to': 200000, + 'doc_count': 0 + }, + '200000.0-*': { + '4': { + 'buckets': [{ + 'from': '0.0.0.0', + 'to': '127.255.255.255', + 'doc_count': 22 + }, { + 'from': '128.0.0.0', + 'to': '191.255.255.255', + 'doc_count': 15 + }] + }, + 'from': 200000, + 'doc_count': 45 + } + } + }, + 'key': 6000, + 'doc_count': 1150 + }, { + '3': { + 'buckets': { + '*-100000.0': { + '4': { + 'buckets': [{ + 'from': '0.0.0.0', + 'to': '127.255.255.255', + 'doc_count': 0 + }, { + 'from': '128.0.0.0', + 'to': '191.255.255.255', + 'doc_count': 0 + }] + }, + 'to': 100000, + 'doc_count': 0 + }, + '100000.0-200000.0': { + '4': { + 'buckets': [{ + 'from': '0.0.0.0', + 'to': '127.255.255.255', + 'doc_count': 0 + }, { + 'from': '128.0.0.0', + 'to': '191.255.255.255', + 'doc_count': 0 + }] + }, + 'from': 100000, + 'to': 200000, + 'doc_count': 0 + }, + '200000.0-*': { + '4': { + 'buckets': [{ + 'from': '0.0.0.0', + 'to': '127.255.255.255', + 'doc_count': 18 + }, { + 'from': '128.0.0.0', + 'to': '191.255.255.255', + 'doc_count': 9 + }] + }, + 'from': 200000, + 'doc_count': 34 + } + } + }, + 'key': 7000, + 'doc_count': 1093 + }, { + '3': { + 'buckets': { + '*-100000.0': { + '4': { + 'buckets': [{ + 'from': '0.0.0.0', + 'to': '127.255.255.255', + 'doc_count': 0 + }, { + 'from': '128.0.0.0', + 'to': '191.255.255.255', + 'doc_count': 0 + }] + }, + 'to': 100000, + 'doc_count': 0 + }, + '100000.0-200000.0': { + '4': { + 'buckets': [{ + 'from': '0.0.0.0', + 'to': '127.255.255.255', + 'doc_count': 0 + }, { + 'from': '128.0.0.0', + 'to': '191.255.255.255', + 'doc_count': 0 + }] + }, + 'from': 100000, + 'to': 200000, + 'doc_count': 0 + }, + '200000.0-*': { + '4': { + 'buckets': [{ + 'from': '0.0.0.0', + 'to': '127.255.255.255', + 'doc_count': 23 + }, { + 'from': '128.0.0.0', + 'to': '191.255.255.255', + 'doc_count': 12 + }] + }, + 'from': 200000, + 'doc_count': 43 + } + } + }, + 'key': 8000, + 'doc_count': 1187 + }, { + '3': { + 'buckets': { + '*-100000.0': { + '4': { + 'buckets': [{ + 'from': '0.0.0.0', + 'to': '127.255.255.255', + 'doc_count': 0 + }, { + 'from': '128.0.0.0', + 'to': '191.255.255.255', + 'doc_count': 0 + }] + }, + 'to': 100000, + 'doc_count': 0 + }, + '100000.0-200000.0': { + '4': { + 'buckets': [{ + 'from': '0.0.0.0', + 'to': '127.255.255.255', + 'doc_count': 0 + }, { + 'from': '128.0.0.0', + 'to': '191.255.255.255', + 'doc_count': 0 + }] + }, + 'from': 100000, + 'to': 200000, + 'doc_count': 0 + }, + '200000.0-*': { + '4': { + 'buckets': [{ + 'from': '0.0.0.0', + 'to': '127.255.255.255', + 'doc_count': 16 + }, { + 'from': '128.0.0.0', + 'to': '191.255.255.255', + 'doc_count': 11 + }] + }, + 'from': 200000, + 'doc_count': 33 + } + } + }, + 'key': 9000, + 'doc_count': 1091 + }, { + '3': { + 'buckets': { + '*-100000.0': { + '4': { + 'buckets': [{ + 'from': '0.0.0.0', + 'to': '127.255.255.255', + 'doc_count': 0 + }, { + 'from': '128.0.0.0', + 'to': '191.255.255.255', + 'doc_count': 0 + }] + }, + 'to': 100000, + 'doc_count': 0 + }, + '100000.0-200000.0': { + '4': { + 'buckets': [{ + 'from': '0.0.0.0', + 'to': '127.255.255.255', + 'doc_count': 0 + }, { + 'from': '128.0.0.0', + 'to': '191.255.255.255', + 'doc_count': 0 + }] + }, + 'from': 100000, + 'to': 200000, + 'doc_count': 0 + }, + '200000.0-*': { + '4': { + 'buckets': [{ + 'from': '0.0.0.0', + 'to': '127.255.255.255', + 'doc_count': 0 + }, { + 'from': '128.0.0.0', + 'to': '191.255.255.255', + 'doc_count': 0 + }] + }, + 'from': 200000, + 'doc_count': 0 + } + } + }, + 'key': 10000, + 'doc_count': 64 + }, { + '3': { + 'buckets': { + '*-100000.0': { + '4': { + 'buckets': [{ + 'from': '0.0.0.0', + 'to': '127.255.255.255', + 'doc_count': 0 + }, { + 'from': '128.0.0.0', + 'to': '191.255.255.255', + 'doc_count': 0 + }] + }, + 'to': 100000, + 'doc_count': 0 + }, + '100000.0-200000.0': { + '4': { + 'buckets': [{ + 'from': '0.0.0.0', + 'to': '127.255.255.255', + 'doc_count': 0 + }, { + 'from': '128.0.0.0', + 'to': '191.255.255.255', + 'doc_count': 0 + }] + }, + 'from': 100000, + 'to': 200000, + 'doc_count': 0 + }, + '200000.0-*': { + '4': { + 'buckets': [{ + 'from': '0.0.0.0', + 'to': '127.255.255.255', + 'doc_count': 0 + }, { + 'from': '128.0.0.0', + 'to': '191.255.255.255', + 'doc_count': 0 + }] + }, + 'from': 200000, + 'doc_count': 0 + } + } + }, + 'key': 11000, + 'doc_count': 41 + }, { + '3': { + 'buckets': { + '*-100000.0': { + '4': { + 'buckets': [{ + 'from': '0.0.0.0', + 'to': '127.255.255.255', + 'doc_count': 0 + }, { + 'from': '128.0.0.0', + 'to': '191.255.255.255', + 'doc_count': 0 + }] + }, + 'to': 100000, + 'doc_count': 0 + }, + '100000.0-200000.0': { + '4': { + 'buckets': [{ + 'from': '0.0.0.0', + 'to': '127.255.255.255', + 'doc_count': 0 + }, { + 'from': '128.0.0.0', + 'to': '191.255.255.255', + 'doc_count': 0 + }] + }, + 'from': 100000, + 'to': 200000, + 'doc_count': 0 + }, + '200000.0-*': { + '4': { + 'buckets': [{ + 'from': '0.0.0.0', + 'to': '127.255.255.255', + 'doc_count': 0 + }, { + 'from': '128.0.0.0', + 'to': '191.255.255.255', + 'doc_count': 0 + }] + }, + 'from': 200000, + 'doc_count': 0 + } + } + }, + 'key': 12000, + 'doc_count': 63 + }, { + '3': { + 'buckets': { + '*-100000.0': { + '4': { + 'buckets': [{ + 'from': '0.0.0.0', + 'to': '127.255.255.255', + 'doc_count': 0 + }, { + 'from': '128.0.0.0', + 'to': '191.255.255.255', + 'doc_count': 0 + }] + }, + 'to': 100000, + 'doc_count': 0 + }, + '100000.0-200000.0': { + '4': { + 'buckets': [{ + 'from': '0.0.0.0', + 'to': '127.255.255.255', + 'doc_count': 0 + }, { + 'from': '128.0.0.0', + 'to': '191.255.255.255', + 'doc_count': 0 + }] + }, + 'from': 100000, + 'to': 200000, + 'doc_count': 0 + }, + '200000.0-*': { + '4': { + 'buckets': [{ + 'from': '0.0.0.0', + 'to': '127.255.255.255', + 'doc_count': 0 + }, { + 'from': '128.0.0.0', + 'to': '191.255.255.255', + 'doc_count': 0 + }] + }, + 'from': 200000, + 'doc_count': 0 + } + } + }, + 'key': 13000, + 'doc_count': 40 + }, { + '3': { + 'buckets': { + '*-100000.0': { + '4': { + 'buckets': [{ + 'from': '0.0.0.0', + 'to': '127.255.255.255', + 'doc_count': 0 + }, { + 'from': '128.0.0.0', + 'to': '191.255.255.255', + 'doc_count': 0 + }] + }, + 'to': 100000, + 'doc_count': 0 + }, + '100000.0-200000.0': { + '4': { + 'buckets': [{ + 'from': '0.0.0.0', + 'to': '127.255.255.255', + 'doc_count': 0 + }, { + 'from': '128.0.0.0', + 'to': '191.255.255.255', + 'doc_count': 0 + }] + }, + 'from': 100000, + 'to': 200000, + 'doc_count': 0 + }, + '200000.0-*': { + '4': { + 'buckets': [{ + 'from': '0.0.0.0', + 'to': '127.255.255.255', + 'doc_count': 0 + }, { + 'from': '128.0.0.0', + 'to': '191.255.255.255', + 'doc_count': 0 + }] + }, + 'from': 200000, + 'doc_count': 0 + } + } + }, + 'key': 14000, + 'doc_count': 52 + }, { + '3': { + 'buckets': { + '*-100000.0': { + '4': { + 'buckets': [{ + 'from': '0.0.0.0', + 'to': '127.255.255.255', + 'doc_count': 0 + }, { + 'from': '128.0.0.0', + 'to': '191.255.255.255', + 'doc_count': 0 + }] + }, + 'to': 100000, + 'doc_count': 0 + }, + '100000.0-200000.0': { + '4': { + 'buckets': [{ + 'from': '0.0.0.0', + 'to': '127.255.255.255', + 'doc_count': 0 + }, { + 'from': '128.0.0.0', + 'to': '191.255.255.255', + 'doc_count': 0 + }] + }, + 'from': 100000, + 'to': 200000, + 'doc_count': 0 + }, + '200000.0-*': { + '4': { + 'buckets': [{ + 'from': '0.0.0.0', + 'to': '127.255.255.255', + 'doc_count': 0 + }, { + 'from': '128.0.0.0', + 'to': '191.255.255.255', + 'doc_count': 0 + }] + }, + 'from': 200000, + 'doc_count': 0 + } + } + }, + 'key': 15000, + 'doc_count': 53 + }, { + '3': { + 'buckets': { + '*-100000.0': { + '4': { + 'buckets': [{ + 'from': '0.0.0.0', + 'to': '127.255.255.255', + 'doc_count': 0 + }, { + 'from': '128.0.0.0', + 'to': '191.255.255.255', + 'doc_count': 0 + }] + }, + 'to': 100000, + 'doc_count': 0 + }, + '100000.0-200000.0': { + '4': { + 'buckets': [{ + 'from': '0.0.0.0', + 'to': '127.255.255.255', + 'doc_count': 0 + }, { + 'from': '128.0.0.0', + 'to': '191.255.255.255', + 'doc_count': 0 + }] + }, + 'from': 100000, + 'to': 200000, + 'doc_count': 0 + }, + '200000.0-*': { + '4': { + 'buckets': [{ + 'from': '0.0.0.0', + 'to': '127.255.255.255', + 'doc_count': 0 + }, { + 'from': '128.0.0.0', + 'to': '191.255.255.255', + 'doc_count': 0 + }] + }, + 'from': 200000, + 'doc_count': 0 + } + } + }, + 'key': 16000, + 'doc_count': 65 + }, { + '3': { + 'buckets': { + '*-100000.0': { + '4': { + 'buckets': [{ + 'from': '0.0.0.0', + 'to': '127.255.255.255', + 'doc_count': 0 + }, { + 'from': '128.0.0.0', + 'to': '191.255.255.255', + 'doc_count': 0 + }] + }, + 'to': 100000, + 'doc_count': 0 + }, + '100000.0-200000.0': { + '4': { + 'buckets': [{ + 'from': '0.0.0.0', + 'to': '127.255.255.255', + 'doc_count': 0 + }, { + 'from': '128.0.0.0', + 'to': '191.255.255.255', + 'doc_count': 0 + }] + }, + 'from': 100000, + 'to': 200000, + 'doc_count': 0 + }, + '200000.0-*': { + '4': { + 'buckets': [{ + 'from': '0.0.0.0', + 'to': '127.255.255.255', + 'doc_count': 0 + }, { + 'from': '128.0.0.0', + 'to': '191.255.255.255', + 'doc_count': 0 + }] + }, + 'from': 200000, + 'doc_count': 0 + } + } + }, + 'key': 17000, + 'doc_count': 50 + }, { + '3': { + 'buckets': { + '*-100000.0': { + '4': { + 'buckets': [{ + 'from': '0.0.0.0', + 'to': '127.255.255.255', + 'doc_count': 0 + }, { + 'from': '128.0.0.0', + 'to': '191.255.255.255', + 'doc_count': 0 + }] + }, + 'to': 100000, + 'doc_count': 0 + }, + '100000.0-200000.0': { + '4': { + 'buckets': [{ + 'from': '0.0.0.0', + 'to': '127.255.255.255', + 'doc_count': 0 + }, { + 'from': '128.0.0.0', + 'to': '191.255.255.255', + 'doc_count': 0 + }] + }, + 'from': 100000, + 'to': 200000, + 'doc_count': 0 + }, + '200000.0-*': { + '4': { + 'buckets': [{ + 'from': '0.0.0.0', + 'to': '127.255.255.255', + 'doc_count': 0 + }, { + 'from': '128.0.0.0', + 'to': '191.255.255.255', + 'doc_count': 0 + }] + }, + 'from': 200000, + 'doc_count': 0 + } + } + }, + 'key': 18000, + 'doc_count': 50 + }, { + '3': { + 'buckets': { + '*-100000.0': { + '4': { + 'buckets': [{ + 'from': '0.0.0.0', + 'to': '127.255.255.255', + 'doc_count': 0 + }, { + 'from': '128.0.0.0', + 'to': '191.255.255.255', + 'doc_count': 0 + }] + }, + 'to': 100000, + 'doc_count': 0 + }, + '100000.0-200000.0': { + '4': { + 'buckets': [{ + 'from': '0.0.0.0', + 'to': '127.255.255.255', + 'doc_count': 0 + }, { + 'from': '128.0.0.0', + 'to': '191.255.255.255', + 'doc_count': 0 + }] + }, + 'from': 100000, + 'to': 200000, + 'doc_count': 0 + }, + '200000.0-*': { + '4': { + 'buckets': [{ + 'from': '0.0.0.0', + 'to': '127.255.255.255', + 'doc_count': 0 + }, { + 'from': '128.0.0.0', + 'to': '191.255.255.255', + 'doc_count': 0 + }] + }, + 'from': 200000, + 'doc_count': 0 + } + } + }, + 'key': 19000, + 'doc_count': 73 + }] + } + }, + 'status': 200 +}; + +export { response }; diff --git a/src/fixtures/response_handlers/series/filter_date_term.js b/src/fixtures/response_handlers/series/filter_date_term.js new file mode 100644 index 0000000000000..2961579325df8 --- /dev/null +++ b/src/fixtures/response_handlers/series/filter_date_term.js @@ -0,0 +1,847 @@ +const response = { + 'charts': [{ + 'label': 'filters', + 'series': [{ + 'aggId': '1', + 'label': '200', + 'aggs': [{ + 'id': '1', + 'label': 'Count', + 'value': 'y' + }, { + 'id': '4', + 'label': 'filters', + 'value': '200', + 'rawValue': '200' + }, { + 'id': '3', + 'label': 'response.raw: descending', + 'value': '200', + 'rawValue': '200' + }, { + 'id': '2', + 'label': '@timestamp per 2h', + 'value': 'x_as_string' + }], + 'values': [{ + 'x_as_string': 1500933600000, + 'x_raw': 1500933600000, + 'x': 1500933600000, + 'y': 40, + 'z': null + }, { + 'x_as_string': 1500944400000, + 'x_raw': 1500944400000, + 'x': 1500944400000, + 'y': 148, + 'z': null + }, { + 'x_as_string': 1500955200000, + 'x_raw': 1500955200000, + 'x': 1500955200000, + 'y': 613, + 'z': null + }, { + 'x_as_string': 1500966000000, + 'x_raw': 1500966000000, + 'x': 1500966000000, + 'y': 1281, + 'z': null + }, { + 'x_as_string': 1500976800000, + 'x_raw': 1500976800000, + 'x': 1500976800000, + 'y': 1276, + 'z': null + }, { + 'x_as_string': 1500987600000, + 'x_raw': 1500987600000, + 'x': 1500987600000, + 'y': 705, + 'z': null + }, { + 'x_as_string': 1500998400000, + 'x_raw': 1500998400000, + 'x': 1500998400000, + 'y': 200, + 'z': null + }, { + 'x_as_string': 1501009200000, + 'x_raw': 1501009200000, + 'x': 1501009200000, + 'y': 37, + 'z': null + }, { + 'x_as_string': 1501020000000, + 'x_raw': 1501020000000, + 'x': 1501020000000, + 'y': 40, + 'z': null + }, { + 'x_as_string': 1501030800000, + 'x_raw': 1501030800000, + 'x': 1501030800000, + 'y': 183, + 'z': null + }, { + 'x_as_string': 1501041600000, + 'x_raw': 1501041600000, + 'x': 1501041600000, + 'y': 662, + 'z': null + }, { + 'x_as_string': 1501052400000, + 'x_raw': 1501052400000, + 'x': 1501052400000, + 'y': 1286, + 'z': null + }, { + 'x_as_string': 1501063200000, + 'x_raw': 1501063200000, + 'x': 1501063200000, + 'y': 1272, + 'z': null + }, { + 'x_as_string': 1501074000000, + 'x_raw': 1501074000000, + 'x': 1501074000000, + 'y': 662, + 'z': null + }, { + 'x_as_string': 1501084800000, + 'x_raw': 1501084800000, + 'x': 1501084800000, + 'y': 159, + 'z': null + }, { + 'x_as_string': 1501095600000, + 'x_raw': 1501095600000, + 'x': 1501095600000, + 'y': 33, + 'z': null + }, { + 'x_as_string': 1501106400000, + 'x_raw': 1501106400000, + 'x': 1501106400000, + 'y': 33, + 'z': null + }, { + 'x_as_string': 1501117200000, + 'x_raw': 1501117200000, + 'x': 1501117200000, + 'y': 159, + 'z': null + }, { + 'x_as_string': 1501128000000, + 'x_raw': 1501128000000, + 'x': 1501128000000, + 'y': 676, + 'z': null + }, { + 'x_as_string': 1501138800000, + 'x_raw': 1501138800000, + 'x': 1501138800000, + 'y': 778, + 'z': null + }] + }, { + 'aggId': '1', + 'label': '404', + 'aggs': [{ + 'id': '1', + 'label': 'Count', + 'value': 'y' + }, { + 'id': '4', + 'label': 'filters', + 'value': '200', + 'rawValue': '200' + }, { + 'id': '3', + 'label': 'response.raw: descending', + 'value': '404', + 'rawValue': '404' + }, { + 'id': '2', + 'label': '@timestamp per 2h', + 'value': 'x_as_string' + }], + 'values': [{ + 'x_as_string': 1500933600000, + 'x_raw': 1500933600000, + 'x': 1500933600000, + 'y': 0, + 'z': null + }, { + 'x_as_string': 1500944400000, + 'x_raw': 1500944400000, + 'x': 1500944400000, + 'y': 0, + 'z': null + }, { + 'x_as_string': 1500955200000, + 'x_raw': 1500955200000, + 'x': 1500955200000, + 'y': 3, + 'z': null + }, { + 'x_as_string': 1500966000000, + 'x_raw': 1500966000000, + 'x': 1500966000000, + 'y': 5, + 'z': null + }, { + 'x_as_string': 1500976800000, + 'x_raw': 1500976800000, + 'x': 1500976800000, + 'y': 1, + 'z': null + }, { + 'x_as_string': 1500987600000, + 'x_raw': 1500987600000, + 'x': 1500987600000, + 'y': 2, + 'z': null + }, { + 'x_as_string': 1500998400000, + 'x_raw': 1500998400000, + 'x': 1500998400000, + 'y': 1, + 'z': null + }, { + 'x_as_string': 1501009200000, + 'x_raw': 1501009200000, + 'x': 1501009200000, + 'y': 0, + 'z': null + }, { + 'x_as_string': 1501020000000, + 'x_raw': 1501020000000, + 'x': 1501020000000, + 'y': 0, + 'z': null + }, { + 'x_as_string': 1501030800000, + 'x_raw': 1501030800000, + 'x': 1501030800000, + 'y': 0, + 'z': null + }, { + 'x_as_string': 1501041600000, + 'x_raw': 1501041600000, + 'x': 1501041600000, + 'y': 1, + 'z': null + }, { + 'x_as_string': 1501052400000, + 'x_raw': 1501052400000, + 'x': 1501052400000, + 'y': 5, + 'z': null + }, { + 'x_as_string': 1501063200000, + 'x_raw': 1501063200000, + 'x': 1501063200000, + 'y': 6, + 'z': null + }, { + 'x_as_string': 1501074000000, + 'x_raw': 1501074000000, + 'x': 1501074000000, + 'y': 0, + 'z': null + }, { + 'x_as_string': 1501084800000, + 'x_raw': 1501084800000, + 'x': 1501084800000, + 'y': 0, + 'z': null + }, { + 'x_as_string': 1501095600000, + 'x_raw': 1501095600000, + 'x': 1501095600000, + 'y': 0, + 'z': null + }, { + 'x_as_string': 1501106400000, + 'x_raw': 1501106400000, + 'x': 1501106400000, + 'y': 0, + 'z': null + }, { + 'x_as_string': 1501117200000, + 'x_raw': 1501117200000, + 'x': 1501117200000, + 'y': 0, + 'z': null + }, { + 'x_as_string': 1501128000000, + 'x_raw': 1501128000000, + 'x': 1501128000000, + 'y': 2, + 'z': null + }, { + 'x_as_string': 1501138800000, + 'x_raw': 1501138800000, + 'x': 1501138800000, + 'y': 2, + 'z': null + }] + }, { + 'aggId': '1', + 'label': '503', + 'aggs': [{ + 'id': '1', + 'label': 'Count', + 'value': 'y' + }, { + 'id': '4', + 'label': 'filters', + 'value': '200', + 'rawValue': '200' + }, { + 'id': '3', + 'label': 'response.raw: descending', + 'value': '503', + 'rawValue': '503' + }, { + 'id': '2', + 'label': '@timestamp per 2h', + 'value': 'x_as_string' + }], + 'values': [{ + 'x_as_string': 1500933600000, + 'x_raw': 1500933600000, + 'x': 1500933600000, + 'y': 0, + 'z': null + }, { + 'x_as_string': 1500944400000, + 'x_raw': 1500944400000, + 'x': 1500944400000, + 'y': 0, + 'z': null + }, { + 'x_as_string': 1500955200000, + 'x_raw': 1500955200000, + 'x': 1500955200000, + 'y': 2, + 'z': null + }, { + 'x_as_string': 1500966000000, + 'x_raw': 1500966000000, + 'x': 1500966000000, + 'y': 3, + 'z': null + }, { + 'x_as_string': 1500976800000, + 'x_raw': 1500976800000, + 'x': 1500976800000, + 'y': 6, + 'z': null + }, { + 'x_as_string': 1500987600000, + 'x_raw': 1500987600000, + 'x': 1500987600000, + 'y': 1, + 'z': null + }, { + 'x_as_string': 1500998400000, + 'x_raw': 1500998400000, + 'x': 1500998400000, + 'y': 0, + 'z': null + }, { + 'x_as_string': 1501009200000, + 'x_raw': 1501009200000, + 'x': 1501009200000, + 'y': 0, + 'z': null + }, { + 'x_as_string': 1501030800000, + 'x_raw': 1501030800000, + 'x': 1501030800000, + 'y': 0, + 'z': null + }, { + 'x_as_string': 1501041600000, + 'x_raw': 1501041600000, + 'x': 1501041600000, + 'y': 0, + 'z': null + }, { + 'x_as_string': 1501052400000, + 'x_raw': 1501052400000, + 'x': 1501052400000, + 'y': 2, + 'z': null + }, { + 'x_as_string': 1501063200000, + 'x_raw': 1501063200000, + 'x': 1501063200000, + 'y': 1, + 'z': null + }, { + 'x_as_string': 1501074000000, + 'x_raw': 1501074000000, + 'x': 1501074000000, + 'y': 1, + 'z': null + }, { + 'x_as_string': 1501084800000, + 'x_raw': 1501084800000, + 'x': 1501084800000, + 'y': 0, + 'z': null + }, { + 'x_as_string': 1501095600000, + 'x_raw': 1501095600000, + 'x': 1501095600000, + 'y': 0, + 'z': null + }, { + 'x_as_string': 1501117200000, + 'x_raw': 1501117200000, + 'x': 1501117200000, + 'y': 0, + 'z': null + }, { + 'x_as_string': 1501128000000, + 'x_raw': 1501128000000, + 'x': 1501128000000, + 'y': 0, + 'z': null + }, { + 'x_as_string': 1501138800000, + 'x_raw': 1501138800000, + 'x': 1501138800000, + 'y': 2, + 'z': null + }] + }] + }, { + 'label': 'filters', + 'series': [{ + 'aggId': '1', + 'label': '200', + 'aggs': [{ + 'id': '1', + 'label': 'Count', + 'value': 'y' + }, { + 'id': '4', + 'label': 'filters', + 'value': '404', + 'rawValue': '404' + }, { + 'id': '3', + 'label': 'response.raw: descending', + 'value': '200', + 'rawValue': '200' + }, { + 'id': '2', + 'label': '@timestamp per 2h', + 'value': 'x_as_string' + }], + 'values': [{ + 'x_as_string': 1500933600000, + 'x_raw': 1500933600000, + 'x': 1500933600000, + 'y': 0, + 'z': null + }, { + 'x_as_string': 1500944400000, + 'x_raw': 1500944400000, + 'x': 1500944400000, + 'y': 0, + 'z': null + }, { + 'x_as_string': 1500955200000, + 'x_raw': 1500955200000, + 'x': 1500955200000, + 'y': 1, + 'z': null + }, { + 'x_as_string': 1500966000000, + 'x_raw': 1500966000000, + 'x': 1500966000000, + 'y': 3, + 'z': null + }, { + 'x_as_string': 1500976800000, + 'x_raw': 1500976800000, + 'x': 1500976800000, + 'y': 1, + 'z': null + }, { + 'x_as_string': 1500987600000, + 'x_raw': 1500987600000, + 'x': 1500987600000, + 'y': 1, + 'z': null + }, { + 'x_as_string': 1500998400000, + 'x_raw': 1500998400000, + 'x': 1500998400000, + 'y': 0, + 'z': null + }, { + 'x_as_string': 1501009200000, + 'x_raw': 1501009200000, + 'x': 1501009200000, + 'y': 0, + 'z': null + }, { + 'x_as_string': 1501020000000, + 'x_raw': 1501020000000, + 'x': 1501020000000, + 'y': 0, + 'z': null + }, { + 'x_as_string': 1501030800000, + 'x_raw': 1501030800000, + 'x': 1501030800000, + 'y': 0, + 'z': null + }, { + 'x_as_string': 1501041600000, + 'x_raw': 1501041600000, + 'x': 1501041600000, + 'y': 0, + 'z': null + }, { + 'x_as_string': 1501052400000, + 'x_raw': 1501052400000, + 'x': 1501052400000, + 'y': 3, + 'z': null + }, { + 'x_as_string': 1501063200000, + 'x_raw': 1501063200000, + 'x': 1501063200000, + 'y': 3, + 'z': null + }, { + 'x_as_string': 1501074000000, + 'x_raw': 1501074000000, + 'x': 1501074000000, + 'y': 0, + 'z': null + }, { + 'x_as_string': 1501084800000, + 'x_raw': 1501084800000, + 'x': 1501084800000, + 'y': 0, + 'z': null + }, { + 'x_as_string': 1501095600000, + 'x_raw': 1501095600000, + 'x': 1501095600000, + 'y': 0, + 'z': null + }, { + 'x_as_string': 1501106400000, + 'x_raw': 1501106400000, + 'x': 1501106400000, + 'y': 0, + 'z': null + }, { + 'x_as_string': 1501117200000, + 'x_raw': 1501117200000, + 'x': 1501117200000, + 'y': 1, + 'z': null + }, { + 'x_as_string': 1501128000000, + 'x_raw': 1501128000000, + 'x': 1501128000000, + 'y': 0, + 'z': null + }, { + 'x_as_string': 1501138800000, + 'x_raw': 1501138800000, + 'x': 1501138800000, + 'y': 1, + 'z': null + }] + }, { + 'aggId': '1', + 'label': '404', + 'aggs': [{ + 'id': '1', + 'label': 'Count', + 'value': 'y' + }, { + 'id': '4', + 'label': 'filters', + 'value': '404', + 'rawValue': '404' + }, { + 'id': '3', + 'label': 'response.raw: descending', + 'value': '404', + 'rawValue': '404' + }, { + 'id': '2', + 'label': '@timestamp per 2h', + 'value': 'x_as_string' + }], + 'values': [{ + 'x_as_string': 1500933600000, + 'x_raw': 1500933600000, + 'x': 1500933600000, + 'y': 3, + 'z': null + }, { + 'x_as_string': 1500944400000, + 'x_raw': 1500944400000, + 'x': 1500944400000, + 'y': 8, + 'z': null + }, { + 'x_as_string': 1500955200000, + 'x_raw': 1500955200000, + 'x': 1500955200000, + 'y': 29, + 'z': null + }, { + 'x_as_string': 1500966000000, + 'x_raw': 1500966000000, + 'x': 1500966000000, + 'y': 83, + 'z': null + }, { + 'x_as_string': 1500976800000, + 'x_raw': 1500976800000, + 'x': 1500976800000, + 'y': 65, + 'z': null + }, { + 'x_as_string': 1500987600000, + 'x_raw': 1500987600000, + 'x': 1500987600000, + 'y': 24, + 'z': null + }, { + 'x_as_string': 1500998400000, + 'x_raw': 1500998400000, + 'x': 1500998400000, + 'y': 15, + 'z': null + }, { + 'x_as_string': 1501009200000, + 'x_raw': 1501009200000, + 'x': 1501009200000, + 'y': 3, + 'z': null + }, { + 'x_as_string': 1501020000000, + 'x_raw': 1501020000000, + 'x': 1501020000000, + 'y': 1, + 'z': null + }, { + 'x_as_string': 1501030800000, + 'x_raw': 1501030800000, + 'x': 1501030800000, + 'y': 14, + 'z': null + }, { + 'x_as_string': 1501041600000, + 'x_raw': 1501041600000, + 'x': 1501041600000, + 'y': 34, + 'z': null + }, { + 'x_as_string': 1501052400000, + 'x_raw': 1501052400000, + 'x': 1501052400000, + 'y': 66, + 'z': null + }, { + 'x_as_string': 1501063200000, + 'x_raw': 1501063200000, + 'x': 1501063200000, + 'y': 73, + 'z': null + }, { + 'x_as_string': 1501074000000, + 'x_raw': 1501074000000, + 'x': 1501074000000, + 'y': 34, + 'z': null + }, { + 'x_as_string': 1501084800000, + 'x_raw': 1501084800000, + 'x': 1501084800000, + 'y': 12, + 'z': null + }, { + 'x_as_string': 1501095600000, + 'x_raw': 1501095600000, + 'x': 1501095600000, + 'y': 1, + 'z': null + }, { + 'x_as_string': 1501106400000, + 'x_raw': 1501106400000, + 'x': 1501106400000, + 'y': 1, + 'z': null + }, { + 'x_as_string': 1501117200000, + 'x_raw': 1501117200000, + 'x': 1501117200000, + 'y': 11, + 'z': null + }, { + 'x_as_string': 1501128000000, + 'x_raw': 1501128000000, + 'x': 1501128000000, + 'y': 45, + 'z': null + }, { + 'x_as_string': 1501138800000, + 'x_raw': 1501138800000, + 'x': 1501138800000, + 'y': 42, + 'z': null + }] + }, { + 'aggId': '1', + 'label': '503', + 'aggs': [{ + 'id': '1', + 'label': 'Count', + 'value': 'y' + }, { + 'id': '4', + 'label': 'filters', + 'value': '404', + 'rawValue': '404' + }, { + 'id': '3', + 'label': 'response.raw: descending', + 'value': '503', + 'rawValue': '503' + }, { + 'id': '2', + 'label': '@timestamp per 2h', + 'value': 'x_as_string' + }], + 'values': [{ + 'x_as_string': 1500933600000, + 'x_raw': 1500933600000, + 'x': 1500933600000, + 'y': 0, + 'z': null + }, { + 'x_as_string': 1500944400000, + 'x_raw': 1500944400000, + 'x': 1500944400000, + 'y': 0, + 'z': null + }, { + 'x_as_string': 1500955200000, + 'x_raw': 1500955200000, + 'x': 1500955200000, + 'y': 0, + 'z': null + }, { + 'x_as_string': 1500966000000, + 'x_raw': 1500966000000, + 'x': 1500966000000, + 'y': 0, + 'z': null + }, { + 'x_as_string': 1500976800000, + 'x_raw': 1500976800000, + 'x': 1500976800000, + 'y': 0, + 'z': null + }, { + 'x_as_string': 1500987600000, + 'x_raw': 1500987600000, + 'x': 1500987600000, + 'y': 1, + 'z': null + }, { + 'x_as_string': 1500998400000, + 'x_raw': 1500998400000, + 'x': 1500998400000, + 'y': 0, + 'z': null + }, { + 'x_as_string': 1501009200000, + 'x_raw': 1501009200000, + 'x': 1501009200000, + 'y': 0, + 'z': null + }, { + 'x_as_string': 1501030800000, + 'x_raw': 1501030800000, + 'x': 1501030800000, + 'y': 0, + 'z': null + }, { + 'x_as_string': 1501041600000, + 'x_raw': 1501041600000, + 'x': 1501041600000, + 'y': 0, + 'z': null + }, { + 'x_as_string': 1501052400000, + 'x_raw': 1501052400000, + 'x': 1501052400000, + 'y': 0, + 'z': null + }, { + 'x_as_string': 1501063200000, + 'x_raw': 1501063200000, + 'x': 1501063200000, + 'y': 1, + 'z': null + }, { + 'x_as_string': 1501074000000, + 'x_raw': 1501074000000, + 'x': 1501074000000, + 'y': 0, + 'z': null + }, { + 'x_as_string': 1501084800000, + 'x_raw': 1501084800000, + 'x': 1501084800000, + 'y': 0, + 'z': null + }, { + 'x_as_string': 1501095600000, + 'x_raw': 1501095600000, + 'x': 1501095600000, + 'y': 0, + 'z': null + }, { + 'x_as_string': 1501117200000, + 'x_raw': 1501117200000, + 'x': 1501117200000, + 'y': 0, + 'z': null + }, { + 'x_as_string': 1501128000000, + 'x_raw': 1501128000000, + 'x': 1501128000000, + 'y': 0, + 'z': null + }, { + 'x_as_string': 1501138800000, + 'x_raw': 1501138800000, + 'x': 1501138800000, + 'y': 0, + 'z': null + }] + }] + }], + 'split': 'row', + 'hits': 11125 +}; + +export default response; diff --git a/src/fixtures/vislib/mock_data/date_histogram/_columns.js b/src/fixtures/vislib/mock_data/date_histogram/_columns.js index 60166ba592684..a84b4683c3200 100644 --- a/src/fixtures/vislib/mock_data/date_histogram/_columns.js +++ b/src/fixtures/vislib/mock_data/date_histogram/_columns.js @@ -1,7 +1,8 @@ import moment from 'moment'; export default { - 'columns': [ + 'split': 'columns', + 'charts': [ { 'label': '200: response', 'xAxisLabel': '@timestamp per 30 sec', diff --git a/src/fixtures/vislib/mock_data/date_histogram/_rows.js b/src/fixtures/vislib/mock_data/date_histogram/_rows.js index b9b6df6c0916a..2849ce7657057 100644 --- a/src/fixtures/vislib/mock_data/date_histogram/_rows.js +++ b/src/fixtures/vislib/mock_data/date_histogram/_rows.js @@ -1,7 +1,8 @@ import moment from 'moment'; export default { - 'rows': [ + 'split': 'rows', + 'charts': [ { 'label': '0.0-1000.0: bytes', 'xAxisLabel': '@timestamp per 30 sec', diff --git a/src/fixtures/vislib/mock_data/date_histogram/_series.js b/src/fixtures/vislib/mock_data/date_histogram/_series.js index b26c687c6c86e..cad7fcc7b4668 100644 --- a/src/fixtures/vislib/mock_data/date_histogram/_series.js +++ b/src/fixtures/vislib/mock_data/date_histogram/_series.js @@ -1,151 +1,153 @@ import moment from 'moment'; export default { - 'label': '', - 'xAxisLabel': '@timestamp per 30 sec', - 'ordered': { - 'date': true, - 'min': 1411761457636, - 'max': 1411762357636, - 'interval': 30000 - }, - 'yAxisLabel': 'Count of documents', - 'series': [ - { - 'label': 'Count', - 'values': [ - { - 'x': 1411761450000, - 'y': 41 - }, - { - 'x': 1411761480000, - 'y': 18 - }, - { - 'x': 1411761510000, - 'y': 22 - }, - { - 'x': 1411761540000, - 'y': 17 - }, - { - 'x': 1411761570000, - 'y': 17 - }, - { - 'x': 1411761600000, - 'y': 21 - }, - { - 'x': 1411761630000, - 'y': 16 - }, - { - 'x': 1411761660000, - 'y': 17 - }, - { - 'x': 1411761690000, - 'y': 15 - }, - { - 'x': 1411761720000, - 'y': 19 - }, - { - 'x': 1411761750000, - 'y': 11 - }, - { - 'x': 1411761780000, - 'y': 13 - }, - { - 'x': 1411761810000, - 'y': 24 - }, - { - 'x': 1411761840000, - 'y': 20 - }, - { - 'x': 1411761870000, - 'y': 20 - }, - { - 'x': 1411761900000, - 'y': 21 - }, - { - 'x': 1411761930000, - 'y': 17 - }, - { - 'x': 1411761960000, - 'y': 20 - }, - { - 'x': 1411761990000, - 'y': 13 - }, - { - 'x': 1411762020000, - 'y': 14 - }, - { - 'x': 1411762050000, - 'y': 25 - }, - { - 'x': 1411762080000, - 'y': 17 - }, - { - 'x': 1411762110000, - 'y': 14 - }, - { - 'x': 1411762140000, - 'y': 22 - }, - { - 'x': 1411762170000, - 'y': 14 - }, - { - 'x': 1411762200000, - 'y': 19 - }, - { - 'x': 1411762230000, - 'y': 22 - }, - { - 'x': 1411762260000, - 'y': 17 - }, - { - 'x': 1411762290000, - 'y': 8 - }, - { - 'x': 1411762320000, - 'y': 15 - }, - { - 'x': 1411762350000, - 'y': 4 - } - ] + 'charts': [{ + 'label': '', + 'xAxisLabel': '@timestamp per 30 sec', + 'ordered': { + 'date': true, + 'min': 1411761457636, + 'max': 1411762357636, + 'interval': 30000 + }, + 'yAxisLabel': 'Count of documents', + 'series': [ + { + 'label': 'Count', + 'values': [ + { + 'x': 1411761450000, + 'y': 41 + }, + { + 'x': 1411761480000, + 'y': 18 + }, + { + 'x': 1411761510000, + 'y': 22 + }, + { + 'x': 1411761540000, + 'y': 17 + }, + { + 'x': 1411761570000, + 'y': 17 + }, + { + 'x': 1411761600000, + 'y': 21 + }, + { + 'x': 1411761630000, + 'y': 16 + }, + { + 'x': 1411761660000, + 'y': 17 + }, + { + 'x': 1411761690000, + 'y': 15 + }, + { + 'x': 1411761720000, + 'y': 19 + }, + { + 'x': 1411761750000, + 'y': 11 + }, + { + 'x': 1411761780000, + 'y': 13 + }, + { + 'x': 1411761810000, + 'y': 24 + }, + { + 'x': 1411761840000, + 'y': 20 + }, + { + 'x': 1411761870000, + 'y': 20 + }, + { + 'x': 1411761900000, + 'y': 21 + }, + { + 'x': 1411761930000, + 'y': 17 + }, + { + 'x': 1411761960000, + 'y': 20 + }, + { + 'x': 1411761990000, + 'y': 13 + }, + { + 'x': 1411762020000, + 'y': 14 + }, + { + 'x': 1411762050000, + 'y': 25 + }, + { + 'x': 1411762080000, + 'y': 17 + }, + { + 'x': 1411762110000, + 'y': 14 + }, + { + 'x': 1411762140000, + 'y': 22 + }, + { + 'x': 1411762170000, + 'y': 14 + }, + { + 'x': 1411762200000, + 'y': 19 + }, + { + 'x': 1411762230000, + 'y': 22 + }, + { + 'x': 1411762260000, + 'y': 17 + }, + { + 'x': 1411762290000, + 'y': 8 + }, + { + 'x': 1411762320000, + 'y': 15 + }, + { + 'x': 1411762350000, + 'y': 4 + } + ] + } + ], + 'xAxisFormatter': function (thing) { + return moment(thing); + }, + 'tooltipFormatter': function (d) { + return d; } - ], - 'hits': 533, - 'xAxisFormatter': function (thing) { - return moment(thing); - }, - 'tooltipFormatter': function (d) { - return d; - } + }], + 'hits': 533 }; diff --git a/src/fixtures/vislib/mock_data/date_histogram/_series_neg.js b/src/fixtures/vislib/mock_data/date_histogram/_series_neg.js index 15d08b1b0ac7f..348fecfe05fe8 100644 --- a/src/fixtures/vislib/mock_data/date_histogram/_series_neg.js +++ b/src/fixtures/vislib/mock_data/date_histogram/_series_neg.js @@ -1,151 +1,153 @@ import moment from 'moment'; export default { - 'label': '', - 'xAxisLabel': '@timestamp per 30 sec', - 'ordered': { - 'date': true, - 'min': 1411761457636, - 'max': 1411762357636, - 'interval': 30000 - }, - 'yAxisLabel': 'Count of documents', - 'series': [ - { - 'label': 'Count', - 'values': [ - { - 'x': 1411761450000, - 'y': -41 - }, - { - 'x': 1411761480000, - 'y': -18 - }, - { - 'x': 1411761510000, - 'y': -22 - }, - { - 'x': 1411761540000, - 'y': -17 - }, - { - 'x': 1411761570000, - 'y': -17 - }, - { - 'x': 1411761600000, - 'y': -21 - }, - { - 'x': 1411761630000, - 'y': -16 - }, - { - 'x': 1411761660000, - 'y': -17 - }, - { - 'x': 1411761690000, - 'y': -15 - }, - { - 'x': 1411761720000, - 'y': -19 - }, - { - 'x': 1411761750000, - 'y': -11 - }, - { - 'x': 1411761780000, - 'y': -13 - }, - { - 'x': 1411761810000, - 'y': -24 - }, - { - 'x': 1411761840000, - 'y': -20 - }, - { - 'x': 1411761870000, - 'y': -20 - }, - { - 'x': 1411761900000, - 'y': -21 - }, - { - 'x': 1411761930000, - 'y': -17 - }, - { - 'x': 1411761960000, - 'y': -20 - }, - { - 'x': 1411761990000, - 'y': -13 - }, - { - 'x': 1411762020000, - 'y': -14 - }, - { - 'x': 1411762050000, - 'y': -25 - }, - { - 'x': 1411762080000, - 'y': -17 - }, - { - 'x': 1411762110000, - 'y': -14 - }, - { - 'x': 1411762140000, - 'y': -22 - }, - { - 'x': 1411762170000, - 'y': -14 - }, - { - 'x': 1411762200000, - 'y': -19 - }, - { - 'x': 1411762230000, - 'y': -22 - }, - { - 'x': 1411762260000, - 'y': -17 - }, - { - 'x': 1411762290000, - 'y': -8 - }, - { - 'x': 1411762320000, - 'y': -15 - }, - { - 'x': 1411762350000, - 'y': -4 - } - ] + 'charts': [{ + 'label': '', + 'xAxisLabel': '@timestamp per 30 sec', + 'ordered': { + 'date': true, + 'min': 1411761457636, + 'max': 1411762357636, + 'interval': 30000 + }, + 'yAxisLabel': 'Count of documents', + 'series': [ + { + 'label': 'Count', + 'values': [ + { + 'x': 1411761450000, + 'y': -41 + }, + { + 'x': 1411761480000, + 'y': -18 + }, + { + 'x': 1411761510000, + 'y': -22 + }, + { + 'x': 1411761540000, + 'y': -17 + }, + { + 'x': 1411761570000, + 'y': -17 + }, + { + 'x': 1411761600000, + 'y': -21 + }, + { + 'x': 1411761630000, + 'y': -16 + }, + { + 'x': 1411761660000, + 'y': -17 + }, + { + 'x': 1411761690000, + 'y': -15 + }, + { + 'x': 1411761720000, + 'y': -19 + }, + { + 'x': 1411761750000, + 'y': -11 + }, + { + 'x': 1411761780000, + 'y': -13 + }, + { + 'x': 1411761810000, + 'y': -24 + }, + { + 'x': 1411761840000, + 'y': -20 + }, + { + 'x': 1411761870000, + 'y': -20 + }, + { + 'x': 1411761900000, + 'y': -21 + }, + { + 'x': 1411761930000, + 'y': -17 + }, + { + 'x': 1411761960000, + 'y': -20 + }, + { + 'x': 1411761990000, + 'y': -13 + }, + { + 'x': 1411762020000, + 'y': -14 + }, + { + 'x': 1411762050000, + 'y': -25 + }, + { + 'x': 1411762080000, + 'y': -17 + }, + { + 'x': 1411762110000, + 'y': -14 + }, + { + 'x': 1411762140000, + 'y': -22 + }, + { + 'x': 1411762170000, + 'y': -14 + }, + { + 'x': 1411762200000, + 'y': -19 + }, + { + 'x': 1411762230000, + 'y': -22 + }, + { + 'x': 1411762260000, + 'y': -17 + }, + { + 'x': 1411762290000, + 'y': -8 + }, + { + 'x': 1411762320000, + 'y': -15 + }, + { + 'x': 1411762350000, + 'y': -4 + } + ] + } + ], + 'xAxisFormatter': function (thing) { + return moment(thing); + }, + 'tooltipFormatter': function (d) { + return d; } - ], - 'hits': 533, - 'xAxisFormatter': function (thing) { - return moment(thing); - }, - 'tooltipFormatter': function (d) { - return d; - } + }], + 'hits': 533 }; diff --git a/src/fixtures/vislib/mock_data/date_histogram/_series_pos_neg.js b/src/fixtures/vislib/mock_data/date_histogram/_series_pos_neg.js index f85bb2b042d6f..0c03928fa92f8 100644 --- a/src/fixtures/vislib/mock_data/date_histogram/_series_pos_neg.js +++ b/src/fixtures/vislib/mock_data/date_histogram/_series_pos_neg.js @@ -1,151 +1,153 @@ import moment from 'moment'; export default { - 'label': '', - 'xAxisLabel': '@timestamp per 30 sec', - 'ordered': { - 'date': true, - 'min': 1411761457636, - 'max': 1411762357636, - 'interval': 30000 - }, - 'yAxisLabel': 'Count of documents', - 'series': [ - { - 'label': 'Count', - 'values': [ - { - 'x': 1411761450000, - 'y': 41 - }, - { - 'x': 1411761480000, - 'y': 18 - }, - { - 'x': 1411761510000, - 'y': -22 - }, - { - 'x': 1411761540000, - 'y': -17 - }, - { - 'x': 1411761570000, - 'y': -17 - }, - { - 'x': 1411761600000, - 'y': -21 - }, - { - 'x': 1411761630000, - 'y': -16 - }, - { - 'x': 1411761660000, - 'y': 17 - }, - { - 'x': 1411761690000, - 'y': 15 - }, - { - 'x': 1411761720000, - 'y': 19 - }, - { - 'x': 1411761750000, - 'y': 11 - }, - { - 'x': 1411761780000, - 'y': -13 - }, - { - 'x': 1411761810000, - 'y': -24 - }, - { - 'x': 1411761840000, - 'y': -20 - }, - { - 'x': 1411761870000, - 'y': -20 - }, - { - 'x': 1411761900000, - 'y': -21 - }, - { - 'x': 1411761930000, - 'y': 17 - }, - { - 'x': 1411761960000, - 'y': 20 - }, - { - 'x': 1411761990000, - 'y': -13 - }, - { - 'x': 1411762020000, - 'y': -14 - }, - { - 'x': 1411762050000, - 'y': 25 - }, - { - 'x': 1411762080000, - 'y': -17 - }, - { - 'x': 1411762110000, - 'y': -14 - }, - { - 'x': 1411762140000, - 'y': -22 - }, - { - 'x': 1411762170000, - 'y': -14 - }, - { - 'x': 1411762200000, - 'y': 19 - }, - { - 'x': 1411762230000, - 'y': 22 - }, - { - 'x': 1411762260000, - 'y': 17 - }, - { - 'x': 1411762290000, - 'y': 8 - }, - { - 'x': 1411762320000, - 'y': -15 - }, - { - 'x': 1411762350000, - 'y': -4 - } - ] + 'charts': [{ + 'label': '', + 'xAxisLabel': '@timestamp per 30 sec', + 'ordered': { + 'date': true, + 'min': 1411761457636, + 'max': 1411762357636, + 'interval': 30000 + }, + 'yAxisLabel': 'Count of documents', + 'series': [ + { + 'label': 'Count', + 'values': [ + { + 'x': 1411761450000, + 'y': 41 + }, + { + 'x': 1411761480000, + 'y': 18 + }, + { + 'x': 1411761510000, + 'y': -22 + }, + { + 'x': 1411761540000, + 'y': -17 + }, + { + 'x': 1411761570000, + 'y': -17 + }, + { + 'x': 1411761600000, + 'y': -21 + }, + { + 'x': 1411761630000, + 'y': -16 + }, + { + 'x': 1411761660000, + 'y': 17 + }, + { + 'x': 1411761690000, + 'y': 15 + }, + { + 'x': 1411761720000, + 'y': 19 + }, + { + 'x': 1411761750000, + 'y': 11 + }, + { + 'x': 1411761780000, + 'y': -13 + }, + { + 'x': 1411761810000, + 'y': -24 + }, + { + 'x': 1411761840000, + 'y': -20 + }, + { + 'x': 1411761870000, + 'y': -20 + }, + { + 'x': 1411761900000, + 'y': -21 + }, + { + 'x': 1411761930000, + 'y': 17 + }, + { + 'x': 1411761960000, + 'y': 20 + }, + { + 'x': 1411761990000, + 'y': -13 + }, + { + 'x': 1411762020000, + 'y': -14 + }, + { + 'x': 1411762050000, + 'y': 25 + }, + { + 'x': 1411762080000, + 'y': -17 + }, + { + 'x': 1411762110000, + 'y': -14 + }, + { + 'x': 1411762140000, + 'y': -22 + }, + { + 'x': 1411762170000, + 'y': -14 + }, + { + 'x': 1411762200000, + 'y': 19 + }, + { + 'x': 1411762230000, + 'y': 22 + }, + { + 'x': 1411762260000, + 'y': 17 + }, + { + 'x': 1411762290000, + 'y': 8 + }, + { + 'x': 1411762320000, + 'y': -15 + }, + { + 'x': 1411762350000, + 'y': -4 + } + ] + } + ], + 'xAxisFormatter': function (thing) { + return moment(thing); + }, + 'tooltipFormatter': function (d) { + return d; } - ], - 'hits': 533, - 'xAxisFormatter': function (thing) { - return moment(thing); - }, - 'tooltipFormatter': function (d) { - return d; - } + }], + 'hits': 533 }; diff --git a/src/fixtures/vislib/mock_data/date_histogram/_stacked_series.js b/src/fixtures/vislib/mock_data/date_histogram/_stacked_series.js index 8c77336f997b7..50b415cab6d05 100644 --- a/src/fixtures/vislib/mock_data/date_histogram/_stacked_series.js +++ b/src/fixtures/vislib/mock_data/date_histogram/_stacked_series.js @@ -1,1483 +1,1485 @@ import moment from 'moment'; export default { - 'label': '', - 'xAxisLabel': '@timestamp per 10 min', - 'ordered': { - 'date': true, - 'min': 1413544140087, - 'max': 1413587340087, - 'interval': 600000 - }, - 'yAxisLabel': 'Count of documents', - 'series': [ - { - 'label': 'html', - 'values': [ - { - 'x': 1413543600000, - 'y': 140 - }, - { - 'x': 1413544200000, - 'y': 1388 - }, - { - 'x': 1413544800000, - 'y': 1308 - }, - { - 'x': 1413545400000, - 'y': 1356 - }, - { - 'x': 1413546000000, - 'y': 1314 - }, - { - 'x': 1413546600000, - 'y': 1343 - }, - { - 'x': 1413547200000, - 'y': 1353 - }, - { - 'x': 1413547800000, - 'y': 1353 - }, - { - 'x': 1413548400000, - 'y': 1334 - }, - { - 'x': 1413549000000, - 'y': 1433 - }, - { - 'x': 1413549600000, - 'y': 1331 - }, - { - 'x': 1413550200000, - 'y': 1349 - }, - { - 'x': 1413550800000, - 'y': 1323 - }, - { - 'x': 1413551400000, - 'y': 1203 - }, - { - 'x': 1413552000000, - 'y': 1231 - }, - { - 'x': 1413552600000, - 'y': 1227 - }, - { - 'x': 1413553200000, - 'y': 1187 - }, - { - 'x': 1413553800000, - 'y': 1119 - }, - { - 'x': 1413554400000, - 'y': 1159 - }, - { - 'x': 1413555000000, - 'y': 1117 - }, - { - 'x': 1413555600000, - 'y': 1152 - }, - { - 'x': 1413556200000, - 'y': 1057 - }, - { - 'x': 1413556800000, - 'y': 1009 - }, - { - 'x': 1413557400000, - 'y': 979 - }, - { - 'x': 1413558000000, - 'y': 975 - }, - { - 'x': 1413558600000, - 'y': 848 - }, - { - 'x': 1413559200000, - 'y': 873 - }, - { - 'x': 1413559800000, - 'y': 808 - }, - { - 'x': 1413560400000, - 'y': 784 - }, - { - 'x': 1413561000000, - 'y': 799 - }, - { - 'x': 1413561600000, - 'y': 684 - }, - { - 'x': 1413562200000, - 'y': 727 - }, - { - 'x': 1413562800000, - 'y': 621 - }, - { - 'x': 1413563400000, - 'y': 615 - }, - { - 'x': 1413564000000, - 'y': 569 - }, - { - 'x': 1413564600000, - 'y': 523 - }, - { - 'x': 1413565200000, - 'y': 474 - }, - { - 'x': 1413565800000, - 'y': 470 - }, - { - 'x': 1413566400000, - 'y': 466 - }, - { - 'x': 1413567000000, - 'y': 394 - }, - { - 'x': 1413567600000, - 'y': 404 - }, - { - 'x': 1413568200000, - 'y': 389 - }, - { - 'x': 1413568800000, - 'y': 312 - }, - { - 'x': 1413569400000, - 'y': 274 - }, - { - 'x': 1413570000000, - 'y': 285 - }, - { - 'x': 1413570600000, - 'y': 299 - }, - { - 'x': 1413571200000, - 'y': 207 - }, - { - 'x': 1413571800000, - 'y': 213 - }, - { - 'x': 1413572400000, - 'y': 119 - }, - { - 'x': 1413573600000, - 'y': 122 - }, - { - 'x': 1413574200000, - 'y': 169 - }, - { - 'x': 1413574800000, - 'y': 151 - }, - { - 'x': 1413575400000, - 'y': 152 - }, - { - 'x': 1413576000000, - 'y': 115 - }, - { - 'x': 1413576600000, - 'y': 117 - }, - { - 'x': 1413577200000, - 'y': 108 - }, - { - 'x': 1413577800000, - 'y': 100 - }, - { - 'x': 1413578400000, - 'y': 78 - }, - { - 'x': 1413579000000, - 'y': 88 - }, - { - 'x': 1413579600000, - 'y': 63 - }, - { - 'x': 1413580200000, - 'y': 58 - }, - { - 'x': 1413580800000, - 'y': 45 - }, - { - 'x': 1413581400000, - 'y': 57 - }, - { - 'x': 1413582000000, - 'y': 34 - }, - { - 'x': 1413582600000, - 'y': 41 - }, - { - 'x': 1413583200000, - 'y': 24 - }, - { - 'x': 1413583800000, - 'y': 27 - }, - { - 'x': 1413584400000, - 'y': 19 - }, - { - 'x': 1413585000000, - 'y': 24 - }, - { - 'x': 1413585600000, - 'y': 18 - }, - { - 'x': 1413586200000, - 'y': 17 - }, - { - 'x': 1413586800000, - 'y': 14 - } - ] + 'charts': [{ + 'label': '', + 'xAxisLabel': '@timestamp per 10 min', + 'ordered': { + 'date': true, + 'min': 1413544140087, + 'max': 1413587340087, + 'interval': 600000 }, - { - 'label': 'php', - 'values': [ - { - 'x': 1413543600000, - 'y': 90 - }, - { - 'x': 1413544200000, - 'y': 949 - }, - { - 'x': 1413544800000, - 'y': 1012 - }, - { - 'x': 1413545400000, - 'y': 1027 - }, - { - 'x': 1413546000000, - 'y': 1073 - }, - { - 'x': 1413546600000, - 'y': 992 - }, - { - 'x': 1413547200000, - 'y': 1005 - }, - { - 'x': 1413547800000, - 'y': 1014 - }, - { - 'x': 1413548400000, - 'y': 987 - }, - { - 'x': 1413549000000, - 'y': 982 - }, - { - 'x': 1413549600000, - 'y': 1086 - }, - { - 'x': 1413550200000, - 'y': 998 - }, - { - 'x': 1413550800000, - 'y': 935 - }, - { - 'x': 1413551400000, - 'y': 995 - }, - { - 'x': 1413552000000, - 'y': 926 - }, - { - 'x': 1413552600000, - 'y': 897 - }, - { - 'x': 1413553200000, - 'y': 873 - }, - { - 'x': 1413553800000, - 'y': 885 - }, - { - 'x': 1413554400000, - 'y': 859 - }, - { - 'x': 1413555000000, - 'y': 852 - }, - { - 'x': 1413555600000, - 'y': 779 - }, - { - 'x': 1413556200000, - 'y': 739 - }, - { - 'x': 1413556800000, - 'y': 783 - }, - { - 'x': 1413557400000, - 'y': 784 - }, - { - 'x': 1413558000000, - 'y': 687 - }, - { - 'x': 1413558600000, - 'y': 660 - }, - { - 'x': 1413559200000, - 'y': 672 - }, - { - 'x': 1413559800000, - 'y': 600 - }, - { - 'x': 1413560400000, - 'y': 659 - }, - { - 'x': 1413561000000, - 'y': 540 - }, - { - 'x': 1413561600000, - 'y': 539 - }, - { - 'x': 1413562200000, - 'y': 481 - }, - { - 'x': 1413562800000, - 'y': 498 - }, - { - 'x': 1413563400000, - 'y': 444 - }, - { - 'x': 1413564000000, - 'y': 452 - }, - { - 'x': 1413564600000, - 'y': 408 - }, - { - 'x': 1413565200000, - 'y': 358 - }, - { - 'x': 1413565800000, - 'y': 321 - }, - { - 'x': 1413566400000, - 'y': 305 - }, - { - 'x': 1413567000000, - 'y': 292 - }, - { - 'x': 1413567600000, - 'y': 289 - }, - { - 'x': 1413568200000, - 'y': 239 - }, - { - 'x': 1413568800000, - 'y': 256 - }, - { - 'x': 1413569400000, - 'y': 220 - }, - { - 'x': 1413570000000, - 'y': 205 - }, - { - 'x': 1413570600000, - 'y': 201 - }, - { - 'x': 1413571200000, - 'y': 183 - }, - { - 'x': 1413571800000, - 'y': 172 - }, - { - 'x': 1413572400000, - 'y': 73 - }, - { - 'x': 1413573600000, - 'y': 90 - }, - { - 'x': 1413574200000, - 'y': 130 - }, - { - 'x': 1413574800000, - 'y': 104 - }, - { - 'x': 1413575400000, - 'y': 108 - }, - { - 'x': 1413576000000, - 'y': 92 - }, - { - 'x': 1413576600000, - 'y': 79 - }, - { - 'x': 1413577200000, - 'y': 90 - }, - { - 'x': 1413577800000, - 'y': 72 - }, - { - 'x': 1413578400000, - 'y': 68 - }, - { - 'x': 1413579000000, - 'y': 52 - }, - { - 'x': 1413579600000, - 'y': 60 - }, - { - 'x': 1413580200000, - 'y': 51 - }, - { - 'x': 1413580800000, - 'y': 32 - }, - { - 'x': 1413581400000, - 'y': 37 - }, - { - 'x': 1413582000000, - 'y': 30 - }, - { - 'x': 1413582600000, - 'y': 29 - }, - { - 'x': 1413583200000, - 'y': 24 - }, - { - 'x': 1413583800000, - 'y': 16 - }, - { - 'x': 1413584400000, - 'y': 15 - }, - { - 'x': 1413585000000, - 'y': 15 - }, - { - 'x': 1413585600000, - 'y': 10 - }, - { - 'x': 1413586200000, - 'y': 9 - }, - { - 'x': 1413586800000, - 'y': 9 - } - ] + 'yAxisLabel': 'Count of documents', + 'series': [ + { + 'label': 'html', + 'values': [ + { + 'x': 1413543600000, + 'y': 140 + }, + { + 'x': 1413544200000, + 'y': 1388 + }, + { + 'x': 1413544800000, + 'y': 1308 + }, + { + 'x': 1413545400000, + 'y': 1356 + }, + { + 'x': 1413546000000, + 'y': 1314 + }, + { + 'x': 1413546600000, + 'y': 1343 + }, + { + 'x': 1413547200000, + 'y': 1353 + }, + { + 'x': 1413547800000, + 'y': 1353 + }, + { + 'x': 1413548400000, + 'y': 1334 + }, + { + 'x': 1413549000000, + 'y': 1433 + }, + { + 'x': 1413549600000, + 'y': 1331 + }, + { + 'x': 1413550200000, + 'y': 1349 + }, + { + 'x': 1413550800000, + 'y': 1323 + }, + { + 'x': 1413551400000, + 'y': 1203 + }, + { + 'x': 1413552000000, + 'y': 1231 + }, + { + 'x': 1413552600000, + 'y': 1227 + }, + { + 'x': 1413553200000, + 'y': 1187 + }, + { + 'x': 1413553800000, + 'y': 1119 + }, + { + 'x': 1413554400000, + 'y': 1159 + }, + { + 'x': 1413555000000, + 'y': 1117 + }, + { + 'x': 1413555600000, + 'y': 1152 + }, + { + 'x': 1413556200000, + 'y': 1057 + }, + { + 'x': 1413556800000, + 'y': 1009 + }, + { + 'x': 1413557400000, + 'y': 979 + }, + { + 'x': 1413558000000, + 'y': 975 + }, + { + 'x': 1413558600000, + 'y': 848 + }, + { + 'x': 1413559200000, + 'y': 873 + }, + { + 'x': 1413559800000, + 'y': 808 + }, + { + 'x': 1413560400000, + 'y': 784 + }, + { + 'x': 1413561000000, + 'y': 799 + }, + { + 'x': 1413561600000, + 'y': 684 + }, + { + 'x': 1413562200000, + 'y': 727 + }, + { + 'x': 1413562800000, + 'y': 621 + }, + { + 'x': 1413563400000, + 'y': 615 + }, + { + 'x': 1413564000000, + 'y': 569 + }, + { + 'x': 1413564600000, + 'y': 523 + }, + { + 'x': 1413565200000, + 'y': 474 + }, + { + 'x': 1413565800000, + 'y': 470 + }, + { + 'x': 1413566400000, + 'y': 466 + }, + { + 'x': 1413567000000, + 'y': 394 + }, + { + 'x': 1413567600000, + 'y': 404 + }, + { + 'x': 1413568200000, + 'y': 389 + }, + { + 'x': 1413568800000, + 'y': 312 + }, + { + 'x': 1413569400000, + 'y': 274 + }, + { + 'x': 1413570000000, + 'y': 285 + }, + { + 'x': 1413570600000, + 'y': 299 + }, + { + 'x': 1413571200000, + 'y': 207 + }, + { + 'x': 1413571800000, + 'y': 213 + }, + { + 'x': 1413572400000, + 'y': 119 + }, + { + 'x': 1413573600000, + 'y': 122 + }, + { + 'x': 1413574200000, + 'y': 169 + }, + { + 'x': 1413574800000, + 'y': 151 + }, + { + 'x': 1413575400000, + 'y': 152 + }, + { + 'x': 1413576000000, + 'y': 115 + }, + { + 'x': 1413576600000, + 'y': 117 + }, + { + 'x': 1413577200000, + 'y': 108 + }, + { + 'x': 1413577800000, + 'y': 100 + }, + { + 'x': 1413578400000, + 'y': 78 + }, + { + 'x': 1413579000000, + 'y': 88 + }, + { + 'x': 1413579600000, + 'y': 63 + }, + { + 'x': 1413580200000, + 'y': 58 + }, + { + 'x': 1413580800000, + 'y': 45 + }, + { + 'x': 1413581400000, + 'y': 57 + }, + { + 'x': 1413582000000, + 'y': 34 + }, + { + 'x': 1413582600000, + 'y': 41 + }, + { + 'x': 1413583200000, + 'y': 24 + }, + { + 'x': 1413583800000, + 'y': 27 + }, + { + 'x': 1413584400000, + 'y': 19 + }, + { + 'x': 1413585000000, + 'y': 24 + }, + { + 'x': 1413585600000, + 'y': 18 + }, + { + 'x': 1413586200000, + 'y': 17 + }, + { + 'x': 1413586800000, + 'y': 14 + } + ] + }, + { + 'label': 'php', + 'values': [ + { + 'x': 1413543600000, + 'y': 90 + }, + { + 'x': 1413544200000, + 'y': 949 + }, + { + 'x': 1413544800000, + 'y': 1012 + }, + { + 'x': 1413545400000, + 'y': 1027 + }, + { + 'x': 1413546000000, + 'y': 1073 + }, + { + 'x': 1413546600000, + 'y': 992 + }, + { + 'x': 1413547200000, + 'y': 1005 + }, + { + 'x': 1413547800000, + 'y': 1014 + }, + { + 'x': 1413548400000, + 'y': 987 + }, + { + 'x': 1413549000000, + 'y': 982 + }, + { + 'x': 1413549600000, + 'y': 1086 + }, + { + 'x': 1413550200000, + 'y': 998 + }, + { + 'x': 1413550800000, + 'y': 935 + }, + { + 'x': 1413551400000, + 'y': 995 + }, + { + 'x': 1413552000000, + 'y': 926 + }, + { + 'x': 1413552600000, + 'y': 897 + }, + { + 'x': 1413553200000, + 'y': 873 + }, + { + 'x': 1413553800000, + 'y': 885 + }, + { + 'x': 1413554400000, + 'y': 859 + }, + { + 'x': 1413555000000, + 'y': 852 + }, + { + 'x': 1413555600000, + 'y': 779 + }, + { + 'x': 1413556200000, + 'y': 739 + }, + { + 'x': 1413556800000, + 'y': 783 + }, + { + 'x': 1413557400000, + 'y': 784 + }, + { + 'x': 1413558000000, + 'y': 687 + }, + { + 'x': 1413558600000, + 'y': 660 + }, + { + 'x': 1413559200000, + 'y': 672 + }, + { + 'x': 1413559800000, + 'y': 600 + }, + { + 'x': 1413560400000, + 'y': 659 + }, + { + 'x': 1413561000000, + 'y': 540 + }, + { + 'x': 1413561600000, + 'y': 539 + }, + { + 'x': 1413562200000, + 'y': 481 + }, + { + 'x': 1413562800000, + 'y': 498 + }, + { + 'x': 1413563400000, + 'y': 444 + }, + { + 'x': 1413564000000, + 'y': 452 + }, + { + 'x': 1413564600000, + 'y': 408 + }, + { + 'x': 1413565200000, + 'y': 358 + }, + { + 'x': 1413565800000, + 'y': 321 + }, + { + 'x': 1413566400000, + 'y': 305 + }, + { + 'x': 1413567000000, + 'y': 292 + }, + { + 'x': 1413567600000, + 'y': 289 + }, + { + 'x': 1413568200000, + 'y': 239 + }, + { + 'x': 1413568800000, + 'y': 256 + }, + { + 'x': 1413569400000, + 'y': 220 + }, + { + 'x': 1413570000000, + 'y': 205 + }, + { + 'x': 1413570600000, + 'y': 201 + }, + { + 'x': 1413571200000, + 'y': 183 + }, + { + 'x': 1413571800000, + 'y': 172 + }, + { + 'x': 1413572400000, + 'y': 73 + }, + { + 'x': 1413573600000, + 'y': 90 + }, + { + 'x': 1413574200000, + 'y': 130 + }, + { + 'x': 1413574800000, + 'y': 104 + }, + { + 'x': 1413575400000, + 'y': 108 + }, + { + 'x': 1413576000000, + 'y': 92 + }, + { + 'x': 1413576600000, + 'y': 79 + }, + { + 'x': 1413577200000, + 'y': 90 + }, + { + 'x': 1413577800000, + 'y': 72 + }, + { + 'x': 1413578400000, + 'y': 68 + }, + { + 'x': 1413579000000, + 'y': 52 + }, + { + 'x': 1413579600000, + 'y': 60 + }, + { + 'x': 1413580200000, + 'y': 51 + }, + { + 'x': 1413580800000, + 'y': 32 + }, + { + 'x': 1413581400000, + 'y': 37 + }, + { + 'x': 1413582000000, + 'y': 30 + }, + { + 'x': 1413582600000, + 'y': 29 + }, + { + 'x': 1413583200000, + 'y': 24 + }, + { + 'x': 1413583800000, + 'y': 16 + }, + { + 'x': 1413584400000, + 'y': 15 + }, + { + 'x': 1413585000000, + 'y': 15 + }, + { + 'x': 1413585600000, + 'y': 10 + }, + { + 'x': 1413586200000, + 'y': 9 + }, + { + 'x': 1413586800000, + 'y': 9 + } + ] + }, + { + 'label': 'png', + 'values': [ + { + 'x': 1413543600000, + 'y': 44 + }, + { + 'x': 1413544200000, + 'y': 495 + }, + { + 'x': 1413544800000, + 'y': 489 + }, + { + 'x': 1413545400000, + 'y': 492 + }, + { + 'x': 1413546000000, + 'y': 556 + }, + { + 'x': 1413546600000, + 'y': 536 + }, + { + 'x': 1413547200000, + 'y': 511 + }, + { + 'x': 1413547800000, + 'y': 479 + }, + { + 'x': 1413548400000, + 'y': 544 + }, + { + 'x': 1413549000000, + 'y': 513 + }, + { + 'x': 1413549600000, + 'y': 501 + }, + { + 'x': 1413550200000, + 'y': 532 + }, + { + 'x': 1413550800000, + 'y': 440 + }, + { + 'x': 1413551400000, + 'y': 455 + }, + { + 'x': 1413552000000, + 'y': 455 + }, + { + 'x': 1413552600000, + 'y': 471 + }, + { + 'x': 1413553200000, + 'y': 428 + }, + { + 'x': 1413553800000, + 'y': 457 + }, + { + 'x': 1413554400000, + 'y': 450 + }, + { + 'x': 1413555000000, + 'y': 418 + }, + { + 'x': 1413555600000, + 'y': 398 + }, + { + 'x': 1413556200000, + 'y': 397 + }, + { + 'x': 1413556800000, + 'y': 359 + }, + { + 'x': 1413557400000, + 'y': 398 + }, + { + 'x': 1413558000000, + 'y': 339 + }, + { + 'x': 1413558600000, + 'y': 363 + }, + { + 'x': 1413559200000, + 'y': 297 + }, + { + 'x': 1413559800000, + 'y': 323 + }, + { + 'x': 1413560400000, + 'y': 302 + }, + { + 'x': 1413561000000, + 'y': 260 + }, + { + 'x': 1413561600000, + 'y': 276 + }, + { + 'x': 1413562200000, + 'y': 249 + }, + { + 'x': 1413562800000, + 'y': 248 + }, + { + 'x': 1413563400000, + 'y': 235 + }, + { + 'x': 1413564000000, + 'y': 234 + }, + { + 'x': 1413564600000, + 'y': 188 + }, + { + 'x': 1413565200000, + 'y': 192 + }, + { + 'x': 1413565800000, + 'y': 173 + }, + { + 'x': 1413566400000, + 'y': 160 + }, + { + 'x': 1413567000000, + 'y': 137 + }, + { + 'x': 1413567600000, + 'y': 158 + }, + { + 'x': 1413568200000, + 'y': 111 + }, + { + 'x': 1413568800000, + 'y': 145 + }, + { + 'x': 1413569400000, + 'y': 118 + }, + { + 'x': 1413570000000, + 'y': 104 + }, + { + 'x': 1413570600000, + 'y': 80 + }, + { + 'x': 1413571200000, + 'y': 79 + }, + { + 'x': 1413571800000, + 'y': 86 + }, + { + 'x': 1413572400000, + 'y': 47 + }, + { + 'x': 1413573600000, + 'y': 49 + }, + { + 'x': 1413574200000, + 'y': 68 + }, + { + 'x': 1413574800000, + 'y': 78 + }, + { + 'x': 1413575400000, + 'y': 77 + }, + { + 'x': 1413576000000, + 'y': 50 + }, + { + 'x': 1413576600000, + 'y': 51 + }, + { + 'x': 1413577200000, + 'y': 40 + }, + { + 'x': 1413577800000, + 'y': 42 + }, + { + 'x': 1413578400000, + 'y': 29 + }, + { + 'x': 1413579000000, + 'y': 24 + }, + { + 'x': 1413579600000, + 'y': 30 + }, + { + 'x': 1413580200000, + 'y': 18 + }, + { + 'x': 1413580800000, + 'y': 15 + }, + { + 'x': 1413581400000, + 'y': 19 + }, + { + 'x': 1413582000000, + 'y': 18 + }, + { + 'x': 1413582600000, + 'y': 13 + }, + { + 'x': 1413583200000, + 'y': 11 + }, + { + 'x': 1413583800000, + 'y': 11 + }, + { + 'x': 1413584400000, + 'y': 13 + }, + { + 'x': 1413585000000, + 'y': 9 + }, + { + 'x': 1413585600000, + 'y': 9 + }, + { + 'x': 1413586200000, + 'y': 9 + }, + { + 'x': 1413586800000, + 'y': 3 + } + ] + }, + { + 'label': 'css', + 'values': [ + { + 'x': 1413543600000, + 'y': 35 + }, + { + 'x': 1413544200000, + 'y': 360 + }, + { + 'x': 1413544800000, + 'y': 343 + }, + { + 'x': 1413545400000, + 'y': 329 + }, + { + 'x': 1413546000000, + 'y': 345 + }, + { + 'x': 1413546600000, + 'y': 336 + }, + { + 'x': 1413547200000, + 'y': 330 + }, + { + 'x': 1413547800000, + 'y': 334 + }, + { + 'x': 1413548400000, + 'y': 326 + }, + { + 'x': 1413549000000, + 'y': 351 + }, + { + 'x': 1413549600000, + 'y': 334 + }, + { + 'x': 1413550200000, + 'y': 351 + }, + { + 'x': 1413550800000, + 'y': 337 + }, + { + 'x': 1413551400000, + 'y': 306 + }, + { + 'x': 1413552000000, + 'y': 346 + }, + { + 'x': 1413552600000, + 'y': 317 + }, + { + 'x': 1413553200000, + 'y': 298 + }, + { + 'x': 1413553800000, + 'y': 288 + }, + { + 'x': 1413554400000, + 'y': 283 + }, + { + 'x': 1413555000000, + 'y': 262 + }, + { + 'x': 1413555600000, + 'y': 245 + }, + { + 'x': 1413556200000, + 'y': 259 + }, + { + 'x': 1413556800000, + 'y': 267 + }, + { + 'x': 1413557400000, + 'y': 230 + }, + { + 'x': 1413558000000, + 'y': 218 + }, + { + 'x': 1413558600000, + 'y': 241 + }, + { + 'x': 1413559200000, + 'y': 213 + }, + { + 'x': 1413559800000, + 'y': 239 + }, + { + 'x': 1413560400000, + 'y': 208 + }, + { + 'x': 1413561000000, + 'y': 187 + }, + { + 'x': 1413561600000, + 'y': 166 + }, + { + 'x': 1413562200000, + 'y': 154 + }, + { + 'x': 1413562800000, + 'y': 184 + }, + { + 'x': 1413563400000, + 'y': 148 + }, + { + 'x': 1413564000000, + 'y': 153 + }, + { + 'x': 1413564600000, + 'y': 149 + }, + { + 'x': 1413565200000, + 'y': 102 + }, + { + 'x': 1413565800000, + 'y': 110 + }, + { + 'x': 1413566400000, + 'y': 121 + }, + { + 'x': 1413567000000, + 'y': 120 + }, + { + 'x': 1413567600000, + 'y': 86 + }, + { + 'x': 1413568200000, + 'y': 96 + }, + { + 'x': 1413568800000, + 'y': 71 + }, + { + 'x': 1413569400000, + 'y': 92 + }, + { + 'x': 1413570000000, + 'y': 65 + }, + { + 'x': 1413570600000, + 'y': 54 + }, + { + 'x': 1413571200000, + 'y': 68 + }, + { + 'x': 1413571800000, + 'y': 57 + }, + { + 'x': 1413572400000, + 'y': 33 + }, + { + 'x': 1413573600000, + 'y': 47 + }, + { + 'x': 1413574200000, + 'y': 42 + }, + { + 'x': 1413574800000, + 'y': 39 + }, + { + 'x': 1413575400000, + 'y': 25 + }, + { + 'x': 1413576000000, + 'y': 31 + }, + { + 'x': 1413576600000, + 'y': 37 + }, + { + 'x': 1413577200000, + 'y': 35 + }, + { + 'x': 1413577800000, + 'y': 19 + }, + { + 'x': 1413578400000, + 'y': 15 + }, + { + 'x': 1413579000000, + 'y': 21 + }, + { + 'x': 1413579600000, + 'y': 16 + }, + { + 'x': 1413580200000, + 'y': 18 + }, + { + 'x': 1413580800000, + 'y': 10 + }, + { + 'x': 1413581400000, + 'y': 13 + }, + { + 'x': 1413582000000, + 'y': 14 + }, + { + 'x': 1413582600000, + 'y': 11 + }, + { + 'x': 1413583200000, + 'y': 4 + }, + { + 'x': 1413583800000, + 'y': 6 + }, + { + 'x': 1413584400000, + 'y': 3 + }, + { + 'x': 1413585000000, + 'y': 6 + }, + { + 'x': 1413585600000, + 'y': 6 + }, + { + 'x': 1413586200000, + 'y': 2 + }, + { + 'x': 1413586800000, + 'y': 3 + } + ] + }, + { + 'label': 'gif', + 'values': [ + { + 'x': 1413543600000, + 'y': 21 + }, + { + 'x': 1413544200000, + 'y': 191 + }, + { + 'x': 1413544800000, + 'y': 176 + }, + { + 'x': 1413545400000, + 'y': 166 + }, + { + 'x': 1413546000000, + 'y': 183 + }, + { + 'x': 1413546600000, + 'y': 170 + }, + { + 'x': 1413547200000, + 'y': 153 + }, + { + 'x': 1413547800000, + 'y': 202 + }, + { + 'x': 1413548400000, + 'y': 175 + }, + { + 'x': 1413549000000, + 'y': 161 + }, + { + 'x': 1413549600000, + 'y': 174 + }, + { + 'x': 1413550200000, + 'y': 167 + }, + { + 'x': 1413550800000, + 'y': 171 + }, + { + 'x': 1413551400000, + 'y': 176 + }, + { + 'x': 1413552000000, + 'y': 139 + }, + { + 'x': 1413552600000, + 'y': 145 + }, + { + 'x': 1413553200000, + 'y': 157 + }, + { + 'x': 1413553800000, + 'y': 148 + }, + { + 'x': 1413554400000, + 'y': 149 + }, + { + 'x': 1413555000000, + 'y': 135 + }, + { + 'x': 1413555600000, + 'y': 118 + }, + { + 'x': 1413556200000, + 'y': 142 + }, + { + 'x': 1413556800000, + 'y': 141 + }, + { + 'x': 1413557400000, + 'y': 146 + }, + { + 'x': 1413558000000, + 'y': 114 + }, + { + 'x': 1413558600000, + 'y': 115 + }, + { + 'x': 1413559200000, + 'y': 136 + }, + { + 'x': 1413559800000, + 'y': 106 + }, + { + 'x': 1413560400000, + 'y': 92 + }, + { + 'x': 1413561000000, + 'y': 97 + }, + { + 'x': 1413561600000, + 'y': 90 + }, + { + 'x': 1413562200000, + 'y': 69 + }, + { + 'x': 1413562800000, + 'y': 66 + }, + { + 'x': 1413563400000, + 'y': 93 + }, + { + 'x': 1413564000000, + 'y': 75 + }, + { + 'x': 1413564600000, + 'y': 68 + }, + { + 'x': 1413565200000, + 'y': 55 + }, + { + 'x': 1413565800000, + 'y': 73 + }, + { + 'x': 1413566400000, + 'y': 57 + }, + { + 'x': 1413567000000, + 'y': 48 + }, + { + 'x': 1413567600000, + 'y': 41 + }, + { + 'x': 1413568200000, + 'y': 39 + }, + { + 'x': 1413568800000, + 'y': 32 + }, + { + 'x': 1413569400000, + 'y': 33 + }, + { + 'x': 1413570000000, + 'y': 39 + }, + { + 'x': 1413570600000, + 'y': 35 + }, + { + 'x': 1413571200000, + 'y': 25 + }, + { + 'x': 1413571800000, + 'y': 28 + }, + { + 'x': 1413572400000, + 'y': 8 + }, + { + 'x': 1413573600000, + 'y': 13 + }, + { + 'x': 1413574200000, + 'y': 23 + }, + { + 'x': 1413574800000, + 'y': 19 + }, + { + 'x': 1413575400000, + 'y': 16 + }, + { + 'x': 1413576000000, + 'y': 22 + }, + { + 'x': 1413576600000, + 'y': 13 + }, + { + 'x': 1413577200000, + 'y': 21 + }, + { + 'x': 1413577800000, + 'y': 11 + }, + { + 'x': 1413578400000, + 'y': 12 + }, + { + 'x': 1413579000000, + 'y': 10 + }, + { + 'x': 1413579600000, + 'y': 7 + }, + { + 'x': 1413580200000, + 'y': 4 + }, + { + 'x': 1413580800000, + 'y': 5 + }, + { + 'x': 1413581400000, + 'y': 7 + }, + { + 'x': 1413582000000, + 'y': 9 + }, + { + 'x': 1413582600000, + 'y': 2 + }, + { + 'x': 1413583200000, + 'y': 2 + }, + { + 'x': 1413583800000, + 'y': 4 + }, + { + 'x': 1413584400000, + 'y': 6 + }, + { + 'x': 1413585600000, + 'y': 2 + }, + { + 'x': 1413586200000, + 'y': 4 + }, + { + 'x': 1413586800000, + 'y': 4 + } + ] + } + ], + 'xAxisFormatter': function (thing) { + return moment(thing); }, - { - 'label': 'png', - 'values': [ - { - 'x': 1413543600000, - 'y': 44 - }, - { - 'x': 1413544200000, - 'y': 495 - }, - { - 'x': 1413544800000, - 'y': 489 - }, - { - 'x': 1413545400000, - 'y': 492 - }, - { - 'x': 1413546000000, - 'y': 556 - }, - { - 'x': 1413546600000, - 'y': 536 - }, - { - 'x': 1413547200000, - 'y': 511 - }, - { - 'x': 1413547800000, - 'y': 479 - }, - { - 'x': 1413548400000, - 'y': 544 - }, - { - 'x': 1413549000000, - 'y': 513 - }, - { - 'x': 1413549600000, - 'y': 501 - }, - { - 'x': 1413550200000, - 'y': 532 - }, - { - 'x': 1413550800000, - 'y': 440 - }, - { - 'x': 1413551400000, - 'y': 455 - }, - { - 'x': 1413552000000, - 'y': 455 - }, - { - 'x': 1413552600000, - 'y': 471 - }, - { - 'x': 1413553200000, - 'y': 428 - }, - { - 'x': 1413553800000, - 'y': 457 - }, - { - 'x': 1413554400000, - 'y': 450 - }, - { - 'x': 1413555000000, - 'y': 418 - }, - { - 'x': 1413555600000, - 'y': 398 - }, - { - 'x': 1413556200000, - 'y': 397 - }, - { - 'x': 1413556800000, - 'y': 359 - }, - { - 'x': 1413557400000, - 'y': 398 - }, - { - 'x': 1413558000000, - 'y': 339 - }, - { - 'x': 1413558600000, - 'y': 363 - }, - { - 'x': 1413559200000, - 'y': 297 - }, - { - 'x': 1413559800000, - 'y': 323 - }, - { - 'x': 1413560400000, - 'y': 302 - }, - { - 'x': 1413561000000, - 'y': 260 - }, - { - 'x': 1413561600000, - 'y': 276 - }, - { - 'x': 1413562200000, - 'y': 249 - }, - { - 'x': 1413562800000, - 'y': 248 - }, - { - 'x': 1413563400000, - 'y': 235 - }, - { - 'x': 1413564000000, - 'y': 234 - }, - { - 'x': 1413564600000, - 'y': 188 - }, - { - 'x': 1413565200000, - 'y': 192 - }, - { - 'x': 1413565800000, - 'y': 173 - }, - { - 'x': 1413566400000, - 'y': 160 - }, - { - 'x': 1413567000000, - 'y': 137 - }, - { - 'x': 1413567600000, - 'y': 158 - }, - { - 'x': 1413568200000, - 'y': 111 - }, - { - 'x': 1413568800000, - 'y': 145 - }, - { - 'x': 1413569400000, - 'y': 118 - }, - { - 'x': 1413570000000, - 'y': 104 - }, - { - 'x': 1413570600000, - 'y': 80 - }, - { - 'x': 1413571200000, - 'y': 79 - }, - { - 'x': 1413571800000, - 'y': 86 - }, - { - 'x': 1413572400000, - 'y': 47 - }, - { - 'x': 1413573600000, - 'y': 49 - }, - { - 'x': 1413574200000, - 'y': 68 - }, - { - 'x': 1413574800000, - 'y': 78 - }, - { - 'x': 1413575400000, - 'y': 77 - }, - { - 'x': 1413576000000, - 'y': 50 - }, - { - 'x': 1413576600000, - 'y': 51 - }, - { - 'x': 1413577200000, - 'y': 40 - }, - { - 'x': 1413577800000, - 'y': 42 - }, - { - 'x': 1413578400000, - 'y': 29 - }, - { - 'x': 1413579000000, - 'y': 24 - }, - { - 'x': 1413579600000, - 'y': 30 - }, - { - 'x': 1413580200000, - 'y': 18 - }, - { - 'x': 1413580800000, - 'y': 15 - }, - { - 'x': 1413581400000, - 'y': 19 - }, - { - 'x': 1413582000000, - 'y': 18 - }, - { - 'x': 1413582600000, - 'y': 13 - }, - { - 'x': 1413583200000, - 'y': 11 - }, - { - 'x': 1413583800000, - 'y': 11 - }, - { - 'x': 1413584400000, - 'y': 13 - }, - { - 'x': 1413585000000, - 'y': 9 - }, - { - 'x': 1413585600000, - 'y': 9 - }, - { - 'x': 1413586200000, - 'y': 9 - }, - { - 'x': 1413586800000, - 'y': 3 - } - ] - }, - { - 'label': 'css', - 'values': [ - { - 'x': 1413543600000, - 'y': 35 - }, - { - 'x': 1413544200000, - 'y': 360 - }, - { - 'x': 1413544800000, - 'y': 343 - }, - { - 'x': 1413545400000, - 'y': 329 - }, - { - 'x': 1413546000000, - 'y': 345 - }, - { - 'x': 1413546600000, - 'y': 336 - }, - { - 'x': 1413547200000, - 'y': 330 - }, - { - 'x': 1413547800000, - 'y': 334 - }, - { - 'x': 1413548400000, - 'y': 326 - }, - { - 'x': 1413549000000, - 'y': 351 - }, - { - 'x': 1413549600000, - 'y': 334 - }, - { - 'x': 1413550200000, - 'y': 351 - }, - { - 'x': 1413550800000, - 'y': 337 - }, - { - 'x': 1413551400000, - 'y': 306 - }, - { - 'x': 1413552000000, - 'y': 346 - }, - { - 'x': 1413552600000, - 'y': 317 - }, - { - 'x': 1413553200000, - 'y': 298 - }, - { - 'x': 1413553800000, - 'y': 288 - }, - { - 'x': 1413554400000, - 'y': 283 - }, - { - 'x': 1413555000000, - 'y': 262 - }, - { - 'x': 1413555600000, - 'y': 245 - }, - { - 'x': 1413556200000, - 'y': 259 - }, - { - 'x': 1413556800000, - 'y': 267 - }, - { - 'x': 1413557400000, - 'y': 230 - }, - { - 'x': 1413558000000, - 'y': 218 - }, - { - 'x': 1413558600000, - 'y': 241 - }, - { - 'x': 1413559200000, - 'y': 213 - }, - { - 'x': 1413559800000, - 'y': 239 - }, - { - 'x': 1413560400000, - 'y': 208 - }, - { - 'x': 1413561000000, - 'y': 187 - }, - { - 'x': 1413561600000, - 'y': 166 - }, - { - 'x': 1413562200000, - 'y': 154 - }, - { - 'x': 1413562800000, - 'y': 184 - }, - { - 'x': 1413563400000, - 'y': 148 - }, - { - 'x': 1413564000000, - 'y': 153 - }, - { - 'x': 1413564600000, - 'y': 149 - }, - { - 'x': 1413565200000, - 'y': 102 - }, - { - 'x': 1413565800000, - 'y': 110 - }, - { - 'x': 1413566400000, - 'y': 121 - }, - { - 'x': 1413567000000, - 'y': 120 - }, - { - 'x': 1413567600000, - 'y': 86 - }, - { - 'x': 1413568200000, - 'y': 96 - }, - { - 'x': 1413568800000, - 'y': 71 - }, - { - 'x': 1413569400000, - 'y': 92 - }, - { - 'x': 1413570000000, - 'y': 65 - }, - { - 'x': 1413570600000, - 'y': 54 - }, - { - 'x': 1413571200000, - 'y': 68 - }, - { - 'x': 1413571800000, - 'y': 57 - }, - { - 'x': 1413572400000, - 'y': 33 - }, - { - 'x': 1413573600000, - 'y': 47 - }, - { - 'x': 1413574200000, - 'y': 42 - }, - { - 'x': 1413574800000, - 'y': 39 - }, - { - 'x': 1413575400000, - 'y': 25 - }, - { - 'x': 1413576000000, - 'y': 31 - }, - { - 'x': 1413576600000, - 'y': 37 - }, - { - 'x': 1413577200000, - 'y': 35 - }, - { - 'x': 1413577800000, - 'y': 19 - }, - { - 'x': 1413578400000, - 'y': 15 - }, - { - 'x': 1413579000000, - 'y': 21 - }, - { - 'x': 1413579600000, - 'y': 16 - }, - { - 'x': 1413580200000, - 'y': 18 - }, - { - 'x': 1413580800000, - 'y': 10 - }, - { - 'x': 1413581400000, - 'y': 13 - }, - { - 'x': 1413582000000, - 'y': 14 - }, - { - 'x': 1413582600000, - 'y': 11 - }, - { - 'x': 1413583200000, - 'y': 4 - }, - { - 'x': 1413583800000, - 'y': 6 - }, - { - 'x': 1413584400000, - 'y': 3 - }, - { - 'x': 1413585000000, - 'y': 6 - }, - { - 'x': 1413585600000, - 'y': 6 - }, - { - 'x': 1413586200000, - 'y': 2 - }, - { - 'x': 1413586800000, - 'y': 3 - } - ] - }, - { - 'label': 'gif', - 'values': [ - { - 'x': 1413543600000, - 'y': 21 - }, - { - 'x': 1413544200000, - 'y': 191 - }, - { - 'x': 1413544800000, - 'y': 176 - }, - { - 'x': 1413545400000, - 'y': 166 - }, - { - 'x': 1413546000000, - 'y': 183 - }, - { - 'x': 1413546600000, - 'y': 170 - }, - { - 'x': 1413547200000, - 'y': 153 - }, - { - 'x': 1413547800000, - 'y': 202 - }, - { - 'x': 1413548400000, - 'y': 175 - }, - { - 'x': 1413549000000, - 'y': 161 - }, - { - 'x': 1413549600000, - 'y': 174 - }, - { - 'x': 1413550200000, - 'y': 167 - }, - { - 'x': 1413550800000, - 'y': 171 - }, - { - 'x': 1413551400000, - 'y': 176 - }, - { - 'x': 1413552000000, - 'y': 139 - }, - { - 'x': 1413552600000, - 'y': 145 - }, - { - 'x': 1413553200000, - 'y': 157 - }, - { - 'x': 1413553800000, - 'y': 148 - }, - { - 'x': 1413554400000, - 'y': 149 - }, - { - 'x': 1413555000000, - 'y': 135 - }, - { - 'x': 1413555600000, - 'y': 118 - }, - { - 'x': 1413556200000, - 'y': 142 - }, - { - 'x': 1413556800000, - 'y': 141 - }, - { - 'x': 1413557400000, - 'y': 146 - }, - { - 'x': 1413558000000, - 'y': 114 - }, - { - 'x': 1413558600000, - 'y': 115 - }, - { - 'x': 1413559200000, - 'y': 136 - }, - { - 'x': 1413559800000, - 'y': 106 - }, - { - 'x': 1413560400000, - 'y': 92 - }, - { - 'x': 1413561000000, - 'y': 97 - }, - { - 'x': 1413561600000, - 'y': 90 - }, - { - 'x': 1413562200000, - 'y': 69 - }, - { - 'x': 1413562800000, - 'y': 66 - }, - { - 'x': 1413563400000, - 'y': 93 - }, - { - 'x': 1413564000000, - 'y': 75 - }, - { - 'x': 1413564600000, - 'y': 68 - }, - { - 'x': 1413565200000, - 'y': 55 - }, - { - 'x': 1413565800000, - 'y': 73 - }, - { - 'x': 1413566400000, - 'y': 57 - }, - { - 'x': 1413567000000, - 'y': 48 - }, - { - 'x': 1413567600000, - 'y': 41 - }, - { - 'x': 1413568200000, - 'y': 39 - }, - { - 'x': 1413568800000, - 'y': 32 - }, - { - 'x': 1413569400000, - 'y': 33 - }, - { - 'x': 1413570000000, - 'y': 39 - }, - { - 'x': 1413570600000, - 'y': 35 - }, - { - 'x': 1413571200000, - 'y': 25 - }, - { - 'x': 1413571800000, - 'y': 28 - }, - { - 'x': 1413572400000, - 'y': 8 - }, - { - 'x': 1413573600000, - 'y': 13 - }, - { - 'x': 1413574200000, - 'y': 23 - }, - { - 'x': 1413574800000, - 'y': 19 - }, - { - 'x': 1413575400000, - 'y': 16 - }, - { - 'x': 1413576000000, - 'y': 22 - }, - { - 'x': 1413576600000, - 'y': 13 - }, - { - 'x': 1413577200000, - 'y': 21 - }, - { - 'x': 1413577800000, - 'y': 11 - }, - { - 'x': 1413578400000, - 'y': 12 - }, - { - 'x': 1413579000000, - 'y': 10 - }, - { - 'x': 1413579600000, - 'y': 7 - }, - { - 'x': 1413580200000, - 'y': 4 - }, - { - 'x': 1413580800000, - 'y': 5 - }, - { - 'x': 1413581400000, - 'y': 7 - }, - { - 'x': 1413582000000, - 'y': 9 - }, - { - 'x': 1413582600000, - 'y': 2 - }, - { - 'x': 1413583200000, - 'y': 2 - }, - { - 'x': 1413583800000, - 'y': 4 - }, - { - 'x': 1413584400000, - 'y': 6 - }, - { - 'x': 1413585600000, - 'y': 2 - }, - { - 'x': 1413586200000, - 'y': 4 - }, - { - 'x': 1413586800000, - 'y': 4 - } - ] + 'tooltipFormatter': function (d) { + return d; } - ], - 'hits': 108970, - 'xAxisFormatter': function (thing) { - return moment(thing); - }, - 'tooltipFormatter': function (d) { - return d; - } + }], + 'hits': 108970 }; diff --git a/src/fixtures/vislib/mock_data/histogram/_columns.js b/src/fixtures/vislib/mock_data/histogram/_columns.js index 422e2b56d4c05..b23c1508db924 100644 --- a/src/fixtures/vislib/mock_data/histogram/_columns.js +++ b/src/fixtures/vislib/mock_data/histogram/_columns.js @@ -1,7 +1,8 @@ import _ from 'lodash'; export default { - 'columns': [ + 'split': 'columns', + 'charts': [ { 'label': '404: response', 'xAxisLabel': 'machine.ram', diff --git a/src/fixtures/vislib/mock_data/histogram/_rows.js b/src/fixtures/vislib/mock_data/histogram/_rows.js index 8a9a08db2c29f..43546cc886066 100644 --- a/src/fixtures/vislib/mock_data/histogram/_rows.js +++ b/src/fixtures/vislib/mock_data/histogram/_rows.js @@ -1,7 +1,8 @@ import _ from 'lodash'; export default { - 'rows': [ + 'split': 'rows', + 'charts': [ { 'label': '404: response', 'xAxisLabel': 'machine.ram', diff --git a/src/fixtures/vislib/mock_data/histogram/_series.js b/src/fixtures/vislib/mock_data/histogram/_series.js index 90995a00a11ef..9adfec11c8ba0 100644 --- a/src/fixtures/vislib/mock_data/histogram/_series.js +++ b/src/fixtures/vislib/mock_data/histogram/_series.js @@ -1,104 +1,106 @@ import _ from 'lodash'; export default { - 'label': '', - 'xAxisLabel': 'machine.ram', - 'ordered': { - 'interval': 100 - }, - 'yAxisLabel': 'Count of documents', - 'series': [ - { - 'label': 'Count', - 'values': [ - { - 'x': 3221225400, - 'y': 5 - }, - { - 'x': 4294967200, - 'y': 2 - }, - { - 'x': 5368709100, - 'y': 5 - }, - { - 'x': 6442450900, - 'y': 4 - }, - { - 'x': 7516192700, - 'y': 1 - }, - { - 'x': 9663676400, - 'y': 9 - }, - { - 'x': 10737418200, - 'y': 5 - }, - { - 'x': 11811160000, - 'y': 5 - }, - { - 'x': 12884901800, - 'y': 2 - }, - { - 'x': 13958643700, - 'y': 3 - }, - { - 'x': 15032385500, - 'y': 3 - }, - { - 'x': 16106127300, - 'y': 3 - }, - { - 'x': 17179869100, - 'y': 1 - }, - { - 'x': 18253611000, - 'y': 6 - }, - { - 'x': 19327352800, - 'y': 3 - }, - { - 'x': 20401094600, - 'y': 3 - }, - { - 'x': 21474836400, - 'y': 7 - }, - { - 'x': 32212254700, - 'y': 4 - } - ] + 'charts': [{ + 'label': '', + 'xAxisLabel': 'machine.ram', + 'ordered': { + 'interval': 100 + }, + 'yAxisLabel': 'Count of documents', + 'series': [ + { + 'label': 'Count', + 'values': [ + { + 'x': 3221225400, + 'y': 5 + }, + { + 'x': 4294967200, + 'y': 2 + }, + { + 'x': 5368709100, + 'y': 5 + }, + { + 'x': 6442450900, + 'y': 4 + }, + { + 'x': 7516192700, + 'y': 1 + }, + { + 'x': 9663676400, + 'y': 9 + }, + { + 'x': 10737418200, + 'y': 5 + }, + { + 'x': 11811160000, + 'y': 5 + }, + { + 'x': 12884901800, + 'y': 2 + }, + { + 'x': 13958643700, + 'y': 3 + }, + { + 'x': 15032385500, + 'y': 3 + }, + { + 'x': 16106127300, + 'y': 3 + }, + { + 'x': 17179869100, + 'y': 1 + }, + { + 'x': 18253611000, + 'y': 6 + }, + { + 'x': 19327352800, + 'y': 3 + }, + { + 'x': 20401094600, + 'y': 3 + }, + { + 'x': 21474836400, + 'y': 7 + }, + { + 'x': 32212254700, + 'y': 4 + } + ] + } + ], + 'xAxisFormatter': function (val) { + if (_.isObject(val)) { + return JSON.stringify(val); + } + else if (val == null) { + return ''; + } + else { + return '' + val; + } + }, + 'tooltipFormatter': function (d) { + return d; } - ], - 'hits': 71, - 'xAxisFormatter': function (val) { - if (_.isObject(val)) { - return JSON.stringify(val); - } - else if (val == null) { - return ''; - } - else { - return '' + val; - } - }, - 'tooltipFormatter': function (d) { - return d; - } + }], + 'hits': 71 }; diff --git a/src/fixtures/vislib/mock_data/pie/_histogram.js b/src/fixtures/vislib/mock_data/pie/_histogram.js new file mode 100644 index 0000000000000..2117134d75870 --- /dev/null +++ b/src/fixtures/vislib/mock_data/pie/_histogram.js @@ -0,0 +1,39 @@ + +export default { + 'charts': [{ + 'label': 'chart title', + 'children': [ + { + 'label': 0, + 'values': [{ + 'value': 378611 + }], + }, + { + 'name': 1000, + 'values': [{ + 'value': 205997 + }] + }, + { + 'name': 2000, + 'values': [{ + 'value': 397189 + }] + }, + { + 'name': 3000, + 'values': [{ + 'value': 397195 + }] + }, + { + 'name': 4000, + 'values': [{ + 'value': 398429 + }] + }, + ] + }], + 'hits': 3967374 +}; diff --git a/src/fixtures/vislib/mock_data/range/_columns.js b/src/fixtures/vislib/mock_data/range/_columns.js index d75f80d8fcec8..9abcb8dbfbaa4 100644 --- a/src/fixtures/vislib/mock_data/range/_columns.js +++ b/src/fixtures/vislib/mock_data/range/_columns.js @@ -1,7 +1,8 @@ import _ from 'lodash'; export default { - 'columns': [ + 'split': 'columns', + 'charts': [ { 'label': 'apache: _type', 'xAxisLabel': 'bytes ranges', diff --git a/src/fixtures/vislib/mock_data/range/_rows.js b/src/fixtures/vislib/mock_data/range/_rows.js index 35a938851b130..6d922158c5791 100644 --- a/src/fixtures/vislib/mock_data/range/_rows.js +++ b/src/fixtures/vislib/mock_data/range/_rows.js @@ -1,7 +1,8 @@ import _ from 'lodash'; export default { - 'rows': [ + 'split': 'rows', + 'charts': [ { 'label': 'Mozilla/5.0 (X11; Linux x86_64; rv:6.0a1) Gecko/20110421 Firefox/6.0a1: agent.raw', 'xAxisLabel': 'bytes ranges', diff --git a/src/fixtures/vislib/mock_data/range/_series.js b/src/fixtures/vislib/mock_data/range/_series.js index 34454bbb2020b..ae5e81e7c54a7 100644 --- a/src/fixtures/vislib/mock_data/range/_series.js +++ b/src/fixtures/vislib/mock_data/range/_series.js @@ -1,37 +1,39 @@ import _ from 'lodash'; export default { - 'label': '', - 'xAxisLabel': 'bytes ranges', - 'yAxisLabel': 'Count of documents', - 'series': [ - { - 'label': 'Count', - 'values': [ - { - 'x': '0.0-1000.0', - 'y': 16576 - }, - { - 'x': '1000.0-2000.0', - 'y': 9005 - } - ] + charts: [{ + 'label': '', + 'xAxisLabel': 'bytes ranges', + 'yAxisLabel': 'Count of documents', + 'series': [ + { + 'label': 'Count', + 'values': [ + { + 'x': '0.0-1000.0', + 'y': 16576 + }, + { + 'x': '1000.0-2000.0', + 'y': 9005 + } + ] + } + ], + 'xAxisFormatter': function (val) { + if (_.isObject(val)) { + return JSON.stringify(val); + } + else if (val == null) { + return ''; + } + else { + return '' + val; + } + }, + 'tooltipFormatter': function (d) { + return d; } - ], - 'hits': 171500, - 'xAxisFormatter': function (val) { - if (_.isObject(val)) { - return JSON.stringify(val); - } - else if (val == null) { - return ''; - } - else { - return '' + val; - } - }, - 'tooltipFormatter': function (d) { - return d; - } + }], + 'hits': 171500 }; diff --git a/src/fixtures/vislib/mock_data/terms/_columns.js b/src/fixtures/vislib/mock_data/terms/_columns.js index fdcaf9987351d..b2c4a127d82d0 100644 --- a/src/fixtures/vislib/mock_data/terms/_columns.js +++ b/src/fixtures/vislib/mock_data/terms/_columns.js @@ -1,7 +1,8 @@ import _ from 'lodash'; export default { - 'columns': [ + 'split': 'columns', + 'charts': [ { 'label': 'logstash: index', 'xAxisLabel': 'Top 5 extension', diff --git a/src/fixtures/vislib/mock_data/terms/_rows.js b/src/fixtures/vislib/mock_data/terms/_rows.js index 7564258ddee8a..efbc8cb899661 100644 --- a/src/fixtures/vislib/mock_data/terms/_rows.js +++ b/src/fixtures/vislib/mock_data/terms/_rows.js @@ -1,7 +1,8 @@ import _ from 'lodash'; export default { - 'rows': [ + 'split': 'rows', + 'charts': [ { 'label': '0.0-1000.0: bytes', 'xAxisLabel': 'Top 5 extension', diff --git a/src/fixtures/vislib/mock_data/terms/_series.js b/src/fixtures/vislib/mock_data/terms/_series.js index 90db8af86fa57..d41ce760d7c2b 100644 --- a/src/fixtures/vislib/mock_data/terms/_series.js +++ b/src/fixtures/vislib/mock_data/terms/_series.js @@ -1,49 +1,51 @@ import _ from 'lodash'; export default { - 'label': '', - 'xAxisLabel': 'Top 5 extension', - 'yAxisLabel': 'Count of documents', - 'series': [ - { - 'label': 'Count', - 'values': [ - { - 'x': 'jpg', - 'y': 110710 - }, - { - 'x': 'css', - 'y': 27389 - }, - { - 'x': 'png', - 'y': 16661 - }, - { - 'x': 'gif', - 'y': 11269 - }, - { - 'x': 'php', - 'y': 5447 - } - ] + charts: [{ + 'label': '', + 'xAxisLabel': 'Top 5 extension', + 'yAxisLabel': 'Count of documents', + 'series': [ + { + 'label': 'Count', + 'values': [ + { + 'x': 'jpg', + 'y': 110710 + }, + { + 'x': 'css', + 'y': 27389 + }, + { + 'x': 'png', + 'y': 16661 + }, + { + 'x': 'gif', + 'y': 11269 + }, + { + 'x': 'php', + 'y': 5447 + } + ] + } + ], + 'xAxisFormatter': function (val) { + if (_.isObject(val)) { + return JSON.stringify(val); + } + else if (val == null) { + return ''; + } + else { + return '' + val; + } + }, + 'tooltipFormatter': function (d) { + return d; } - ], - 'hits': 171476, - 'xAxisFormatter': function (val) { - if (_.isObject(val)) { - return JSON.stringify(val); - } - else if (val == null) { - return ''; - } - else { - return '' + val; - } - }, - 'tooltipFormatter': function (d) { - return d; - } + }], + 'hits': 171476 }; diff --git a/src/fixtures/vislib/mock_data/terms/_seriesMultiple.js b/src/fixtures/vislib/mock_data/terms/_seriesMultiple.js index d2b2864760346..5a69d7eeecbd3 100644 --- a/src/fixtures/vislib/mock_data/terms/_seriesMultiple.js +++ b/src/fixtures/vislib/mock_data/terms/_seriesMultiple.js @@ -1,71 +1,73 @@ import _ from 'lodash'; export default { - 'yAxisLabel': 'Count', - 'zAxisLabel': 'machine.os.raw: Descending', - 'yScale': null, - 'series': [{ - 'label': 'ios', - 'aggLabel': 'Count', - 'aggId': '1', - 'values': [{ - 'x': '_all', - 'y': 2820, - 'series': 'ios' - }] - }, { - 'label': 'win 7', - 'aggLabel': 'Count', - 'aggId': '1', - 'values': [{ - 'x': '_all', - 'y': 2319, - 'series': 'win 7' - }] - }, { - 'label': 'win 8', - 'aggLabel': 'Count', - 'aggId': '1', - 'values': [{ - 'x': '_all', - 'y': 1835, - 'series': 'win 8' - }] - }, { - 'label': 'win xp', - 'aggLabel': 'Count', - 'aggId': '1', - 'values': [{ - 'x': '_all', - 'y': 734, - 'series': 'win xp' - }] - }, { - 'label': 'osx', - 'aggLabel': 'Count', - 'aggId': '1', - 'values': [{ - 'x': '_all', - 'y': 1352, - 'series': 'osx' - }] - }], - 'hits': 14005, - 'xAxisFormatter': function (val) { - if (_.isObject(val)) { - return JSON.stringify(val); - } - else if (val == null) { - return ''; + charts: [{ + 'yAxisLabel': 'Count', + 'zAxisLabel': 'machine.os.raw: Descending', + 'yScale': null, + 'series': [{ + 'label': 'ios', + 'aggLabel': 'Count', + 'aggId': '1', + 'values': [{ + 'x': '_all', + 'y': 2820, + 'series': 'ios' + }] + }, { + 'label': 'win 7', + 'aggLabel': 'Count', + 'aggId': '1', + 'values': [{ + 'x': '_all', + 'y': 2319, + 'series': 'win 7' + }] + }, { + 'label': 'win 8', + 'aggLabel': 'Count', + 'aggId': '1', + 'values': [{ + 'x': '_all', + 'y': 1835, + 'series': 'win 8' + }] + }, { + 'label': 'win xp', + 'aggLabel': 'Count', + 'aggId': '1', + 'values': [{ + 'x': '_all', + 'y': 734, + 'series': 'win xp' + }] + }, { + 'label': 'osx', + 'aggLabel': 'Count', + 'aggId': '1', + 'values': [{ + 'x': '_all', + 'y': 1352, + 'series': 'osx' + }] + }], + 'xAxisFormatter': function (val) { + if (_.isObject(val)) { + return JSON.stringify(val); + } + else if (val == null) { + return ''; + } + else { + return '' + val; + } + }, + 'yAxisFormatter': function (val) { + return val; + }, + 'tooltipFormatter': function (d) { + return d; } - else { - return '' + val; - } - }, - 'yAxisFormatter': function (val) { - return val; - }, - 'tooltipFormatter': function (d) { - return d; - } + }], + 'hits': 14005 }; diff --git a/src/ui/public/vis/components/tooltip/formatter.js b/src/ui/public/vis/components/tooltip/formatter.js new file mode 100644 index 0000000000000..dfac32857020b --- /dev/null +++ b/src/ui/public/vis/components/tooltip/formatter.js @@ -0,0 +1,23 @@ +const tooltipFormatter = (event) => { + const getValue = (agg) => { + if (agg.value === 'y') { + return agg.formatter ? agg.formatter(event.point.y || event.point) : event.point.y || event.point; + } else if (agg.value === 'x') { + return agg.formatter ? agg.formatter(event.point.x) : event.point.x; + } else if (agg.value === 'x_as_string') { + return agg.formatter ? agg.formatter(event.point.x_as_string) : event.point.x_as_string; + } else if (agg.value === 'val') { + return event.point.val; + } else { + return agg.value; + } + }; + if (!event.aggs) return; + const aggs = event.aggs.map(agg => { + const value = getValue(agg); + return `