From 08cf98b1ec0be21fc36793fd156568825f4800f3 Mon Sep 17 00:00:00 2001 From: Victor Garcia Zarco Date: Fri, 18 Sep 2020 13:58:21 +0200 Subject: [PATCH] Add new sample charts --- .../default/lwc/sampleApp/sampleApp.html | 99 +++++++++++++++++++ 1 file changed, 99 insertions(+) diff --git a/force-app/sample/default/lwc/sampleApp/sampleApp.html b/force-app/sample/default/lwc/sampleApp/sampleApp.html index a6cf5a59..2600fbe7 100755 --- a/force-app/sample/default/lwc/sampleApp/sampleApp.html +++ b/force-app/sample/default/lwc/sampleApp/sampleApp.html @@ -606,6 +606,7 @@ stack="1" > + @@ -632,5 +633,103 @@ </c-chart> + + + + + + + + + + + + + + <c-chart type="horizontalBar" + responsive="true">
+  <c-dataset labels='["Group 1", "Group + 2", "Group 3", "Group 4", "Group 5", + "Group 6"]'>
+   <c-data label="# of Items" detail="[12, + 19, 7, 9, 5, 15]" backgroundcolor="rgba(255, 176, 59, 1)" + bordercolor="rgba(255, 176, 59, 1)" + borderwidth="1"></c-data>
+  </c-dataset>
+  <c-title text="Horizontal + Chart"></c-title>
+  <c-legend position="bottom"></c-legend>
+  <c-cartesian-category-axis axis="y" + position="left"></c-cartesian-category-axis>
+  <c-cartesian-linear-axis axis="x" + tick-beginatzero="true"></c-cartesian-linear-axis>
+ </c-chart> +
+
+ + + + + + + + + + + + + <c-chart type="line" responsive="true">
+  <c-dataset>
+   <c-data label="Stock price" + bordercolor="rgba(119, 185, 242, 1)" + backgroundcolor="rgba(119, 185, 242, 1)" + borderwidth="1" fill="false"
+    detail='[\{"y":30,"x":"2020-08-20T00:00:00.000Z"\},\{"y":25,"x":"2020-08-21T00:00:00.000Z"\},\{"y":50,"x":"2020-08-23T00:00:00.000Z"\},\{"y":70,"x":"2020-08-29T00:00:00.000Z"\}]'>
+   </c-data>
+  </c-dataset>
+  <c-title text="Linear Time + Chart"></c-title>
+  <c-cartesian-linear-axis axis="y" + position="left" display="true" + tick-beginatzero="true"></c-cartesian-linear-axis>
+  <c-cartesian-time-axis axis="x" + time-unit="day" display="true" + tick-source="data" bounds="ticks">
+  </c-cartesian-time-axis>
+ </c-chart> +
+