Skip to content

Commit d55b3cb

Browse files
Merge branch '7.7' into backport/7.7/pr-61376
2 parents 0b1ef05 + dd3c118 commit d55b3cb

320 files changed

Lines changed: 1220 additions & 856 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 88 additions & 198 deletions
Original file line numberDiff line numberDiff line change
@@ -1,150 +1,146 @@
11
[role="xpack"]
2-
[[element-intro]]
3-
== Showcase your data with elements
2+
[[add-canvas-elements]]
3+
=== Add elements
44

5-
Canvas _elements_ are the building blocks of your workpad. With elements, you can combine images, text, and visualizations to tell a story about your data.
5+
Create a story about your data by adding elements to your workpad that include images, text, charts, and more. You can create your own elements and connect them to your data sources, add saved objects, and add your own images.
66

7-
When you add elements to your workpad, you can:
8-
9-
* <<connect-element-data,Connect the elements to your live data>>
10-
11-
* <<configure-display-options,Choose how you want the element to appear on your workpad>>
12-
13-
* <<configure-auto-refresh-interval,Change the data refresh interval>>
7+
[float]
8+
[[create-canvas-element]]
9+
==== Create an element
1410

15-
* <<organize-element,Move and arrange elements on your workpad>>
11+
Choose the type of element you want to use, then connect it to your own data.
1612

17-
* <<element-save,Save your elements>>
13+
. Click *Add element*, then select the element you want to use.
14+
+
15+
[role="screenshot"]
16+
image::images/canvas-element-select.gif[Canvas elements]
1817

19-
[float]
20-
[[add-canvas-element]]
21-
=== Add elements to your workpad
18+
. To familiarize yourself with the element, use the preconfigured data demo data.
19+
+
20+
By default, most of the elements you create use demo data until you change the data source. The demo data includes a small data set that you can use to experiment with your element.
2221

23-
Choose the elements to display on your workpad, then familiarize yourself with the element using the preconfigured demo data. By default, most elements use demo data until you change the data source. The demo data includes a small sample data set that you can use to experiment with your element.
22+
. To connect the element to your data, select *Data*, then select one of the following data sources:
2423

25-
To add a Canvas element:
24+
* *{es} SQL* &mdash; Access your data in {es} using SQL syntax. For information about SQL syntax, refer to {ref}/sql-spec.html[SQL language].
2625

27-
. Click *Add element*.
26+
* *{es} raw data* &mdash; Access your raw data in {es} without the use of aggregations. Use {es} raw data when you have low volume datasets, or to plot exact, non-aggregated values.
2827

29-
. In the *Elements* window, select the element you want to use.
30-
+
31-
[role="screenshot"]
32-
image::images/canvas-element-select.gif[Canvas elements]
28+
* *Timelion* &mdash; Access your time series data using <<timelion,Timelion>> queries. To use Timelion queries, you can enter a query using the <<lucene-query,Lucene Query Syntax>>.
3329

34-
. Play around with the default settings and see what the element can do.
30+
[float]
31+
[[canvas-add-object]]
32+
==== Add a saved object
3533

36-
To add a map:
34+
Add a <<managing-saved-objects,saved object>>, such as a map or Lens visualization, then customize it to fit your display needs.
3735

3836
. Click *Embed object*.
3937

40-
. Select the map you want to add to the workpad.
38+
. Select the object you want to add.
4139
+
4240
[role="screenshot"]
4341
image::images/canvas-map-embed.gif[]
4442

45-
NOTE: Demo data is only supported on Canvas elements. Maps do not support demo data.
43+
. To use the customization options, click the panel menu, then select one of the following options:
44+
45+
* *Edit map* &mdash; Opens <<maps,Maps>> so that you can edit the original map.
46+
47+
* *Customize panel* &mdash; Specifies the object title options.
4648

47-
Want to use a different element? You can delete the element by selecting it, clicking the *Element options* icon in the top right, then selecting *Delete*.
49+
* *Inspect* &mdash; Allows you to drill down into the element data.
50+
51+
* *Customize time range* &mdash; Exposes a time filter dedicated to the map.
4852

4953
[float]
50-
[[connect-element-data]]
51-
=== Connect the Canvas element to your data
54+
[[canvas-add-image]]
55+
==== Add your own image
5256

53-
When you have finished using the demo data, connect the Canvas element to a data source.
57+
To personalize your workpad, add your own logos and graphics.
5458

55-
NOTE: Maps do not support data sources. To change the map data, refer to <<maps, Elastic Maps>>.
59+
. Click *Manage assets*.
5660

57-
. Make sure that the element is selected, then select *Data*.
61+
. On the *Manage workpad assets* window, drag and drop your images.
5862

59-
. Click *Change your data source*.
63+
. To add the image to the workpad, click the *Create image element* icon.
64+
+
65+
[role="screenshot"]
66+
image::images/canvas-add-image.gif[]
6067

6168
[float]
62-
[[elasticsearch-sql-data-source]]
63-
==== Connect to {es} SQL
69+
[[move-canvas-elements]]
70+
==== Organize elements
71+
72+
Move and resize your elements to meet your design needs.
6473

65-
Access your data in {es} using SQL syntax. For information about SQL syntax, refer to {ref}/sql-spec.html[SQL language].
74+
* To move, click and hold the element, then drag to the new location.
6675

67-
. Click *{es} SQL*.
76+
* To move by 1 pixel, select the element, press and hold Shift, then use your arrow keys.
6877

69-
. In the *{es} SQL query* box, enter your query, then *Preview* it.
78+
* To move by 10 pixels, select the element, then use your arrow keys.
7079

71-
. If everything looks correct, *Save* it.
80+
* To resize, click and drag the resize handles to the new dimensions.
7281

7382
[float]
74-
[[elasticsearch-raw-doc-data-source]]
75-
==== Connect to {es} raw data
83+
[[format-canvas-elements]]
84+
==== Format elements
7685

77-
Access your raw data in {es} without the use of aggregations. Use {es} raw data when you have low volume datasets, or to plot exact, non-aggregated values.
86+
Align, distribute, and reorder elements for consistency and readability across your workpad pages.
7887

79-
To use targeted queries, you can enter a query using the <<lucene-query,Lucene Query Syntax>>.
88+
Access the align, distribute, and reorder options by clicking the *Element options* icon.
8089

81-
. Click *{es} raw documents*.
90+
[role="screenshot"]
91+
image::images/canvas_element_options.png[]
8292

83-
. In the *Index* field, enter the index pattern that you want to display.
93+
To align elements:
8494

85-
. From the *Fields* dropdown, select the associated fields you want to display.
95+
. Press and hold Shift, then select the elements you want to align.
8696

87-
. To sort the data, select an option from the *Sort Field* and *Sort Order* dropdowns.
97+
. Click the , then select *Group*.
8898

89-
. For more targeted queries, enter a *Query* using the Lucene query string syntax.
99+
. Click the *Element options* icon, then select *Alignment*.
90100

91-
. *Preview* the query.
101+
. Select the alignment option.
92102

93-
. If your query looks correct, *Save* it.
103+
To distribute elements:
94104

95-
[float]
96-
[[timelion-data-source]]
97-
==== Connect to Timelion
105+
. Press and hold Shift, then select the elements you want to distribute.
98106

99-
Access your time series data using <<timelion,Timelion>> queries. To use Timelion queries, you can enter a query using the <<lucene-query,Lucene Query Syntax>>.
107+
. Click the *Element options* icon, then select *Group*.
100108

101-
. Click *Timelion*.
109+
. Click the *Element options* icon, then select *Distribution*.
102110

103-
. Enter a *Query* using the Lucene query string syntax.
111+
. Select the distribution option.
104112

105-
. Enter the *Interval*, then *Preview* the query.
113+
To reorder elements:
106114

107-
. If your query looks correct, *Save* it.
115+
. Select the element you want to reorder.
108116

109-
[float]
110-
[[configure-display-options]]
111-
=== Choose the display options
117+
. Click the *Element options* icon, then select *Order*.
112118

113-
Choose how you want the elements to appear on your workpad.
119+
. Select the order option.
114120

115121
[float]
116122
[[data-display]]
117-
==== Specify how to display the data
118-
119-
When you connect your element to a data source, the element often appears as a warning. To remove the error, specify the display options.
123+
==== Change the element display options
120124

121-
. Click *Display*
125+
Each element has its own display options to fit your design needs.
122126

123-
. Change the display options for the element.
127+
To choose the display options, click *Display*, then make your changes.
124128

125-
[float]
126-
[[element-display-container]]
127-
==== Change the appearance of the element container
128-
129-
Further define the appearance of the element container and border.
129+
To define the appearance of the container and border:
130130

131131
. Next to *Element style*, click *+*, then select *Container style*.
132132

133133
. Expand *Container style*.
134134

135135
. Change the *Appearance* and *Border* options.
136136

137-
[float]
138-
[[apply-element-styles]]
139-
==== Apply a set of styles
140-
141-
To make your element look exactly the way you want, apply CSS overrides.
137+
To apply CSS overrides:
142138

143139
. Next to *Element style*, click *+*, then select *CSS*.
144140

145141
. Enter the *CSS*. For example, to center the Markdown element, enter:
146142
+
147-
[source,js]
143+
[source,text]
148144
--------------------------------------------------
149145
.canvasRenderEl h1 {
150146
text.align: center;
@@ -154,137 +150,31 @@ text.align: center;
154150
. Click *Apply stylesheet*.
155151

156152
[float]
157-
[[configure-auto-refresh-interval]]
158-
==== Change the data auto-refresh interval
159-
160-
Increase or decrease how often your Canvas element data refreshes on your workpad.
161-
162-
. In the top left corner, click the *Control settings* icon.
163-
164-
. Under *Change auto-refresh interval*, select the interval you want to use.
165-
+
166-
[role="screenshot"]
167-
image::images/canvas-refresh-interval.png[Element data refresh interval]
168-
169-
TIP: To manually refresh the data, click the *Refresh data* icon.
170-
171-
[float]
172-
[[canvas-time-range]]
173-
==== Customize map time ranges
174-
175-
Configure the maps on your workpad for a specific time range.
176-
177-
From the panel menu, select *Customize time range* to expose a time filter dedicated to the map.
178-
179-
[role="screenshot"]
180-
image::images/canvas_map-time-filter.gif[]
181-
182-
[float]
183-
[[organize-element]]
184-
=== Organize the elements on your workpad
185-
186-
Choose where you want the elements to appear on your workpad.
187-
188-
[float]
189-
[[move-canvas-elements]]
190-
==== Move elements
191-
192-
Move the element to a preferred location on your workpad. As you move the element, notice the alignment lines that appear to help you place the element exactly where you want it.
193-
194-
* Click and drag the element to your preferred location.
195-
196-
* To move the element by 1 pixel, select the element, press and hold Shift, then use your arrow keys.
197-
198-
* To move the element by 10 pixels, select the element, then use your arrow keys.
199-
200-
[float]
201-
[[resize-canvas-elements]]
202-
==== Resize elements
153+
[[save-elements]]
154+
==== Save elements
203155

204-
Make your elements bigger or smaller than the default size.
156+
To use the elements across all workpads, save the elements.
205157

206-
. Select the element.
207-
208-
. Click and drag the resize handles to the size you want.
209-
210-
[float]
211-
[[align-canvas-elements]]
212-
==== Align elements
158+
When you're ready to save your element, select the element, then click the *Save as new element* icon.
213159

214-
Align two or more elements on your workpad.
215-
216-
. Press and hold Shift, then select the elements you want to align.
217-
218-
. Click the *Element options* icon in the top right corner, then select *Align elements*.
219-
220-
. From the *Alignment* menu, select how you want to align the elements on the workpad.
221-
+
222160
[role="screenshot"]
223-
image::images/canvas-align-elements.gif[Align elements]
224-
225-
[float]
226-
[[distribute-canvas-elements]]
227-
==== Distribute elements
228-
229-
Distribute three or more elements on your workpad.
230-
231-
. Press and hold Shift, then select the elements you want to distribute.
232-
233-
. Click the *Element options* icon in the top right corner, then select *Distribute elements*.
161+
image::images/canvas_save_element.png[]
234162

235-
. From the *Distribution* menu, select how you want to distribute the elements on the workpad.
236-
+
237-
[role="screenshot"]
238-
image::images/canvas-distribute-elements.gif[Distribute elements]
239-
240-
[float]
241-
[[change-element-order]]
242-
==== Change the element order
243-
244-
Change the order of how the elements are displayed on your workpad.
245-
246-
. Select an element.
247-
248-
. In the top right corder, click the *Element options* icon.
249-
250-
. Select *Order*, then select the order that you want the element to appear.
251-
252-
[float]
253-
[[zoom-in-out]]
254-
=== Use the zoom options
255-
256-
In the upper left corner, click the *Zoom controls* icon, then select one of the options.
257-
258-
[role="screenshot"]
259-
image::images/canvas-zoom-controls.png[Zoom controls]
260-
261-
[float]
262-
[[element-save]]
263-
=== Save elements
264-
265-
After you have made changes to elements, save them so that you can reuse them across all of your workpads.
266-
267-
. Select the element that you want to save.
268-
+
269163
To save a group of elements, press and hold Shift, then select the elements you want to save.
270164

271-
. Click the *Save as new element* icon.
272-
273-
. In the *Create new element* window, enter a *Name*.
274-
275-
. Enter an optional *Description*, then click *Save*.
276-
277-
. To access the element, click *Add element*, then select *My elements*.
165+
To access your saved elements, click *Add element*, then select *My elements*.
278166

279167
[float]
280-
[[add-more-pages]]
281-
=== Add pages
168+
[[delete-elements]]
169+
==== Delete elements
282170

283-
When you have run out of room on your workpad page, add more pages.
171+
When you no longer need an element, delete it from your workpad.
284172

285-
. Click *Page 1*, then click *+*.
173+
. Select the element you want to delete.
286174

287-
. On the *Page* editor panel on the right, select the page transition from the *Transition* dropdown.
175+
. Click the *Element options* icon.
288176
+
289177
[role="screenshot"]
290-
image::images/canvas-add-pages.gif[Add pages]
178+
image::images/canvas_element_options.png[]
179+
180+
. Select *Delete*.

0 commit comments

Comments
 (0)