2015-01-23 18:54:40 +01:00
[[visualize]]
2016-10-25 03:41:32 +02:00
= Visualize
2015-02-10 04:18:12 +01:00
2016-10-25 03:41:32 +02:00
[partintro]
--
2016-06-30 23:32:21 +02:00
You can use the _Visualize_ page to design data visualizations. You can save these visualizations, use them
individually, or combine visualizations into a _dashboard_. A visualization can be based on one of the following
2015-02-10 04:18:12 +01:00
data source types:
* A new interactive search
* A saved search
* An existing saved visualization
2016-10-25 03:41:32 +02:00
Visualizations are based on the {es-ref}search-aggregations.html[aggregation] feature of Elasticsearch.
--
2015-02-10 04:18:12 +01:00
2015-02-13 21:56:02 +01:00
[[createvis]]
2016-10-25 03:41:32 +02:00
== Creating a New Visualization
2015-02-10 04:18:12 +01:00
2016-04-02 20:36:04 +02:00
Click on the *Visualize* image:images/visualize-icon.png[chart icon] tab in the left-hand navigation bar. If you are
already creating a visualization, you can click the *New* button in the toolbar. To set up your visualization, follow
these steps:
2015-02-10 04:18:12 +01:00
[float]
[[newvis01]]
2016-10-25 03:41:32 +02:00
=== Step 1: Choose the Visualization Type
2015-02-10 04:18:12 +01:00
2015-03-09 06:30:42 +01:00
Choose a visualization type when you start the New Visualization wizard:
2015-02-10 04:18:12 +01:00
2015-03-09 06:30:42 +01:00
[horizontal]
2015-04-01 23:39:33 +02:00
<<area-chart,Area chart>>:: Use area charts to visualize the total contribution of several different series.
2016-06-30 23:32:21 +02:00
<<data-table,Data table>>:: Use data tables to display the raw data of a composed aggregation. You can display the data
2015-03-09 06:30:42 +01:00
table for several other visualizations by clicking at the bottom of the visualization.
2015-04-01 23:39:33 +02:00
<<line-chart,Line chart>>:: Use line charts to compare different series.
2016-06-30 23:32:21 +02:00
<<markdown-widget,Markdown widget>>:: Use the Markdown widget to display free-form information or instructions about your
2015-03-09 06:30:42 +01:00
dashboard.
2015-04-01 23:39:33 +02:00
<<metric-chart,Metric>>:: Use the metric visualization to display a single number on your dashboard.
<<pie-chart,Pie chart>>:: Use pie charts to display each source's contribution to a total.
2015-03-09 06:30:42 +01:00
<<tilemap,Tile map>>:: Use tile maps to associate the results of an aggregation with geographic points.
2015-04-01 23:39:33 +02:00
<<vertical-bar-chart,Vertical bar chart>>:: Use vertical bar charts as a general-purpose chart.
2015-02-10 04:18:12 +01:00
2016-06-30 23:32:21 +02:00
You can also load a saved visualization that you created earlier. The saved visualization selector includes a text
field to filter by visualization name and a link to the Object Editor, accessible through *Settings > Objects*, to
2016-04-02 20:36:04 +02:00
manage your saved visualizations.
2015-02-10 04:18:12 +01:00
2016-06-30 23:32:21 +02:00
If your new visualization is a Markdown widget, selecting that type takes you to a text entry field where you enter the
text to display in the widget. For all other types of visualization, selecting the type takes you to data source
2015-02-10 04:18:12 +01:00
selection.
[float]
[[newvis02]]
2016-10-25 03:41:32 +02:00
=== Step 2: Choose a Data Source
2015-02-10 04:18:12 +01:00
2015-02-13 05:10:47 +01:00
You can choose a new or saved search to serve as the data source for your visualization. Searches are associated with
2016-06-30 23:32:21 +02:00
an index or a set of indexes. When you select _new search_ on a system with multiple indices configured, select an
index pattern from the drop-down to bring up the visualization editor.
2015-02-10 04:18:12 +01:00
When you create a visualization from a saved search and save the visualization, the search is tied to the visualization.
When you make changes to the search that is linked to the visualization, the visualization updates automatically.
[float]
[[visualization-editor]]
2016-10-25 03:41:32 +02:00
=== Step 3: The Visualization Editor
2015-02-10 04:18:12 +01:00
2016-06-30 23:32:21 +02:00
The visualization editor enables you to configure and edit visualizations. The visualization editor has the following
2015-02-10 04:18:12 +01:00
main elements:
2015-02-13 05:10:47 +01:00
1. <<toolbar-panel,Toolbar>>
2015-02-10 04:18:12 +01:00
2. <<aggregation-builder,Aggregation Builder>>
3. <<preview-canvas,Preview Canvas>>
2015-02-10 04:18:12 +01:00
image:images/VizEditor.jpg[]
2015-02-13 05:10:47 +01:00
2015-05-21 08:13:38 +02:00
[float]
[[viz-autorefresh]]
2016-10-25 03:41:32 +02:00
include::discover/autorefresh.asciidoc[]
2015-05-21 08:13:38 +02:00
2015-02-10 04:18:12 +01:00
[float]
[[toolbar-panel]]
2016-10-25 03:41:32 +02:00
==== Toolbar
2015-02-10 04:18:12 +01:00
2015-02-13 05:10:47 +01:00
The toolbar has a search field for interactive data searches, as well as controls to manage saving and loading
2016-06-30 23:32:21 +02:00
visualizations. For visualizations based on saved searches, the search bar is grayed out. To edit the search, replacing
2015-02-13 05:10:47 +01:00
the saved search with the edited version, double-click the search field.
2015-02-10 04:18:12 +01:00
2016-06-30 23:32:21 +02:00
The toolbar at the right of the search box has buttons for creating new visualizations, saving the current
visualization, loading an existing visualization, sharing or embedding the visualization, and refreshing the data for
2015-02-10 04:18:12 +01:00
the current visualization.
[float]
[[aggregation-builder]]
2016-10-25 03:41:32 +02:00
==== Aggregation Builder
2015-02-10 04:18:12 +01:00
2016-10-25 03:41:32 +02:00
Use the aggregation builder on the left of the page to configure the {es-ref}search-aggregations-metrics.html[metric] and {es-ref}search-aggregations-bucket.html[bucket] aggregations used in your
2015-02-19 01:32:37 +01:00
visualization. Buckets are analogous to SQL `GROUP BY` statements. For more information on aggregations, see the main
2016-10-25 03:41:32 +02:00
{es-ref}search-aggregations.html[Elasticsearch aggregations reference].
2015-02-10 04:18:12 +01:00
2016-06-30 23:32:21 +02:00
Bar, line, or area chart visualizations use _metrics_ for the y-axis and _buckets_ are used for the x-axis, segment bar
colors, and row/column splits. For pie charts, use the metric for the slice size and the bucket for the number of
2015-02-10 04:18:12 +01:00
slices.
2016-06-30 23:32:21 +02:00
Choose the metric aggregation for your visualization's Y axis, such as
2016-10-25 03:41:32 +02:00
{es-ref}search-aggregations-metrics-valuecount-aggregation.html[count],
{es-ref}search-aggregations-metrics-avg-aggregation.html[average],
{es-ref}search-aggregations-metrics-sum-aggregation.html[sum],
{es-ref}search-aggregations-metrics-min-aggregation.html[min],
{es-ref}search-aggregations-metrics-max-aggregation.html[max], or
{es-ref}search-aggregations-metrics-cardinality-aggregation.html[cardinality]
2016-06-30 23:32:21 +02:00
(unique count). Use bucket aggregations for the visualization's X axis, color slices, and row/column splits. Common
2015-02-10 04:18:12 +01:00
bucket aggregations include date histogram, range, terms, filters, and significant terms.
2016-06-30 23:32:21 +02:00
You can set the order in which buckets execute. In Elasticsearch, the first aggregation determines the data set
for any subsequent aggregations. The following example involves a date bar chart of Web page hits for the top 5 file
2015-02-10 04:18:12 +01:00
extensions.
To use the same extension across all hits, set this order:
1. *Color:* Terms aggregation of extensions
2. *X-Axis:* Date bar chart of `@timestamp`
Elasticsearch collects the records for the top 5 extensions, then creates a date bar chart for each extension.
To chart the top 5 extensions for each hour, use the following order:
1. *X-Axis:* Date bar chart of `@timestamp` (with 1 hour interval)
2. *Color:* Terms aggregation of extensions
2016-06-30 23:32:21 +02:00
For these requests, Elasticsearch creates a date bar chart from all the records, then groups the top five extensions
2015-02-10 04:18:12 +01:00
inside each bucket, which in this example is a one-hour interval.
NOTE: Remember, each subsequent bucket slices the data from the previous bucket.
2016-04-02 20:36:04 +02:00
To render the visualization on the _preview canvas_, click the *Apply Changes* button at the top right of the
2015-05-21 08:13:38 +02:00
Aggregation Builder.
2015-02-10 04:18:12 +01:00
2016-06-30 23:32:21 +02:00
You can learn more about aggregation and how altering the order of aggregations affects your visualizations
https://www.elastic.co/blog/kibana-aggregation-execution-order-and-you[here].
2015-11-24 17:25:14 +01:00
2015-05-22 02:50:16 +02:00
[float]
[[visualize-filters]]
2016-10-25 03:41:32 +02:00
include::discover/filter-pinning.asciidoc[]
2015-05-22 02:50:16 +02:00
2015-02-10 04:18:12 +01:00
[float]
[[preview-canvas]]
2016-10-25 03:41:32 +02:00
==== Preview Canvas
2015-02-10 04:18:12 +01:00
2016-06-30 23:32:21 +02:00
The preview canvas displays a preview of the visualization you've defined in the aggregation builder. To refresh the
2016-04-02 20:36:04 +02:00
visualization preview, clicking the *Apply Changes* image:images/apply-changes-button.png[] button on the toolbar.
2015-03-09 06:30:42 +01:00
2016-10-25 03:41:32 +02:00
include::visualize/area.asciidoc[]
2015-03-09 06:30:42 +01:00
2016-10-25 03:41:32 +02:00
include::visualize/datatable.asciidoc[]
2015-03-09 06:30:42 +01:00
2016-10-25 03:41:32 +02:00
include::visualize/line.asciidoc[]
2015-03-09 06:30:42 +01:00
2016-10-25 03:41:32 +02:00
include::visualize/markdown.asciidoc[]
2015-03-09 06:30:42 +01:00
2016-10-25 03:41:32 +02:00
include::visualize/metric.asciidoc[]
2015-03-09 06:30:42 +01:00
2016-10-25 03:41:32 +02:00
include::visualize/pie.asciidoc[]
2015-03-09 06:30:42 +01:00
2016-10-25 03:41:32 +02:00
include::visualize/tilemap.asciidoc[]
2015-03-09 06:30:42 +01:00
2016-10-25 03:41:32 +02:00
include::visualize/vertbar.asciidoc[]