1616 < body >
1717 < h1 > XY Charts demos</ h1 >
1818
19- < pre class ="mermaid ">
20- ---
21- config:
22- theme: dark
23- xyChart:
24- width: 900
25- height: 600
26- showDataLabel: true
27- showDataLabelOutsideBar: true
28- ---
29-
30- xychart
31- title "Lee Basic xychart with many categories"
32- x-axis "this is x axis" [category1, "category 2", category3, category4, category5, category6, category7]
33- y-axis yaxisText 10 --> 150
34- bar "sample bar" [52, 96, 35, 10, 87, 34, 67, 99]
35- </ pre >
36-
3719 < pre class ="mermaid ">
3820 xychart
3921 title "Sales Revenue (in $)"
@@ -42,6 +24,7 @@ <h1>XY Charts demos</h1>
4224 bar [5000, 6000, 7500, 8200, 9500, 10500, 11000, 10200, 9200, 8500, 7000, 6000]
4325 line [5000, 6000, 7500, 8200, 9500, 10500, 11000, 10200, 9200, 8500, 7000, 6000]
4426 </ pre >
27+
4528 < hr />
4629 < h1 > XY Charts horizontal</ h1 >
4730 < pre class ="mermaid ">
@@ -71,6 +54,7 @@ <h1>XY Charts with +ve and -ve numbers</h1>
7154 line [+1.3, .6, 2.4, -.34]
7255 </ pre >
7356
57+ < hr />
7458 < h1 > XY Charts Bar with multiple category</ h1 >
7559 < pre class ="mermaid ">
7660 xychart
@@ -80,6 +64,137 @@ <h1>XY Charts Bar with multiple category</h1>
8064 bar "sample bar" [52, 96, 35, 10, 87, 34, 67, 99]
8165 </ pre >
8266
67+ < hr />
68+ < h1 > XY Charts Bar with showDataLabel</ h1 >
69+ < pre class ="mermaid ">
70+ ---
71+ config:
72+ xyChart:
73+ showDataLabel: true
74+ ---
75+ xychart
76+ title "Basic xychart with showDataLabel"
77+ x-axis "this is x axis" [category1, "category 2", category3, category4, category5, category6, category7]
78+ y-axis yaxisText 10 --> 150
79+ bar "sample bar" [52, 96, 35, 10, 87, 34, 67, 99]
80+ </ pre >
81+
82+ < hr />
83+ < h1 > XY Charts Bar with showDataLabel and showDataLabelOutsideBar</ h1 >
84+ < pre class ="mermaid ">
85+ ---
86+ config:
87+ xyChart:
88+ showDataLabel: true
89+ showDataLabelOutsideBar: true
90+ ---
91+ xychart
92+ title "Basic xychart showDataLabel and showDataLabelOutsideBar"
93+ x-axis "this is x axis" [category1, "category 2", category3, category4, category5, category6, category7]
94+ y-axis yaxisText 10 --> 150
95+ bar "sample bar" [52, 96, 35, 10, 87, 34, 67, 99]
96+ </ pre >
97+
98+ < hr />
99+ < h1 > XY Charts Bar with showDataLabel (alternate data)</ h1 >
100+ < pre class ="mermaid ">
101+ ---
102+ config:
103+ xyChart:
104+ showDataLabel: true
105+ ---
106+ xychart
107+ title "Basic xychart showDataLabel and showDataLabelOutsideBar (alternate data)"
108+ x-axis Months [jan, feb, mar, apr, may, jun, jul, aug, sep, oct, nov, dec]
109+ y-axis "Revenue (in $)" 4000 --> 11000
110+ bar [5000, 6000, 7500, 8200, 9500, 10500, 11000, 10200, 9200, 8500, 7000, 6000]
111+ </ pre >
112+
113+ < hr />
114+ < h1 > XY Charts Bar with showDataLabel and showDataLabelOutsideBar (alternate data)</ h1 >
115+ < pre class ="mermaid ">
116+ ---
117+ config:
118+ xyChart:
119+ showDataLabel: true
120+ showDataLabelOutsideBar: true
121+ ---
122+ xychart
123+ title "Basic xychart showDataLabel and showDataLabelOutsideBar (alternate data)"
124+ x-axis Months [jan, feb, mar, apr, may, jun, jul, aug, sep, oct, nov, dec]
125+ y-axis "Revenue (in $)" 4000 --> 11000
126+ bar [5000, 6000, 7500, 8200, 9500, 10500, 11000, 10200, 9200, 8500, 7000, 6000]
127+ </ pre >
128+
129+ < hr />
130+ < h1 > XY Charts Bar Horizontal with showDataLabel</ h1 >
131+ < pre class ="mermaid ">
132+ ---
133+ config:
134+ xyChart:
135+ showDataLabel: true
136+ chartOrientation: horizontal
137+ ---
138+ xychart
139+ title "Basic xychart Horizontal with showDataLabel"
140+ x-axis "this is x axis" [category1, "category 2", category3, category4, category5, category6, category7]
141+ y-axis yaxisText 10 --> 150
142+ bar "sample bar" [52, 96, 35, 10, 87, 34, 67, 99]
143+ </ pre >
144+
145+ < hr />
146+ < h1 > XY Charts Bar Horizontal with showDataLabel and showDataLabelOutsideBar</ h1 >
147+ < pre class ="mermaid ">
148+ ---
149+ config:
150+ xyChart:
151+ showDataLabel: true
152+ showDataLabelOutsideBar: true
153+ chartOrientation: horizontal
154+ ---
155+ xychart
156+ title "Basic xychart Horizontal showDataLabel and showDataLabelOutsideBar"
157+ x-axis "this is x axis" [category1, "category 2", category3, category4, category5, category6, category7]
158+ y-axis yaxisText 10 --> 150
159+ bar "sample bar" [52, 96, 35, 10, 87, 34, 67, 99]
160+ </ pre >
161+
162+ < hr />
163+ < h1 > XY Charts Bar Horizontal with showDataLabel (alternate data)</ h1 >
164+ < pre class ="mermaid ">
165+ ---
166+ config:
167+ xyChart:
168+ showDataLabel: true
169+ chartOrientation: horizontal
170+ ---
171+ xychart
172+ title "Basic xychart Horizontal showDataLabel (alternate data)"
173+ x-axis Months [jan, feb, mar, apr, may, jun, jul, aug, sep, oct, nov, dec]
174+ y-axis "Revenue (in $)" 4000 --> 11000
175+ bar [5000, 6000, 7500, 8200, 9500, 10500, 11000, 10200, 9200, 8500, 7000, 6000]
176+ </ pre >
177+
178+ < hr />
179+ < h1 >
180+ XY Charts Bar Horizontal with showDataLabel and showDataLabelOutsideBar (alternate data)
181+ </ h1 >
182+ < pre class ="mermaid ">
183+ ---
184+ config:
185+ xyChart:
186+ showDataLabel: true
187+ showDataLabelOutsideBar: true
188+ chartOrientation: horizontal
189+ ---
190+ xychart
191+ title "Basic xychart Horizontal showDataLabel and showDataLabelOutsideBar (alternate data)"
192+ x-axis Months [jan, feb, mar, apr, may, jun, jul, aug, sep, oct, nov, dec]
193+ y-axis "Revenue (in $)" 4000 --> 11000
194+ bar [5000, 6000, 7500, 8200, 9500, 10500, 11000, 10200, 9200, 8500, 7000, 6000]
195+ </ pre >
196+
197+ < hr />
83198 < h1 > XY Charts line with multiple category</ h1 >
84199 < pre class ="mermaid ">
85200 xychart
@@ -89,6 +204,7 @@ <h1>XY Charts line with multiple category</h1>
89204 line "sample line" [52, 96, 35, 10, 87, 34, 67, 99]
90205 </ pre >
91206
207+ < hr />
92208 < h1 > XY Charts category with large text</ h1 >
93209 < pre class ="mermaid ">
94210 xychart
@@ -98,6 +214,7 @@ <h1>XY Charts category with large text</h1>
98214 bar "sample bar" [52, 96, 35, 10, 87, 34, 67, 99]
99215 </ pre >
100216
217+ < hr />
101218 < h1 > sparkline demo</ h1 >
102219 < pre class ="mermaid ">
103220---
@@ -112,6 +229,7 @@ <h1>sparkline demo</h1>
112229 line [5000, 9000, 7500, 6200, 9500, 5500, 11000, 8200, 9200, 9500, 7000, 8800]
113230 </ pre >
114231
232+ < hr />
115233 < h1 > sparkBar demo</ h1 >
116234 < pre class ="mermaid ">
117235---
@@ -126,6 +244,7 @@ <h1>sparkBar demo</h1>
126244 bar [5000, 9000, 7500, 6200, 9500, 5500, 11000, 8200, 9200, 9500, 7000, 8800]
127245 </ pre >
128246
247+ < hr />
129248 < h1 > XY Charts demos with all configs</ h1 >
130249 < pre class ="mermaid ">
131250---
@@ -163,6 +282,8 @@ <h1>XY Charts demos with all configs</h1>
163282 line [5000, 6000, 7500, 8200, 9500, 10500, 11000, 10200, 9200, 8500, 7000, 6000]
164283
165284 </ pre >
285+
286+ < hr />
166287 < h1 > XY Charts demos with all theme config</ h1 >
167288 < pre class ="mermaid ">
168289---
0 commit comments