maidr 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (206) hide show
  1. package/.Rbuildignore +1 -0
  2. package/.eslintignore +3 -0
  3. package/.eslintrc.json +6 -0
  4. package/.github/workflows/build.yml +20 -0
  5. package/.prettierignore +3 -0
  6. package/.prettierrc.json +7 -0
  7. package/.vscode/extensions.json +25 -0
  8. package/.vscode/settings.json +30 -0
  9. package/.vscode/tasks.json +57 -0
  10. package/CHANGELOG.md +7 -0
  11. package/CITATION.cff +21 -0
  12. package/CONTRIBUTING.md +87 -0
  13. package/LICENSE.md +595 -0
  14. package/README.md +341 -0
  15. package/dist/maidr.js +8851 -0
  16. package/dist/maidr.min.js +1 -0
  17. package/dist/styles.css +244 -0
  18. package/dist/styles.min.css +1 -0
  19. package/docs/Audio.html +1398 -0
  20. package/docs/Constants.html +256 -0
  21. package/docs/Description.html +582 -0
  22. package/docs/Helper.html +364 -0
  23. package/docs/LogError.html +905 -0
  24. package/docs/Menu.html +665 -0
  25. package/docs/Position.html +174 -0
  26. package/docs/Resources.html +338 -0
  27. package/docs/Review.html +333 -0
  28. package/docs/Tracker.html +965 -0
  29. package/docs/audio.js.html +635 -0
  30. package/docs/constants.js.html +1242 -0
  31. package/docs/display.js.html +1184 -0
  32. package/docs/fonts/OpenSans-Bold-webfont.eot +0 -0
  33. package/docs/fonts/OpenSans-Bold-webfont.svg +1830 -0
  34. package/docs/fonts/OpenSans-Bold-webfont.woff +0 -0
  35. package/docs/fonts/OpenSans-BoldItalic-webfont.eot +0 -0
  36. package/docs/fonts/OpenSans-BoldItalic-webfont.svg +1830 -0
  37. package/docs/fonts/OpenSans-BoldItalic-webfont.woff +0 -0
  38. package/docs/fonts/OpenSans-Italic-webfont.eot +0 -0
  39. package/docs/fonts/OpenSans-Italic-webfont.svg +1830 -0
  40. package/docs/fonts/OpenSans-Italic-webfont.woff +0 -0
  41. package/docs/fonts/OpenSans-Light-webfont.eot +0 -0
  42. package/docs/fonts/OpenSans-Light-webfont.svg +1831 -0
  43. package/docs/fonts/OpenSans-Light-webfont.woff +0 -0
  44. package/docs/fonts/OpenSans-LightItalic-webfont.eot +0 -0
  45. package/docs/fonts/OpenSans-LightItalic-webfont.svg +1835 -0
  46. package/docs/fonts/OpenSans-LightItalic-webfont.woff +0 -0
  47. package/docs/fonts/OpenSans-Regular-webfont.eot +0 -0
  48. package/docs/fonts/OpenSans-Regular-webfont.svg +1831 -0
  49. package/docs/fonts/OpenSans-Regular-webfont.woff +0 -0
  50. package/docs/fonts/OpenSans-Semibold-webfont.eot +0 -0
  51. package/docs/fonts/OpenSans-Semibold-webfont.svg +1830 -0
  52. package/docs/fonts/OpenSans-Semibold-webfont.ttf +0 -0
  53. package/docs/fonts/OpenSans-Semibold-webfont.woff +0 -0
  54. package/docs/fonts/OpenSans-SemiboldItalic-webfont.eot +0 -0
  55. package/docs/fonts/OpenSans-SemiboldItalic-webfont.svg +1830 -0
  56. package/docs/fonts/OpenSans-SemiboldItalic-webfont.ttf +0 -0
  57. package/docs/fonts/OpenSans-SemiboldItalic-webfont.woff +0 -0
  58. package/docs/index.html +66 -0
  59. package/docs/scripts/linenumber.js +25 -0
  60. package/docs/scripts/prettify/Apache-License-2.0.txt +202 -0
  61. package/docs/scripts/prettify/lang-css.js +2 -0
  62. package/docs/scripts/prettify/prettify.js +28 -0
  63. package/docs/styles/jsdoc-default.css +692 -0
  64. package/docs/styles/prettify-jsdoc.css +111 -0
  65. package/docs/styles/prettify-tomorrow.css +132 -0
  66. package/examples/dev_charts/barplot.html +1056 -0
  67. package/examples/dev_charts/boxplot.html +1856 -0
  68. package/examples/dev_charts/boxplot_flipped.svg +727 -0
  69. package/examples/dev_charts/heatmap.html +1217 -0
  70. package/examples/dev_charts/scatterplot/displ.js +18 -0
  71. package/examples/dev_charts/scatterplot/histogram_for_residual.svg +595 -0
  72. package/examples/dev_charts/scatterplot/hwy.js +15 -0
  73. package/examples/dev_charts/scatterplot/layers/point_layer.json +938 -0
  74. package/examples/dev_charts/scatterplot/layers/smooth_layer.json +322 -0
  75. package/examples/dev_charts/scatterplot/point_layer.js +938 -0
  76. package/examples/dev_charts/scatterplot/prediction_array.js +31 -0
  77. package/examples/dev_charts/scatterplot/prediction_array.json +31 -0
  78. package/examples/dev_charts/scatterplot/residual_array.js +29 -0
  79. package/examples/dev_charts/scatterplot/residual_array.json +29 -0
  80. package/examples/dev_charts/scatterplot/scatterplot.svg +1428 -0
  81. package/examples/dev_charts/scatterplot/scatterplot_data.html +2838 -0
  82. package/examples/dev_charts/scatterplot/scatterplot_no_jitter_point_only.svg +1393 -0
  83. package/examples/dev_charts/scatterplot/scatterplot_no_jitter_with_bestfit.svg +1424 -0
  84. package/examples/dev_charts/scatterplot/scatterplot_no_jitter_with_loess_curve.svg +1402 -0
  85. package/examples/dev_charts/scatterplot/smooth_layer.js +322 -0
  86. package/examples/dev_charts/scatterplot.html +4560 -0
  87. package/examples/dodged_bar/dodged_bar.png +0 -0
  88. package/examples/dodged_bar/dodged_bar.svg +198 -0
  89. package/examples/dodged_bar/schema.json +41 -0
  90. package/examples/histogram/histogram_tutorial.svg +482 -0
  91. package/examples/histogram/histogram_tutorial_raw_data.json +362 -0
  92. package/examples/histogram/histogram_user_study.svg +578 -0
  93. package/examples/histogram/histogram_user_study_raw_data.json +362 -0
  94. package/examples/lineplot/lineplot_sample.svg +126 -0
  95. package/examples/lineplot/lineplot_sample_raw_data.json +1 -0
  96. package/examples/lineplot/point+lineplot_sample.svg +700 -0
  97. package/examples/other/audio_oscillator_boxplot.js +95 -0
  98. package/examples/other/barplot_labels.svg +314 -0
  99. package/examples/other/barplot_user_study.svg +313 -0
  100. package/examples/other/boxplot.html +927 -0
  101. package/examples/other/boxplot_data_frame.html +568 -0
  102. package/examples/other/boxplot_label.svg +751 -0
  103. package/examples/other/braille-display_boxplot.js +79 -0
  104. package/examples/other/control_boxplot.js +55 -0
  105. package/examples/other/draft.js +56 -0
  106. package/examples/other/getData.html +400 -0
  107. package/examples/other/getData.js +41 -0
  108. package/examples/other/ggplot_to_svg.R +371 -0
  109. package/examples/other/heatmap.svg +582 -0
  110. package/examples/other/heatmap_label.svg +608 -0
  111. package/examples/other/multiple_barplot.html +2250 -0
  112. package/examples/other/new_scatterplot_user_study_point_layer.json +122 -0
  113. package/examples/other/py_binder_output.html +1167 -0
  114. package/examples/other/scatterplot_label.svg +1429 -0
  115. package/examples/other/seaborn_plot.py +9 -0
  116. package/examples/other/svglite_bar.svg +136 -0
  117. package/examples/other/tutorial_boxplot.svg +727 -0
  118. package/examples/other/tutorial_boxplot_data.json +72 -0
  119. package/examples/other/user_study_boxplot.svg +676 -0
  120. package/examples/stacked_bar/schema.json +41 -0
  121. package/examples/stacked_bar/stack_bar.png +0 -0
  122. package/examples/stacked_bar/stacked_bar.svg +180 -0
  123. package/examples/stacked_normalized_bar/stacked_normalized_bar.png +0 -0
  124. package/examples/stacked_normalized_bar/stacked_normalized_bar.svg +189 -0
  125. package/examples/static/barplot.svg +263 -0
  126. package/examples/static/barplot_diamonds_gridSVG.svg +254 -0
  127. package/examples/static/boxplot.svg +424 -0
  128. package/examples/static/heatmap.svg +373 -0
  129. package/examples/static/heatmap_penguins_table.html +486 -0
  130. package/examples/static/scatterplot.svg +530 -0
  131. package/examples/svglite/task_heatmap.html +802 -0
  132. package/examples/svglite/task_heatmap.svg +111 -0
  133. package/examples/svglite/tutorial_bar.svg +136 -0
  134. package/examples/svglite/tutorial_bar_plot.html +504 -0
  135. package/examples/svglite/tutorial_boxplot.html +1850 -0
  136. package/examples/svglite/tutorial_boxplot.svg +727 -0
  137. package/examples/svglite/tutorial_scatterplot.html +3135 -0
  138. package/examples/svglite/tutorial_scatterplot.svg +311 -0
  139. package/gulpfile.js +49 -0
  140. package/index.html +40 -0
  141. package/jsconfig.json +10 -0
  142. package/jsdoc.json +19 -0
  143. package/package.json +47 -0
  144. package/src/css/styles.css +241 -0
  145. package/src/js/__tests__/audio.test.js +49 -0
  146. package/src/js/__tests__/constants.test.js +622 -0
  147. package/src/js/audio.js +575 -0
  148. package/src/js/barplot.js +254 -0
  149. package/src/js/boxplot.js +682 -0
  150. package/src/js/constants.js +1182 -0
  151. package/src/js/controls.js +3182 -0
  152. package/src/js/display.js +1124 -0
  153. package/src/js/heatmap.js +411 -0
  154. package/src/js/histogram.js +134 -0
  155. package/src/js/init.js +427 -0
  156. package/src/js/lineplot.js +219 -0
  157. package/src/js/scatterplot.js +619 -0
  158. package/src/js/segmented.js +268 -0
  159. package/user_study_pilot/binder_test.html +526 -0
  160. package/user_study_pilot/data/barplot_user_study.svg +492 -0
  161. package/user_study_pilot/data/barplot_user_study_raw_data.json +22 -0
  162. package/user_study_pilot/data/boxplot_tutorial.json +72 -0
  163. package/user_study_pilot/data/boxplot_tutorial_horizontal.svg +727 -0
  164. package/user_study_pilot/data/boxplot_user_study.json +52 -0
  165. package/user_study_pilot/data/boxplot_user_study_vertical.svg +675 -0
  166. package/user_study_pilot/data/boxplot_user_study_vertical_horizontal.svg +676 -0
  167. package/user_study_pilot/data/heatmap_user_study.svg +719 -0
  168. package/user_study_pilot/data/heatmap_user_study_raw_data.json +127 -0
  169. package/user_study_pilot/data/new_barplot_user_study.svg +269 -0
  170. package/user_study_pilot/data/new_heatmap_user_study.svg +367 -0
  171. package/user_study_pilot/data/new_scatterplot_user_study.svg +603 -0
  172. package/user_study_pilot/data/new_scatterplot_user_study_point_layer.json +122 -0
  173. package/user_study_pilot/data/scatterplot_user_study (1).svg +321 -0
  174. package/user_study_pilot/data/scatterplot_user_study.svg +603 -0
  175. package/user_study_pilot/data/scatterplot_user_study_point_layer.json +122 -0
  176. package/user_study_pilot/data/scatterplot_user_study_smooth_layer.json +322 -0
  177. package/user_study_pilot/intro.html +215 -0
  178. package/user_study_pilot/jaws_settings/Chrome.JDF +10 -0
  179. package/user_study_pilot/jaws_settings/Firefox.JDF +10 -0
  180. package/user_study_pilot/jaws_settings/backup_utf8/Chrome.JDF +10 -0
  181. package/user_study_pilot/jaws_settings/backup_utf8/Firefox.JDF +10 -0
  182. package/user_study_pilot/jaws_settings/backup_utf8/msedge.JDF +10 -0
  183. package/user_study_pilot/jaws_settings/msedge.JDF +10 -0
  184. package/user_study_pilot/nvda_settings/chrome.dic +10 -0
  185. package/user_study_pilot/nvda_settings/default.dic +10 -0
  186. package/user_study_pilot/nvda_settings/firefox.dic +10 -0
  187. package/user_study_pilot/nvda_settings/msedge.dic +10 -0
  188. package/user_study_pilot/scatterplot.html +4560 -0
  189. package/user_study_pilot/seaborn_test.html +1059 -0
  190. package/user_study_pilot/svglite_test.html +534 -0
  191. package/user_study_pilot/task1_bar_plot.html +1111 -0
  192. package/user_study_pilot/task2_heatmap.html +1661 -0
  193. package/user_study_pilot/task3_boxplot_horizontal.html +1690 -0
  194. package/user_study_pilot/task3_boxplot_vertical.html +1689 -0
  195. package/user_study_pilot/task4_scatterplot.html +2091 -0
  196. package/user_study_pilot/tutorial1_bar_plot.html +1159 -0
  197. package/user_study_pilot/tutorial2_heatmap.html +1276 -0
  198. package/user_study_pilot/tutorial3_boxplot_horizontal.html +1861 -0
  199. package/user_study_pilot/tutorial3_boxplot_vertical.html +1807 -0
  200. package/user_study_pilot/tutorial4_scatterplot.html +5893 -0
  201. package/user_study_pilot/tutorial5_histogram.html +1553 -0
  202. package/user_study_pilot/tutorial6_lineplot.html +1011 -0
  203. package/user_study_pilot/tutorial7_stacked.html +763 -0
  204. package/user_study_pilot/tutorial8_stacked_normalized.html +796 -0
  205. package/user_study_pilot/tutorial9_dodged_bar.html +831 -0
  206. package/user_study_pilot/voiceover_settings/user_study_VoiceOver Archive.voprefs +573 -0
@@ -0,0 +1,534 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <title>Tutorial 1: Bar Chart</title>
5
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
6
+ <meta charset="utf-8" />
7
+ <!-- <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-GLhlTQ8iRABdZLl6O3oVMWSktQOp6b7In1Zl3/Jr59b6EGGoI1aFkw7cmDA6j6gD" crossorigin="anonymous"> -->
8
+ <link rel="stylesheet" href="../src/styles.css" type="text/css" />
9
+ </head>
10
+
11
+ <body>
12
+ <div class="container mt-3">
13
+ <div id="container" data-plottype="bar">
14
+ <div id="braille-div">
15
+ <input id="braille-input" class="braille-input hidden" type="text" />
16
+ </div>
17
+
18
+ <!-- barplot_diamonds_gridSVG.svg -->
19
+ <div id="svg-container">
20
+ <svg
21
+ xmlns="http://www.w3.org/2000/svg"
22
+ xmlns:xlink="http://www.w3.org/1999/xlink"
23
+ class="svglite"
24
+ width="720.00pt"
25
+ height="576.00pt"
26
+ viewBox="0 0 720.00 576.00"
27
+ >
28
+ <defs>
29
+ <style type="text/css">
30
+ <![CDATA[
31
+ .svglite line,
32
+ .svglite polyline,
33
+ .svglite polygon,
34
+ .svglite path,
35
+ .svglite rect,
36
+ .svglite circle {
37
+ fill: none;
38
+ stroke: #000000;
39
+ stroke-linecap: round;
40
+ stroke-linejoin: round;
41
+ stroke-miterlimit: 10.00;
42
+ }
43
+
44
+ .svglite text {
45
+ white-space: pre;
46
+ }
47
+ ]]>
48
+ </style>
49
+ </defs>
50
+ <rect
51
+ width="100%"
52
+ height="100%"
53
+ style="stroke: none; fill: #ffffff"
54
+ />
55
+ <defs>
56
+ <clipPath id="cpMC4wMHw3MjAuMDB8MC4wMHw1NzYuMDA=">
57
+ <rect x="0.00" y="0.00" width="720.00" height="576.00" />
58
+ </clipPath>
59
+ </defs>
60
+ <g clip-path="url(#cpMC4wMHw3MjAuMDB8MC4wMHw1NzYuMDA=)">
61
+ <rect
62
+ x="0.00"
63
+ y="0.00"
64
+ width="720.00"
65
+ height="576.00"
66
+ style="stroke-width: 1.07; stroke: #ffffff; fill: #ffffff"
67
+ />
68
+ </g>
69
+ <defs>
70
+ <clipPath id="cpNDcuODN8NzE0LjUyfDIzLjE4fDU0NC41MA==">
71
+ <rect x="47.83" y="23.18" width="666.69" height="521.33" />
72
+ </clipPath>
73
+ </defs>
74
+ <g clip-path="url(#cpNDcuODN8NzE0LjUyfDIzLjE4fDU0NC41MA==)">
75
+ <rect
76
+ x="47.83"
77
+ y="23.18"
78
+ width="666.69"
79
+ height="521.33"
80
+ style="stroke-width: 1.07; stroke: none; fill: #ebebeb"
81
+ />
82
+ <polyline
83
+ points="47.83,465.83 714.52,465.83 "
84
+ style="
85
+ stroke-width: 0.53;
86
+ stroke: #ffffff;
87
+ stroke-linecap: butt;
88
+ "
89
+ />
90
+ <polyline
91
+ points="47.83,355.87 714.52,355.87 "
92
+ style="
93
+ stroke-width: 0.53;
94
+ stroke: #ffffff;
95
+ stroke-linecap: butt;
96
+ "
97
+ />
98
+ <polyline
99
+ points="47.83,245.92 714.52,245.92 "
100
+ style="
101
+ stroke-width: 0.53;
102
+ stroke: #ffffff;
103
+ stroke-linecap: butt;
104
+ "
105
+ />
106
+ <polyline
107
+ points="47.83,135.96 714.52,135.96 "
108
+ style="
109
+ stroke-width: 0.53;
110
+ stroke: #ffffff;
111
+ stroke-linecap: butt;
112
+ "
113
+ />
114
+ <polyline
115
+ points="47.83,26.00 714.52,26.00 "
116
+ style="
117
+ stroke-width: 0.53;
118
+ stroke: #ffffff;
119
+ stroke-linecap: butt;
120
+ "
121
+ />
122
+ <polyline
123
+ points="47.83,520.81 714.52,520.81 "
124
+ style="
125
+ stroke-width: 1.07;
126
+ stroke: #ffffff;
127
+ stroke-linecap: butt;
128
+ "
129
+ />
130
+ <polyline
131
+ points="47.83,410.85 714.52,410.85 "
132
+ style="
133
+ stroke-width: 1.07;
134
+ stroke: #ffffff;
135
+ stroke-linecap: butt;
136
+ "
137
+ />
138
+ <polyline
139
+ points="47.83,300.89 714.52,300.89 "
140
+ style="
141
+ stroke-width: 1.07;
142
+ stroke: #ffffff;
143
+ stroke-linecap: butt;
144
+ "
145
+ />
146
+ <polyline
147
+ points="47.83,190.94 714.52,190.94 "
148
+ style="
149
+ stroke-width: 1.07;
150
+ stroke: #ffffff;
151
+ stroke-linecap: butt;
152
+ "
153
+ />
154
+ <polyline
155
+ points="47.83,80.98 714.52,80.98 "
156
+ style="
157
+ stroke-width: 1.07;
158
+ stroke: #ffffff;
159
+ stroke-linecap: butt;
160
+ "
161
+ />
162
+ <polyline
163
+ points="124.75,544.50 124.75,23.18 "
164
+ style="
165
+ stroke-width: 1.07;
166
+ stroke: #ffffff;
167
+ stroke-linecap: butt;
168
+ "
169
+ />
170
+ <polyline
171
+ points="252.96,544.50 252.96,23.18 "
172
+ style="
173
+ stroke-width: 1.07;
174
+ stroke: #ffffff;
175
+ stroke-linecap: butt;
176
+ "
177
+ />
178
+ <polyline
179
+ points="381.17,544.50 381.17,23.18 "
180
+ style="
181
+ stroke-width: 1.07;
182
+ stroke: #ffffff;
183
+ stroke-linecap: butt;
184
+ "
185
+ />
186
+ <polyline
187
+ points="509.38,544.50 509.38,23.18 "
188
+ style="
189
+ stroke-width: 1.07;
190
+ stroke: #ffffff;
191
+ stroke-linecap: butt;
192
+ "
193
+ />
194
+ <polyline
195
+ points="637.59,544.50 637.59,23.18 "
196
+ style="
197
+ stroke-width: 1.07;
198
+ stroke: #ffffff;
199
+ stroke-linecap: butt;
200
+ "
201
+ />
202
+ <rect
203
+ x="67.06"
204
+ y="485.40"
205
+ width="115.39"
206
+ height="35.41"
207
+ style="
208
+ stroke-width: 1.07;
209
+ stroke: none;
210
+ stroke-linecap: butt;
211
+ stroke-linejoin: miter;
212
+ fill: #595959;
213
+ "
214
+ />
215
+ <rect
216
+ x="195.27"
217
+ y="412.92"
218
+ width="115.39"
219
+ height="107.89"
220
+ style="
221
+ stroke-width: 1.07;
222
+ stroke: none;
223
+ stroke-linecap: butt;
224
+ stroke-linejoin: miter;
225
+ fill: #595959;
226
+ "
227
+ />
228
+ <rect
229
+ x="323.48"
230
+ y="255.11"
231
+ width="115.39"
232
+ height="265.70"
233
+ style="
234
+ stroke-width: 1.07;
235
+ stroke: none;
236
+ stroke-linecap: butt;
237
+ stroke-linejoin: miter;
238
+ fill: #595959;
239
+ "
240
+ />
241
+ <rect
242
+ x="451.69"
243
+ y="217.53"
244
+ width="115.39"
245
+ height="303.28"
246
+ style="
247
+ stroke-width: 1.07;
248
+ stroke: none;
249
+ stroke-linecap: butt;
250
+ stroke-linejoin: miter;
251
+ fill: #595959;
252
+ "
253
+ />
254
+ <rect
255
+ x="579.90"
256
+ y="46.87"
257
+ width="115.39"
258
+ height="473.93"
259
+ style="
260
+ stroke-width: 1.07;
261
+ stroke: none;
262
+ stroke-linecap: butt;
263
+ stroke-linejoin: miter;
264
+ fill: #595959;
265
+ "
266
+ />
267
+ </g>
268
+ <g clip-path="url(#cpMC4wMHw3MjAuMDB8MC4wMHw1NzYuMDA=)">
269
+ <text
270
+ x="42.89"
271
+ y="523.96"
272
+ text-anchor="end"
273
+ style="font-size: 8.8px; fill: #4d4d4d; font-family: 'Arial'"
274
+ textLength="4.90px"
275
+ lengthAdjust="spacingAndGlyphs"
276
+ >
277
+ 0
278
+ </text>
279
+ <text
280
+ x="42.89"
281
+ y="414.00"
282
+ text-anchor="end"
283
+ style="font-size: 8.8px; fill: #4d4d4d; font-family: 'Arial'"
284
+ textLength="19.58px"
285
+ lengthAdjust="spacingAndGlyphs"
286
+ >
287
+ 5000
288
+ </text>
289
+ <text
290
+ x="42.89"
291
+ y="304.04"
292
+ text-anchor="end"
293
+ style="font-size: 8.8px; fill: #4d4d4d; font-family: 'Arial'"
294
+ textLength="24.48px"
295
+ lengthAdjust="spacingAndGlyphs"
296
+ >
297
+ 10000
298
+ </text>
299
+ <text
300
+ x="42.89"
301
+ y="194.09"
302
+ text-anchor="end"
303
+ style="font-size: 8.8px; fill: #4d4d4d; font-family: 'Arial'"
304
+ textLength="24.48px"
305
+ lengthAdjust="spacingAndGlyphs"
306
+ >
307
+ 15000
308
+ </text>
309
+ <text
310
+ x="42.89"
311
+ y="84.13"
312
+ text-anchor="end"
313
+ style="font-size: 8.8px; fill: #4d4d4d; font-family: 'Arial'"
314
+ textLength="24.48px"
315
+ lengthAdjust="spacingAndGlyphs"
316
+ >
317
+ 20000
318
+ </text>
319
+ <polyline
320
+ points="45.09,520.81 47.83,520.81 "
321
+ style="
322
+ stroke-width: 1.07;
323
+ stroke: #333333;
324
+ stroke-linecap: butt;
325
+ "
326
+ />
327
+ <polyline
328
+ points="45.09,410.85 47.83,410.85 "
329
+ style="
330
+ stroke-width: 1.07;
331
+ stroke: #333333;
332
+ stroke-linecap: butt;
333
+ "
334
+ />
335
+ <polyline
336
+ points="45.09,300.89 47.83,300.89 "
337
+ style="
338
+ stroke-width: 1.07;
339
+ stroke: #333333;
340
+ stroke-linecap: butt;
341
+ "
342
+ />
343
+ <polyline
344
+ points="45.09,190.94 47.83,190.94 "
345
+ style="
346
+ stroke-width: 1.07;
347
+ stroke: #333333;
348
+ stroke-linecap: butt;
349
+ "
350
+ />
351
+ <polyline
352
+ points="45.09,80.98 47.83,80.98 "
353
+ style="
354
+ stroke-width: 1.07;
355
+ stroke: #333333;
356
+ stroke-linecap: butt;
357
+ "
358
+ />
359
+ <polyline
360
+ points="124.75,547.24 124.75,544.50 "
361
+ style="
362
+ stroke-width: 1.07;
363
+ stroke: #333333;
364
+ stroke-linecap: butt;
365
+ "
366
+ />
367
+ <polyline
368
+ points="252.96,547.24 252.96,544.50 "
369
+ style="
370
+ stroke-width: 1.07;
371
+ stroke: #333333;
372
+ stroke-linecap: butt;
373
+ "
374
+ />
375
+ <polyline
376
+ points="381.17,547.24 381.17,544.50 "
377
+ style="
378
+ stroke-width: 1.07;
379
+ stroke: #333333;
380
+ stroke-linecap: butt;
381
+ "
382
+ />
383
+ <polyline
384
+ points="509.38,547.24 509.38,544.50 "
385
+ style="
386
+ stroke-width: 1.07;
387
+ stroke: #333333;
388
+ stroke-linecap: butt;
389
+ "
390
+ />
391
+ <polyline
392
+ points="637.59,547.24 637.59,544.50 "
393
+ style="
394
+ stroke-width: 1.07;
395
+ stroke: #333333;
396
+ stroke-linecap: butt;
397
+ "
398
+ />
399
+ <text
400
+ x="124.75"
401
+ y="555.74"
402
+ text-anchor="middle"
403
+ style="font-size: 8.8px; fill: #4d4d4d; font-family: 'Arial'"
404
+ textLength="15.15px"
405
+ lengthAdjust="spacingAndGlyphs"
406
+ >
407
+ Fair
408
+ </text>
409
+ <text
410
+ x="252.96"
411
+ y="555.74"
412
+ text-anchor="middle"
413
+ style="font-size: 8.8px; fill: #4d4d4d; font-family: 'Arial'"
414
+ textLength="21.54px"
415
+ lengthAdjust="spacingAndGlyphs"
416
+ >
417
+ Good
418
+ </text>
419
+ <text
420
+ x="381.17"
421
+ y="555.74"
422
+ text-anchor="middle"
423
+ style="font-size: 8.8px; fill: #4d4d4d; font-family: 'Arial'"
424
+ textLength="41.59px"
425
+ lengthAdjust="spacingAndGlyphs"
426
+ >
427
+ Very Good
428
+ </text>
429
+ <text
430
+ x="509.38"
431
+ y="555.74"
432
+ text-anchor="middle"
433
+ style="font-size: 8.8px; fill: #4d4d4d; font-family: 'Arial'"
434
+ textLength="35.20px"
435
+ lengthAdjust="spacingAndGlyphs"
436
+ >
437
+ Premium
438
+ </text>
439
+ <text
440
+ x="637.59"
441
+ y="555.74"
442
+ text-anchor="middle"
443
+ style="font-size: 8.8px; fill: #4d4d4d; font-family: 'Arial'"
444
+ textLength="19.09px"
445
+ lengthAdjust="spacingAndGlyphs"
446
+ >
447
+ Ideal
448
+ </text>
449
+ <text
450
+ x="381.17"
451
+ y="568.20"
452
+ text-anchor="middle"
453
+ style="font-size: 11px; font-family: 'Arial'"
454
+ textLength="17.12px"
455
+ lengthAdjust="spacingAndGlyphs"
456
+ >
457
+ Cut
458
+ </text>
459
+ <text
460
+ transform="translate(13.36,283.84) rotate(-90)"
461
+ text-anchor="middle"
462
+ style="font-size: 11px; font-family: 'Arial'"
463
+ textLength="29.36px"
464
+ lengthAdjust="spacingAndGlyphs"
465
+ >
466
+ Count
467
+ </text>
468
+ <text
469
+ x="47.83"
470
+ y="14.93"
471
+ style="font-size: 13.2px; font-family: 'Arial'"
472
+ textLength="196.48px"
473
+ lengthAdjust="spacingAndGlyphs"
474
+ >
475
+ The Number of Diamonds by Cut.
476
+ </text>
477
+ </g>
478
+ </svg>
479
+ </div>
480
+ <br />
481
+ <div id="info" aria-live="assertive" aria-atomic="true">
482
+ <p id="x"></p>
483
+ <p id="y"></p>
484
+ </div>
485
+ <div
486
+ id="announcements"
487
+ aria-live="assertive"
488
+ aria-atomic="true"
489
+ class="mb-3"
490
+ ></div>
491
+ </div>
492
+ </div>
493
+ <script>
494
+ var maidr = {
495
+ type: 'bar',
496
+ legend_x: 'cut',
497
+ legend_y: 'count',
498
+ title: 'The Number of Diamonds by Cut.',
499
+ // elements: document.querySelectorAll('#svg-container > svg > g > rect[width="115.39"'),
500
+ data: [
501
+ {
502
+ label: 'Fair',
503
+ value: 1610,
504
+ },
505
+ {
506
+ label: 'Good',
507
+ value: 4906,
508
+ },
509
+ {
510
+ label: 'Very Good',
511
+ value: 12082,
512
+ },
513
+ {
514
+ label: 'Premium',
515
+ value: 13791,
516
+ },
517
+ {
518
+ label: 'Ideal',
519
+ value: 21551,
520
+ },
521
+ ],
522
+ };
523
+ //var barplotBars = document.querySelectorAll('g[id^="geom_rect"] > rect');
524
+ //var barplotColumns = ["Fair", "Good", "Very Good", "Premium", "Ideal"];
525
+ //var barplotLegend = { "x": "cut", "y": "count" };
526
+ //var barplotData = [1610, 4906, 12082, 13791, 21551];
527
+ //var barplotTitle = "The Number of Diamonds by Cut.";
528
+ </script>
529
+ <script src="../src/constants.js"></script>
530
+ <script src="../src/audio.js"></script>
531
+ <script src="../src/display.js"></script>
532
+ <script src="../src/barplot.js"></script>
533
+ </body>
534
+ </html>