Skip to content

Commit 9a26af6

Browse files
KOTungsethgchaps
andauthored
1 parent ff98314 commit 9a26af6

18 files changed

+39
-29
lines changed

docs/canvas/canvas-tutorial.asciidoc

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,11 @@ Customize your data by connecting it to the Sample eCommerce orders data.
4444

4545
. Click *Add element > Chart > Metric*.
4646
+
47-
By default, the element is connected to the demo data, which enables you to experiment with the element before you connect it to your own data source.
47+
By default, the element is connected to the demo data, which enables you to experiment with the element before you connect it to your own.
4848

49-
. To connect the element to your own data source, make sure that the element is selected, click *Data > Demo data > Elasticsearch SQL*.
49+
. To connect the element to your own data, make sure the element is selected, then click *Data > Demo data > Elasticsearch SQL*.
5050

51-
.. In the *Query* field, enter:
51+
.. To select the total price field and set it to the sum_total_price field, enter the following in the *Query* field:
5252
+
5353
[source,text]
5454
--
@@ -57,13 +57,13 @@ SELECT sum(taxless_total_price) AS sum_total_price FROM "kibana_sample_data_ecom
5757

5858
.. Click *Save*.
5959
+
60-
The query selects the total price field and sets it to the sum_total_price field. All fields are pulled from the kibana_sample_data_ecommerce index.
60+
All fields are pulled from the sample eCommerce orders {data-source}.
6161

6262
. At this point, the element appears as an error, so you need to change the element display options.
6363

6464
.. Click *Display*
6565

66-
.. From the *Value* dropdowns, make sure *Unique* is selected, then select *sum_total_price*.
66+
.. From the *Value* dropdowns, make sure *Unique* and *sum_total_price* are selected.
6767

6868
.. Change the *Label* to `Total sales`.
6969

@@ -102,9 +102,9 @@ SELECT order_date, taxless_total_price FROM "kibana_sample_data_ecommerce" ORDER
102102

103103
.. Click *Display*
104104

105-
.. From the *X-axis* drop-down lists, select *Value*, then select *order_date*.
105+
.. From the *X-axis* dropdown, make sure *Value* and *order_date* are selected.
106106

107-
.. From the *Y-axis* drop-down lists, select *Value*, then select *taxless_total_price*.
107+
.. From the *Y-axis* dropdown, select *Value*, then select *taxless_total_price*.
108108

109109
[role="screenshot"]
110110
image::images/canvas_tutorialCustomChart_7.17.0.png[Custom line chart added to the workpad using Elasticsearch SQL]
Binary file not shown.
120 KB
Loading
Binary file not shown.
39.4 KB
Loading
Binary file not shown.
27.9 KB
Loading
Binary file not shown.
248 KB
Loading
Binary file not shown.

0 commit comments

Comments
 (0)