-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DOCS] Canvas docs 7.9 refresh #74000
Changes from 10 commits
49c5e1d
b463e16
079d8ca
11e056b
b26712c
2c2f00a
198cbf4
fb3dcd9
b7a7fa8
4eceaa2
947dfed
7fb55fe
0eb9d92
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,91 +1,111 @@ | ||
[role="xpack"] | ||
[[add-canvas-elements]] | ||
=== Add elements | ||
[[edit-workpads]] | ||
== Edit workpads | ||
|
||
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. | ||
To create the look and feel that you want, apply format settings to the entire workpad, or individual elements. | ||
|
||
[float] | ||
[[create-canvas-element]] | ||
==== Create an element | ||
[[create-variables]] | ||
=== Create variables | ||
|
||
Choose the type of element you want to use, then connect it to your own data. | ||
When you frequently use copy and paste, create variables to easily reuse strings and patterns. For example, when you clone a large workpad and need to connect your elements to a new index, use variables to update | ||
each element instead of updating them manually. | ||
|
||
. Click *Add element*, then select the element you want to use. | ||
+ | ||
[role="screenshot"] | ||
image::images/canvas-element-select.gif[Canvas elements] | ||
. Create the variables. | ||
.. Click *Add a variable*. | ||
.. Specify the variable options, then click *Save changes*. | ||
|
||
. To familiarize yourself with the element, use the preconfigured data demo data. | ||
+ | ||
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. | ||
. Apply the variable syntax. | ||
.. Copy the variable syntax. | ||
.. Select the element you want to change, then open the expression editor. | ||
.. Paste the syntax. | ||
|
||
. To connect the element to your data, select *Data*, then select one of the following data sources: | ||
For example, to change the index pattern for a set of charts: | ||
|
||
* *{es} SQL* — Access your data in {es} using SQL syntax. For information about SQL syntax, refer to {ref}/sql-spec.html[SQL language]. | ||
Specify the variable syntax. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe this could be |
||
|
||
* *{es} documents* — Access your data in {es} without using aggregations. To use, select an index and fields, and optionally enter a query using the <<lucene-query,Lucene Query Syntax>>. Use the *{es} documents* data source when you have low volume datasets, to view raw documents, or to plot exact, non-aggregated values on a chart. | ||
[role="screenshot"] | ||
image::images/specify_variable_syntax.png[Specify the variable syntax] | ||
|
||
* *Timelion* — 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>>. | ||
Copy the variable syntax, then apply the syntax to each element you want to update in the *Expression editor*. | ||
|
||
Each element can display a different data source. Pages and workpads often contain multiple data sources. | ||
[role="screenshot"] | ||
image::images/copy_variable_syntax.png[Copy the variable syntax] | ||
|
||
[float] | ||
[[canvas-add-object]] | ||
==== Add a saved object | ||
[[apply-changes-to-the-entire-workpad]] | ||
=== Apply changes to the entire workpad | ||
|
||
Add <<managing-saved-objects,saved objects>> to your workpad, such as maps and visualizations. | ||
With stylesheets, you can change the look of the entire workpad, including fonts, colors, layout, and more. | ||
|
||
. Click *Add element > Add from Visualize Library*. | ||
To get started, enter the changes you want to make in the *Global CSS overrides* text editor, then click *Apply stylesheet*. | ||
|
||
. Select the saved object you want to add. | ||
+ | ||
[role="screenshot"] | ||
image::images/canvas-map-embed.gif[] | ||
For example, to change the background for the entire workpad, enter: | ||
|
||
[source,text] | ||
-------------------------------------------------- | ||
.canvasPage { | ||
background-color: #3990e6; | ||
} | ||
-------------------------------------------------- | ||
|
||
. To use the customization options, click the panel menu, then select one of the following options: | ||
[float] | ||
[[change-the-element-settings]] | ||
=== Change the element settings | ||
|
||
* *Edit map* — Opens <<maps,Maps>> or <<visualize,Visualize>> so that you can edit the original saved object. | ||
Element settings enable you to change the display options at the element level. For example, use the element settings to change the dimensions, style, or location of an element. | ||
|
||
* *Edit panel title* — Adds a title to the saved object. | ||
[float] | ||
[[change-the-display-options]] | ||
==== Change the display options | ||
|
||
* *Customize time range* — Exposes a time filter dedicated to the saved object. | ||
Choose the display options for your elements. The options available depend on the element you select. | ||
|
||
* *Inspect* — Allows you to drill down into the element data. | ||
To change the element display options, click *Display*, then make your changes in the editor. | ||
|
||
[float] | ||
[[canvas-add-image]] | ||
==== Add your own image | ||
To use CSS overrides: | ||
|
||
To personalize your workpad, add your own logos and graphics. | ||
. Click *+* next to *Element style*, then select *CSS*. | ||
. In the *CSS* text editor, enter the changes you want to make, then click *Apply stylesheet*. | ||
|
||
. Click *Add element > Manage assets*. | ||
For example, to center an element, enter: | ||
|
||
. On the *Manage workpad assets* window, drag and drop your images. | ||
[source,text] | ||
-------------------------------------------------- | ||
.canvasRenderEl h1 { | ||
text.align: center; | ||
} | ||
-------------------------------------------------- | ||
|
||
[float] | ||
[[clone-elements]] | ||
==== Clone elements | ||
To use an element with the same functionality and appearance in multiple places, clone the element. | ||
|
||
Select the element, then click *Edit > Clone*. | ||
|
||
. To add the image to the workpad, click the *Create image element* icon. | ||
+ | ||
[role="screenshot"] | ||
image::images/canvas-add-image.gif[] | ||
image::images/clone_element.gif[Clone elements] | ||
|
||
[float] | ||
[[move-canvas-elements]] | ||
==== Organize elements | ||
[[move-and-resize-elements]] | ||
==== Move and resize elements | ||
|
||
Move and resize your elements to meet your design needs. | ||
Canvas provides you with many options to move and resize the elements on your workpad. | ||
|
||
* To move, click and hold the element, then drag to the new location. | ||
* To move elements, click and hold the element, then drag to the new location. | ||
|
||
* To move by 1 pixel, select the element, press and hold Shift, then use your arrow keys. | ||
* To move elements by 1 pixel, select the element, press and hold Shift, then use your arrow keys. | ||
|
||
* To move by 10 pixels, select the element, then use your arrow keys. | ||
* To move elements by 10 pixels, select the element, then use your arrow keys. | ||
|
||
* To resize, click and drag the resize handles to the new dimensions. | ||
* To resize elements, click and drag the resize handles to the new dimensions. | ||
|
||
[float] | ||
[[format-canvas-elements]] | ||
==== Format elements | ||
[[edit-elements]] | ||
==== Edit elements | ||
|
||
For consistency and readability across your workpad pages, align, distribute, and reorder elements. | ||
The element editing options allow you to arrange and organize the elements on your workpad page. | ||
|
||
To align two or more elements: | ||
|
||
|
@@ -105,54 +125,6 @@ To reorder elements: | |
|
||
. Click *Edit > Order*, then select the order option. | ||
|
||
[float] | ||
[[data-display]] | ||
==== Change the element display options | ||
|
||
Each element has its own display options to fit your design needs. | ||
|
||
To choose the display options, click *Display*, then make your changes. | ||
|
||
To define the appearance of the container and border: | ||
|
||
. Next to *Element style*, click *+*, then select *Container style*. | ||
|
||
. Expand *Container style*. | ||
|
||
. Change the *Appearance* and *Border* options. | ||
|
||
To apply CSS overrides: | ||
|
||
. Next to *Element style*, click *+*, then select *CSS*. | ||
|
||
. Enter the *CSS*. | ||
+ | ||
For example, to center the Markdown element, enter: | ||
+ | ||
[source,text] | ||
-------------------------------------------------- | ||
.canvasRenderEl h1 { | ||
text.align: center; | ||
} | ||
-------------------------------------------------- | ||
|
||
. Click *Apply stylesheet*. | ||
|
||
[float] | ||
[[save-elements]] | ||
==== Save elements | ||
|
||
To use the elements across all workpads, save the elements. | ||
|
||
When you're ready to save your element, select the element, then click *Edit > Save as new element*. | ||
|
||
[role="screenshot"] | ||
image::images/canvas_save_element.png[] | ||
|
||
To save a group of elements, press and hold Shift, select the elements you want to save, then click *Edit > Save as new element*. | ||
|
||
To access your saved elements, click *Add element > My elements*. | ||
|
||
[float] | ||
[[delete-elements]] | ||
==== Delete elements | ||
|
@@ -162,6 +134,3 @@ When you no longer need an element, delete it from your workpad. | |
. Select the element you want to delete. | ||
|
||
. Click *Edit > Delete*. | ||
+ | ||
[role="screenshot"] | ||
image::images/canvas_element_options.png[] |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[role="xpack"] | ||
[[canvas-present-workpad]] | ||
=== Present your workpad | ||
== Present your workpad | ||
|
||
When you are ready to present your workpad, use and enable the presentation options. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe a little more explanation about what it means to "present your workpad." |
||
|
||
|
@@ -21,3 +21,32 @@ image::images/canvas-autoplay-interval.png[Element autoplay interval] | |
image::images/canvas-fullscreen.png[Fullscreen mode] | ||
|
||
. When you are ready to exit fullscreen mode, press the Esc (Escape) key. | ||
|
||
[float] | ||
[[zoom-in-out]] | ||
=== Use the zoom options | ||
|
||
To get a closer look at a portion of your workpad, use the zoom options. | ||
|
||
. Click *View > Zoom*. | ||
|
||
. Select the zoom option. | ||
+ | ||
[role="screenshot"] | ||
image::images/canvas-zoom-controls.png[Zoom controls] | ||
|
||
|
||
[float] | ||
[[configure-auto-refresh-interval]] | ||
=== Change the auto-refresh interval | ||
|
||
Change how often the data refreshes on your workpad. | ||
|
||
. Click *View > Auto refresh settings*. | ||
|
||
. Select the interval you want to use, or *Set a custom interval*. | ||
+ | ||
[role="screenshot"] | ||
image::images/canvas-refresh-interval.png[Element data refresh interval] | ||
+ | ||
To manually refresh the data, click image:canvas/images/canvas-refresh-data.png[]. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Poff - Here are the docs for your new feature!