@@ -44,11 +44,11 @@ Customize your data by connecting it to the Sample eCommerce orders data.
44
44
45
45
. Click *Add element > Chart > Metric*.
46
46
+
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.
48
48
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*.
50
50
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 :
52
52
+
53
53
[source,text]
54
54
--
@@ -57,13 +57,13 @@ SELECT sum(taxless_total_price) AS sum_total_price FROM "kibana_sample_data_ecom
57
57
58
58
.. Click *Save*.
59
59
+
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} .
61
61
62
62
. At this point, the element appears as an error, so you need to change the element display options.
63
63
64
64
.. Click *Display*
65
65
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 .
67
67
68
68
.. Change the *Label* to `Total sales`.
69
69
@@ -102,9 +102,9 @@ SELECT order_date, taxless_total_price FROM "kibana_sample_data_ecommerce" ORDER
102
102
103
103
.. Click *Display*
104
104
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 .
106
106
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*.
108
108
109
109
[role="screenshot"]
110
110
image::images/canvas_tutorialCustomChart_7.17.0.png[Custom line chart added to the workpad using Elasticsearch SQL]
0 commit comments