@hpcc-js/chart 2.86.3 → 2.86.5

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 (84) hide show
  1. package/LICENSE +43 -43
  2. package/README.md +93 -93
  3. package/dist/index.es6.js +2 -2
  4. package/dist/index.es6.js.map +1 -1
  5. package/dist/index.js +2 -2
  6. package/dist/index.js.map +1 -1
  7. package/dist/index.min.js +1 -1
  8. package/dist/index.min.js.map +1 -1
  9. package/package.json +5 -5
  10. package/src/Area.md +176 -176
  11. package/src/Area.ts +12 -12
  12. package/src/Axis.css +34 -34
  13. package/src/Axis.ts +733 -733
  14. package/src/Bar.md +90 -90
  15. package/src/Bar.ts +9 -9
  16. package/src/Bubble.css +16 -16
  17. package/src/Bubble.md +69 -69
  18. package/src/Bubble.ts +191 -191
  19. package/src/BubbleXY.ts +14 -14
  20. package/src/Bullet.css +60 -60
  21. package/src/Bullet.md +104 -104
  22. package/src/Bullet.ts +167 -167
  23. package/src/Column.css +17 -17
  24. package/src/Column.md +90 -90
  25. package/src/Column.ts +659 -659
  26. package/src/Contour.md +88 -88
  27. package/src/Contour.ts +97 -97
  28. package/src/D3Cloud.ts +400 -400
  29. package/src/Gantt.md +119 -119
  30. package/src/Gantt.ts +14 -14
  31. package/src/Gauge.md +148 -148
  32. package/src/Gauge.ts +358 -358
  33. package/src/HalfPie.md +62 -62
  34. package/src/HalfPie.ts +26 -26
  35. package/src/Heat.md +42 -42
  36. package/src/Heat.ts +283 -283
  37. package/src/HexBin.css +9 -9
  38. package/src/HexBin.md +88 -88
  39. package/src/HexBin.ts +139 -139
  40. package/src/Line.css +6 -6
  41. package/src/Line.md +170 -170
  42. package/src/Line.ts +14 -14
  43. package/src/Pie.css +23 -23
  44. package/src/Pie.md +88 -88
  45. package/src/Pie.ts +503 -503
  46. package/src/QuarterPie.md +61 -61
  47. package/src/QuarterPie.ts +35 -35
  48. package/src/QuartileCandlestick.md +129 -129
  49. package/src/QuartileCandlestick.ts +349 -349
  50. package/src/Radar.css +15 -15
  51. package/src/Radar.md +104 -104
  52. package/src/Radar.ts +336 -336
  53. package/src/RadialBar.css +25 -25
  54. package/src/RadialBar.md +91 -91
  55. package/src/RadialBar.ts +212 -212
  56. package/src/Scatter.css +16 -16
  57. package/src/Scatter.md +163 -163
  58. package/src/Scatter.ts +376 -376
  59. package/src/StatChart.md +117 -117
  60. package/src/StatChart.ts +253 -253
  61. package/src/Step.md +163 -163
  62. package/src/Step.ts +12 -12
  63. package/src/Summary.css +56 -56
  64. package/src/Summary.md +219 -219
  65. package/src/Summary.ts +322 -322
  66. package/src/SummaryC.md +154 -154
  67. package/src/SummaryC.ts +240 -240
  68. package/src/WordCloud.css +3 -3
  69. package/src/WordCloud.md +144 -144
  70. package/src/WordCloud.ts +263 -263
  71. package/src/XYAxis.css +41 -41
  72. package/src/XYAxis.md +149 -149
  73. package/src/XYAxis.ts +803 -803
  74. package/src/__package__.ts +3 -3
  75. package/src/__tests__/heat.ts +71 -71
  76. package/src/__tests__/index.ts +3 -3
  77. package/src/__tests__/pie.ts +20 -20
  78. package/src/__tests__/stat.ts +16 -16
  79. package/src/__tests__/test3.ts +69 -69
  80. package/src/index.ts +27 -27
  81. package/src/test.ts +71 -71
  82. package/types/__package__.d.ts +2 -2
  83. package/types/__package__.d.ts.map +1 -1
  84. package/types-3.4/__package__.d.ts +2 -2
package/src/Summary.md CHANGED
@@ -1,219 +1,219 @@
1
- # Summary
2
-
3
- <!--meta
4
-
5
- -->
6
-
7
- Summary is commonly used to emphasize significant data points within a dashboard. It requires _labelColumn_ and _valueColumn_ to be specified.
8
-
9
- <ClientOnly>
10
- <hpcc-vitepress style="width:100%;height:600px">
11
- <div id="placeholder" style="height:400px">
12
- </div>
13
- <script type="module">
14
- import { Summary } from "@hpcc-js/chart";
15
-
16
- new Summary()
17
- .target("placeholder")
18
- .columns(["Summary", "Score"])
19
- .data([
20
- ["Cars", 128]
21
- ])
22
- .labelColumn("Summary")
23
- .valueColumn("Score")
24
- .render()
25
- ;
26
- </script>
27
- </hpcc-vitepress>
28
- </ClientOnly>
29
-
30
- _icon_ can be set to an empty string to prevent the default icon from displaying.
31
-
32
- _hideMoreWrapper_ can hide the 'more info' section.
33
-
34
- _textFontSize_ can be used to set the label font size.
35
-
36
- _headerFontSize_ can be used to set the value font size.
37
-
38
- <ClientOnly>
39
- <hpcc-vitepress style="width:100%;height:600px">
40
- <div id="placeholder" style="height:400px">
41
- </div>
42
- <script type="module">
43
- import { Summary } from "@hpcc-js/chart";
44
-
45
- new Summary()
46
- .target("placeholder")
47
- .columns(["Summary", "Score"])
48
- .data([
49
- ["Cars", 128]
50
- ])
51
- .labelColumn("Summary")
52
- .valueColumn("Score")
53
- .icon("")
54
- .hideMoreWrapper(true)
55
- .headerFontSize(120)
56
- .textFontSize(20)
57
- .render()
58
- ;
59
- </script>
60
- </hpcc-vitepress>
61
- </ClientOnly>
62
-
63
- _icon_ can also be used to specify a class to be given to the icon's html element. In the example below a FontAwesome class is assigned.
64
-
65
- _colorFill_ sets the background color.
66
-
67
- _colorStroke_ sets the text and icon color.
68
-
69
- <ClientOnly>
70
- <hpcc-vitepress style="width:100%;height:600px">
71
- <div id="placeholder" style="height:400px">
72
- </div>
73
- <script type="module">
74
- import { Summary } from "@hpcc-js/chart";
75
-
76
- new Summary()
77
- .target("placeholder")
78
- .columns(["Summary", "Score"])
79
- .data([
80
- ["Users", 256]
81
- ])
82
- .labelColumn("Summary")
83
- .valueColumn("Score")
84
- .icon("fa-users")
85
- .colorFill("#eeeeee")
86
- .colorStroke("#30336b")
87
- .hideMoreWrapper(true)
88
- .render()
89
- ;
90
- </script>
91
- </hpcc-vitepress>
92
- </ClientOnly>
93
-
94
- _moreIcon_ can be used to specify a class to be given to the 'more info' icon's html element. In the example below a FontAwesome class is assigned.
95
-
96
- _moreText_ can be used to specify content for the 'more info' section.
97
-
98
- <ClientOnly>
99
- <hpcc-vitepress style="width:100%;height:600px">
100
- <div id="placeholder" style="height:400px">
101
- </div>
102
- <script type="module">
103
- import { Summary } from "@hpcc-js/chart";
104
-
105
- new Summary()
106
- .target("placeholder")
107
- .columns(["Summary", "Score"])
108
- .data([
109
- ["Users", 256]
110
- ])
111
- .labelColumn("Summary")
112
- .valueColumn("Score")
113
- .icon("fa-users")
114
- .colorFill("#eeeeee")
115
- .colorStroke("#30336b")
116
- .moreIcon("fa-user-md")
117
- .moreText("32 doctors")
118
- .render()
119
- ;
120
- </script>
121
- </hpcc-vitepress>
122
- </ClientOnly>
123
-
124
- _moreIcon_ can also be set to an empty string to prevent the default icon from displaying.
125
-
126
- If _moreTextHTML_ is set to _true_ then the content within _moreText_ will be rendered as HTML.
127
-
128
- <ClientOnly>
129
- <hpcc-vitepress style="width:100%;height:600px">
130
- <div id="placeholder" style="height:400px">
131
- </div>
132
- <script type="module">
133
- import { Summary } from "@hpcc-js/chart";
134
-
135
- new Summary()
136
- .target("placeholder")
137
- .columns(["Summary", "Score"])
138
- .data([
139
- ["Tweets", 512]
140
- ])
141
- .labelColumn("Summary")
142
- .valueColumn("Score")
143
- .icon("fa-twitter")
144
- .colorFill("#eeeeee")
145
- .colorStroke("#30336b")
146
- .moreIcon("")
147
- .moreText("<button onclick=\"alert('More info here')\">Click for more info</button>")
148
- .moreTextHTML(true)
149
- .render()
150
- ;
151
- </script>
152
- </hpcc-vitepress>
153
- </ClientOnly>
154
-
155
- _playInterval_ can be used to cycle through multiple data rows. In the below example the play interval is set to 2000 milliseconds (two seconds).
156
-
157
- <ClientOnly>
158
- <hpcc-vitepress style="width:100%;height:600px">
159
- <div id="placeholder" style="height:400px">
160
- </div>
161
- <script type="module">
162
- import { Summary } from "@hpcc-js/chart";
163
-
164
- new Summary()
165
- .target("placeholder")
166
- .columns(["Summary", "Score"])
167
- .data([
168
- ["Cars", 128],
169
- ["Trucks", 64]
170
- ])
171
- .labelColumn("Summary")
172
- .valueColumn("Score")
173
- .icon("")
174
- .hideMoreWrapper(true)
175
- .headerFontSize(120)
176
- .textFontSize(20)
177
- .playInterval(2000)
178
- .render()
179
- ;
180
- </script>
181
- </hpcc-vitepress>
182
- </ClientOnly>
183
-
184
- _iconColumn_, _moreIconColumn_, _moreTextColumn_, _colorFillColumn_ and _colorStrokeColumn_ can be set to designate data row columns for these properties. This allows the properties to change for each data row.
185
-
186
- <ClientOnly>
187
- <hpcc-vitepress style="width:100%;height:600px">
188
- <div id="placeholder" style="height:400px">
189
- </div>
190
- <script type="module">
191
- import { Summary } from "@hpcc-js/chart";
192
-
193
- new Summary()
194
- .target("placeholder")
195
- .columns(["Summary", "Score", "Icon", "MoreIcon", "Details", "Background", "TextColor"])
196
- .data([
197
- ["Cars", 128, "fa-automobile", "fa-truck", "64 Trucks", "grey", "black"],
198
- ["Cold days", 256, "fa-thermometer-empty", "fa-thermometer", "16 Hot days", "#30336b", "white"]
199
- ])
200
- .labelColumn("Summary")
201
- .valueColumn("Score")
202
- .iconColumn("Icon")
203
- .moreTextColumn("Details")
204
- .moreIconColumn("MoreIcon")
205
- .colorFillColumn("Background")
206
- .colorStrokeColumn("TextColor")
207
- .playInterval(2000)
208
- .render()
209
- ;
210
- </script>
211
- </hpcc-vitepress>
212
- </ClientOnly>
213
-
214
- ## API
215
-
216
- ## Published Properties
217
-
218
- ```@hpcc-js/chart:Summary
219
- ```
1
+ # Summary
2
+
3
+ <!--meta
4
+
5
+ -->
6
+
7
+ Summary is commonly used to emphasize significant data points within a dashboard. It requires _labelColumn_ and _valueColumn_ to be specified.
8
+
9
+ <ClientOnly>
10
+ <hpcc-vitepress style="width:100%;height:600px">
11
+ <div id="placeholder" style="height:400px">
12
+ </div>
13
+ <script type="module">
14
+ import { Summary } from "@hpcc-js/chart";
15
+
16
+ new Summary()
17
+ .target("placeholder")
18
+ .columns(["Summary", "Score"])
19
+ .data([
20
+ ["Cars", 128]
21
+ ])
22
+ .labelColumn("Summary")
23
+ .valueColumn("Score")
24
+ .render()
25
+ ;
26
+ </script>
27
+ </hpcc-vitepress>
28
+ </ClientOnly>
29
+
30
+ _icon_ can be set to an empty string to prevent the default icon from displaying.
31
+
32
+ _hideMoreWrapper_ can hide the 'more info' section.
33
+
34
+ _textFontSize_ can be used to set the label font size.
35
+
36
+ _headerFontSize_ can be used to set the value font size.
37
+
38
+ <ClientOnly>
39
+ <hpcc-vitepress style="width:100%;height:600px">
40
+ <div id="placeholder" style="height:400px">
41
+ </div>
42
+ <script type="module">
43
+ import { Summary } from "@hpcc-js/chart";
44
+
45
+ new Summary()
46
+ .target("placeholder")
47
+ .columns(["Summary", "Score"])
48
+ .data([
49
+ ["Cars", 128]
50
+ ])
51
+ .labelColumn("Summary")
52
+ .valueColumn("Score")
53
+ .icon("")
54
+ .hideMoreWrapper(true)
55
+ .headerFontSize(120)
56
+ .textFontSize(20)
57
+ .render()
58
+ ;
59
+ </script>
60
+ </hpcc-vitepress>
61
+ </ClientOnly>
62
+
63
+ _icon_ can also be used to specify a class to be given to the icon's html element. In the example below a FontAwesome class is assigned.
64
+
65
+ _colorFill_ sets the background color.
66
+
67
+ _colorStroke_ sets the text and icon color.
68
+
69
+ <ClientOnly>
70
+ <hpcc-vitepress style="width:100%;height:600px">
71
+ <div id="placeholder" style="height:400px">
72
+ </div>
73
+ <script type="module">
74
+ import { Summary } from "@hpcc-js/chart";
75
+
76
+ new Summary()
77
+ .target("placeholder")
78
+ .columns(["Summary", "Score"])
79
+ .data([
80
+ ["Users", 256]
81
+ ])
82
+ .labelColumn("Summary")
83
+ .valueColumn("Score")
84
+ .icon("fa-users")
85
+ .colorFill("#eeeeee")
86
+ .colorStroke("#30336b")
87
+ .hideMoreWrapper(true)
88
+ .render()
89
+ ;
90
+ </script>
91
+ </hpcc-vitepress>
92
+ </ClientOnly>
93
+
94
+ _moreIcon_ can be used to specify a class to be given to the 'more info' icon's html element. In the example below a FontAwesome class is assigned.
95
+
96
+ _moreText_ can be used to specify content for the 'more info' section.
97
+
98
+ <ClientOnly>
99
+ <hpcc-vitepress style="width:100%;height:600px">
100
+ <div id="placeholder" style="height:400px">
101
+ </div>
102
+ <script type="module">
103
+ import { Summary } from "@hpcc-js/chart";
104
+
105
+ new Summary()
106
+ .target("placeholder")
107
+ .columns(["Summary", "Score"])
108
+ .data([
109
+ ["Users", 256]
110
+ ])
111
+ .labelColumn("Summary")
112
+ .valueColumn("Score")
113
+ .icon("fa-users")
114
+ .colorFill("#eeeeee")
115
+ .colorStroke("#30336b")
116
+ .moreIcon("fa-user-md")
117
+ .moreText("32 doctors")
118
+ .render()
119
+ ;
120
+ </script>
121
+ </hpcc-vitepress>
122
+ </ClientOnly>
123
+
124
+ _moreIcon_ can also be set to an empty string to prevent the default icon from displaying.
125
+
126
+ If _moreTextHTML_ is set to _true_ then the content within _moreText_ will be rendered as HTML.
127
+
128
+ <ClientOnly>
129
+ <hpcc-vitepress style="width:100%;height:600px">
130
+ <div id="placeholder" style="height:400px">
131
+ </div>
132
+ <script type="module">
133
+ import { Summary } from "@hpcc-js/chart";
134
+
135
+ new Summary()
136
+ .target("placeholder")
137
+ .columns(["Summary", "Score"])
138
+ .data([
139
+ ["Tweets", 512]
140
+ ])
141
+ .labelColumn("Summary")
142
+ .valueColumn("Score")
143
+ .icon("fa-twitter")
144
+ .colorFill("#eeeeee")
145
+ .colorStroke("#30336b")
146
+ .moreIcon("")
147
+ .moreText("<button onclick=\"alert('More info here')\">Click for more info</button>")
148
+ .moreTextHTML(true)
149
+ .render()
150
+ ;
151
+ </script>
152
+ </hpcc-vitepress>
153
+ </ClientOnly>
154
+
155
+ _playInterval_ can be used to cycle through multiple data rows. In the below example the play interval is set to 2000 milliseconds (two seconds).
156
+
157
+ <ClientOnly>
158
+ <hpcc-vitepress style="width:100%;height:600px">
159
+ <div id="placeholder" style="height:400px">
160
+ </div>
161
+ <script type="module">
162
+ import { Summary } from "@hpcc-js/chart";
163
+
164
+ new Summary()
165
+ .target("placeholder")
166
+ .columns(["Summary", "Score"])
167
+ .data([
168
+ ["Cars", 128],
169
+ ["Trucks", 64]
170
+ ])
171
+ .labelColumn("Summary")
172
+ .valueColumn("Score")
173
+ .icon("")
174
+ .hideMoreWrapper(true)
175
+ .headerFontSize(120)
176
+ .textFontSize(20)
177
+ .playInterval(2000)
178
+ .render()
179
+ ;
180
+ </script>
181
+ </hpcc-vitepress>
182
+ </ClientOnly>
183
+
184
+ _iconColumn_, _moreIconColumn_, _moreTextColumn_, _colorFillColumn_ and _colorStrokeColumn_ can be set to designate data row columns for these properties. This allows the properties to change for each data row.
185
+
186
+ <ClientOnly>
187
+ <hpcc-vitepress style="width:100%;height:600px">
188
+ <div id="placeholder" style="height:400px">
189
+ </div>
190
+ <script type="module">
191
+ import { Summary } from "@hpcc-js/chart";
192
+
193
+ new Summary()
194
+ .target("placeholder")
195
+ .columns(["Summary", "Score", "Icon", "MoreIcon", "Details", "Background", "TextColor"])
196
+ .data([
197
+ ["Cars", 128, "fa-automobile", "fa-truck", "64 Trucks", "grey", "black"],
198
+ ["Cold days", 256, "fa-thermometer-empty", "fa-thermometer", "16 Hot days", "#30336b", "white"]
199
+ ])
200
+ .labelColumn("Summary")
201
+ .valueColumn("Score")
202
+ .iconColumn("Icon")
203
+ .moreTextColumn("Details")
204
+ .moreIconColumn("MoreIcon")
205
+ .colorFillColumn("Background")
206
+ .colorStrokeColumn("TextColor")
207
+ .playInterval(2000)
208
+ .render()
209
+ ;
210
+ </script>
211
+ </hpcc-vitepress>
212
+ </ClientOnly>
213
+
214
+ ## API
215
+
216
+ ## Published Properties
217
+
218
+ ```@hpcc-js/chart:Summary
219
+ ```