@hpcc-js/chart 2.86.2 → 2.86.3

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 (78) hide show
  1. package/LICENSE +43 -43
  2. package/README.md +93 -93
  3. package/dist/index.es6.js.map +1 -1
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.min.js.map +1 -1
  6. package/package.json +6 -6
  7. package/src/Area.md +176 -176
  8. package/src/Area.ts +12 -12
  9. package/src/Axis.css +34 -34
  10. package/src/Axis.ts +733 -733
  11. package/src/Bar.md +90 -90
  12. package/src/Bar.ts +9 -9
  13. package/src/Bubble.css +16 -16
  14. package/src/Bubble.md +69 -69
  15. package/src/Bubble.ts +191 -191
  16. package/src/BubbleXY.ts +14 -14
  17. package/src/Bullet.css +60 -60
  18. package/src/Bullet.md +104 -104
  19. package/src/Bullet.ts +167 -167
  20. package/src/Column.css +17 -17
  21. package/src/Column.md +90 -90
  22. package/src/Column.ts +659 -659
  23. package/src/Contour.md +88 -88
  24. package/src/Contour.ts +97 -97
  25. package/src/D3Cloud.ts +400 -400
  26. package/src/Gantt.md +119 -119
  27. package/src/Gantt.ts +14 -14
  28. package/src/Gauge.md +148 -148
  29. package/src/Gauge.ts +358 -358
  30. package/src/HalfPie.md +62 -62
  31. package/src/HalfPie.ts +26 -26
  32. package/src/Heat.md +42 -42
  33. package/src/Heat.ts +283 -283
  34. package/src/HexBin.css +9 -9
  35. package/src/HexBin.md +88 -88
  36. package/src/HexBin.ts +139 -139
  37. package/src/Line.css +6 -6
  38. package/src/Line.md +170 -170
  39. package/src/Line.ts +14 -14
  40. package/src/Pie.css +23 -23
  41. package/src/Pie.md +88 -88
  42. package/src/Pie.ts +503 -503
  43. package/src/QuarterPie.md +61 -61
  44. package/src/QuarterPie.ts +35 -35
  45. package/src/QuartileCandlestick.md +129 -129
  46. package/src/QuartileCandlestick.ts +349 -349
  47. package/src/Radar.css +15 -15
  48. package/src/Radar.md +104 -104
  49. package/src/Radar.ts +336 -336
  50. package/src/RadialBar.css +25 -25
  51. package/src/RadialBar.md +91 -91
  52. package/src/RadialBar.ts +212 -212
  53. package/src/Scatter.css +16 -16
  54. package/src/Scatter.md +163 -163
  55. package/src/Scatter.ts +376 -376
  56. package/src/StatChart.md +117 -117
  57. package/src/StatChart.ts +253 -253
  58. package/src/Step.md +163 -163
  59. package/src/Step.ts +12 -12
  60. package/src/Summary.css +56 -56
  61. package/src/Summary.md +219 -219
  62. package/src/Summary.ts +322 -322
  63. package/src/SummaryC.md +154 -154
  64. package/src/SummaryC.ts +240 -240
  65. package/src/WordCloud.css +3 -3
  66. package/src/WordCloud.md +144 -144
  67. package/src/WordCloud.ts +263 -263
  68. package/src/XYAxis.css +41 -41
  69. package/src/XYAxis.md +149 -149
  70. package/src/XYAxis.ts +803 -803
  71. package/src/__package__.ts +3 -3
  72. package/src/__tests__/heat.ts +71 -71
  73. package/src/__tests__/index.ts +3 -3
  74. package/src/__tests__/pie.ts +20 -20
  75. package/src/__tests__/stat.ts +16 -16
  76. package/src/__tests__/test3.ts +69 -69
  77. package/src/index.ts +27 -27
  78. package/src/test.ts +71 -71
package/src/WordCloud.md CHANGED
@@ -1,144 +1,144 @@
1
- # WordCloud
2
-
3
- <!--meta
4
-
5
- -->
6
-
7
- A word cloud chart displays words with prominence relative to the word’s given weight. The larger the weight value, relative to the other word weights, the bigger it appears in the word cloud.
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 { WordCloud } from "@hpcc-js/chart";
15
-
16
- new WordCloud()
17
- .target("placeholder")
18
- .columns(["Category", "Value"])
19
- .data([
20
- ["Apples", 34],
21
- ["Bananas", 55],
22
- ["Carrots", 89],
23
- ["Danishes", 144],
24
- ["Eggs", 60],
25
- ["Figs", 72],
26
- ["Ginger", 92],
27
- ["Hazelnut", 102],
28
- ["Incaberries", 52],
29
- ["Jambalaya", 42],
30
- ])
31
- .render()
32
- ;
33
- </script>
34
- </hpcc-vitepress>
35
- </ClientOnly>
36
-
37
- Use _fontFamily_ to set the font family. _fontSizeFrom_ and _fontSizeTo_ can be used to control the range of font sizes from the minimum word weight to the maximum word weight.
38
-
39
- <ClientOnly>
40
- <hpcc-vitepress style="width:100%;height:600px">
41
- <div id="placeholder" style="height:400px">
42
- </div>
43
- <script type="module">
44
- import { WordCloud } from "@hpcc-js/chart";
45
-
46
- new WordCloud()
47
- .target("placeholder")
48
- .columns(["Category", "Value"])
49
- .data([
50
- ["Apples", 34],
51
- ["Bananas", 55],
52
- ["Carrots", 89],
53
- ["Danishes", 144],
54
- ["Eggs", 60],
55
- ["Figs", 72],
56
- ["Ginger", 92],
57
- ["Hazelnut", 102],
58
- ["Incaberries", 52],
59
- ["Jambalaya", 42],
60
- ])
61
- .fontFamily("Chilanka")
62
- .fontSizeFrom(12)
63
- .fontSizeTo(24)
64
- .render()
65
- ;
66
- </script>
67
- </hpcc-vitepress>
68
- </ClientOnly>
69
-
70
- The rotation of the words are not bound to their weight. Use _angleFrom_ and _angleTo_ to set the minimum and maximum assigned angles. Use _angleCount_ to set the number of potential angles.
71
-
72
- <ClientOnly>
73
- <hpcc-vitepress style="width:100%;height:600px">
74
- <div id="placeholder" style="height:400px">
75
- </div>
76
- <script type="module">
77
- import { WordCloud } from "@hpcc-js/chart";
78
-
79
- new WordCloud()
80
- .target("placeholder")
81
- .columns(["Category", "Value"])
82
- .data([
83
- ["Apples", 34],
84
- ["Bananas", 55],
85
- ["Carrots", 89],
86
- ["Danishes", 144],
87
- ["Eggs", 60],
88
- ["Figs", 72],
89
- ["Ginger", 92],
90
- ["Hazelnut", 102],
91
- ["Incaberries", 52],
92
- ["Jambalaya", 42],
93
- ])
94
- .angleFrom(90)
95
- .angleTo(0)
96
- .angleCount(2)
97
- .render()
98
- ;
99
- </script>
100
- </hpcc-vitepress>
101
- </ClientOnly>
102
-
103
- Below is an example with a single angle of 45 degrees and font sizes ranging from 18 to 28 pixels.
104
-
105
- <ClientOnly>
106
- <hpcc-vitepress style="width:100%;height:600px">
107
- <div id="placeholder" style="height:400px">
108
- </div>
109
- <script type="module">
110
- import { WordCloud } from "@hpcc-js/chart";
111
-
112
- new WordCloud()
113
- .target("placeholder")
114
- .columns(["Category", "Value"])
115
- .data([
116
- ["Apples", 34],
117
- ["Bananas", 55],
118
- ["Carrots", 89],
119
- ["Danishes", 144],
120
- ["Eggs", 60],
121
- ["Figs", 72],
122
- ["Ginger", 92],
123
- ["Hazelnut", 102],
124
- ["Incaberries", 52],
125
- ["Jambalaya", 42],
126
- ])
127
- .fontFamily("Chilanka")
128
- .angleFrom(45)
129
- .angleTo(45)
130
- .angleCount(1)
131
- .fontSizeFrom(18)
132
- .fontSizeTo(28)
133
- .render()
134
- ;
135
- </script>
136
- </hpcc-vitepress>
137
- </ClientOnly>
138
-
139
- ## API
140
-
141
- ## Published Properties
142
-
143
- ```@hpcc-js/chart:WordCloud
144
- ```
1
+ # WordCloud
2
+
3
+ <!--meta
4
+
5
+ -->
6
+
7
+ A word cloud chart displays words with prominence relative to the word’s given weight. The larger the weight value, relative to the other word weights, the bigger it appears in the word cloud.
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 { WordCloud } from "@hpcc-js/chart";
15
+
16
+ new WordCloud()
17
+ .target("placeholder")
18
+ .columns(["Category", "Value"])
19
+ .data([
20
+ ["Apples", 34],
21
+ ["Bananas", 55],
22
+ ["Carrots", 89],
23
+ ["Danishes", 144],
24
+ ["Eggs", 60],
25
+ ["Figs", 72],
26
+ ["Ginger", 92],
27
+ ["Hazelnut", 102],
28
+ ["Incaberries", 52],
29
+ ["Jambalaya", 42],
30
+ ])
31
+ .render()
32
+ ;
33
+ </script>
34
+ </hpcc-vitepress>
35
+ </ClientOnly>
36
+
37
+ Use _fontFamily_ to set the font family. _fontSizeFrom_ and _fontSizeTo_ can be used to control the range of font sizes from the minimum word weight to the maximum word weight.
38
+
39
+ <ClientOnly>
40
+ <hpcc-vitepress style="width:100%;height:600px">
41
+ <div id="placeholder" style="height:400px">
42
+ </div>
43
+ <script type="module">
44
+ import { WordCloud } from "@hpcc-js/chart";
45
+
46
+ new WordCloud()
47
+ .target("placeholder")
48
+ .columns(["Category", "Value"])
49
+ .data([
50
+ ["Apples", 34],
51
+ ["Bananas", 55],
52
+ ["Carrots", 89],
53
+ ["Danishes", 144],
54
+ ["Eggs", 60],
55
+ ["Figs", 72],
56
+ ["Ginger", 92],
57
+ ["Hazelnut", 102],
58
+ ["Incaberries", 52],
59
+ ["Jambalaya", 42],
60
+ ])
61
+ .fontFamily("Chilanka")
62
+ .fontSizeFrom(12)
63
+ .fontSizeTo(24)
64
+ .render()
65
+ ;
66
+ </script>
67
+ </hpcc-vitepress>
68
+ </ClientOnly>
69
+
70
+ The rotation of the words are not bound to their weight. Use _angleFrom_ and _angleTo_ to set the minimum and maximum assigned angles. Use _angleCount_ to set the number of potential angles.
71
+
72
+ <ClientOnly>
73
+ <hpcc-vitepress style="width:100%;height:600px">
74
+ <div id="placeholder" style="height:400px">
75
+ </div>
76
+ <script type="module">
77
+ import { WordCloud } from "@hpcc-js/chart";
78
+
79
+ new WordCloud()
80
+ .target("placeholder")
81
+ .columns(["Category", "Value"])
82
+ .data([
83
+ ["Apples", 34],
84
+ ["Bananas", 55],
85
+ ["Carrots", 89],
86
+ ["Danishes", 144],
87
+ ["Eggs", 60],
88
+ ["Figs", 72],
89
+ ["Ginger", 92],
90
+ ["Hazelnut", 102],
91
+ ["Incaberries", 52],
92
+ ["Jambalaya", 42],
93
+ ])
94
+ .angleFrom(90)
95
+ .angleTo(0)
96
+ .angleCount(2)
97
+ .render()
98
+ ;
99
+ </script>
100
+ </hpcc-vitepress>
101
+ </ClientOnly>
102
+
103
+ Below is an example with a single angle of 45 degrees and font sizes ranging from 18 to 28 pixels.
104
+
105
+ <ClientOnly>
106
+ <hpcc-vitepress style="width:100%;height:600px">
107
+ <div id="placeholder" style="height:400px">
108
+ </div>
109
+ <script type="module">
110
+ import { WordCloud } from "@hpcc-js/chart";
111
+
112
+ new WordCloud()
113
+ .target("placeholder")
114
+ .columns(["Category", "Value"])
115
+ .data([
116
+ ["Apples", 34],
117
+ ["Bananas", 55],
118
+ ["Carrots", 89],
119
+ ["Danishes", 144],
120
+ ["Eggs", 60],
121
+ ["Figs", 72],
122
+ ["Ginger", 92],
123
+ ["Hazelnut", 102],
124
+ ["Incaberries", 52],
125
+ ["Jambalaya", 42],
126
+ ])
127
+ .fontFamily("Chilanka")
128
+ .angleFrom(45)
129
+ .angleTo(45)
130
+ .angleCount(1)
131
+ .fontSizeFrom(18)
132
+ .fontSizeTo(28)
133
+ .render()
134
+ ;
135
+ </script>
136
+ </hpcc-vitepress>
137
+ </ClientOnly>
138
+
139
+ ## API
140
+
141
+ ## Published Properties
142
+
143
+ ```@hpcc-js/chart:WordCloud
144
+ ```