@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/Step.md CHANGED
@@ -1,163 +1,163 @@
1
- # Step
2
-
3
- <!--meta
4
-
5
- -->
6
-
7
- Step, [Area](./Area.md), [Line](./Line.md) and [Scatter](./Scatter.md) serve a similar purpose. They display continuous data along a categorical or continuous axis.
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 { Step } from "@hpcc-js/chart";
15
-
16
- new Step()
17
- .target("placeholder")
18
- .columns(["Category", "Value"])
19
- .data([
20
- ["A", 34],
21
- ["B", 55],
22
- ["C", 89],
23
- ["D", 144]
24
- ])
25
- .render()
26
- ;
27
- </script>
28
- </hpcc-vitepress>
29
- </ClientOnly>
30
-
31
- Step supports n-number of numeric values per data row. A series is created for each column as needed.
32
-
33
- <ClientOnly>
34
- <hpcc-vitepress style="width:100%;height:600px">
35
- <div id="placeholder" style="height:400px">
36
- </div>
37
- <script type="module">
38
- import { Step } from "@hpcc-js/chart";
39
-
40
- new Step()
41
- .target("placeholder")
42
- .columns(["Category", "Value 1", "Value 2", "Value 3"])
43
- .data([
44
- ["A", 34, 90, 82],
45
- ["B", 55, 50, 65],
46
- ["C", 89, 75, 43],
47
- ["D", 144, 66, 56]
48
- ])
49
- .render()
50
- ;
51
- </script>
52
- </hpcc-vitepress>
53
- </ClientOnly>
54
-
55
- _pointShape_ can be used to specify the shape of each data point (see the property list below for potential values).
56
-
57
- _pointSize_ can be used to set the size of each data point's shape.
58
-
59
- _showValue_ specifies whether or not to display the value above each data point.
60
-
61
- _yAxisDomainPadding_ can be used to reserve a percentage of the top and bottom edges for white space.
62
-
63
- <ClientOnly>
64
- <hpcc-vitepress style="width:100%;height:600px">
65
- <div id="placeholder" style="height:400px">
66
- </div>
67
- <script type="module">
68
- import { Step } from "@hpcc-js/chart";
69
-
70
- new Step()
71
- .target("placeholder")
72
- .columns(["Category", "Value", "Value 2"])
73
- .data([
74
- ["A", 34, 350],
75
- ["B", 55, 380],
76
- ["C", 89, 390],
77
- ["D", 98, 410]
78
- ])
79
- .pointShape("circle")
80
- .pointSize(2)
81
- .showValue(true)
82
- .yAxisDomainPadding(10)
83
- .render()
84
- ;
85
- </script>
86
- </hpcc-vitepress>
87
- </ClientOnly>
88
-
89
- _interpolate_ can be used to specify which line interpolation mode is used to draw the connecting line between data points (see the property list below for potential values).
90
-
91
- _pointDarken_ can be set to 'false' to disable the slight darkening effect applied to each data point.
92
-
93
- _showValue_ along with _valueBaseline("central")_ places the values at the center of each data point.
94
-
95
- _xAxisDomainPadding_ can be used to reserve a percentage of the left and right edges for white space.
96
-
97
- <ClientOnly>
98
- <hpcc-vitepress style="width:100%;height:600px">
99
- <div id="placeholder" style="height:400px">
100
- </div>
101
- <script type="module">
102
- import { Step } from "@hpcc-js/chart";
103
-
104
- new Step()
105
- .target("placeholder")
106
- .columns(["Value 1", "Value 2"])
107
- .data([
108
- [144, 90],
109
- [89, 50],
110
- [55, 75],
111
- [34, 66]
112
- ])
113
- .paletteID("FlatUI_German")
114
- .xAxisType("linear")
115
- .pointShape("rectangle")
116
- .pointSize(20)
117
- .pointDarken(false)
118
- .showValue(true)
119
- .valueBaseline("central")
120
- .xAxisDomainPadding(5)
121
- .render()
122
- ;
123
- </script>
124
- </hpcc-vitepress>
125
- </ClientOnly>
126
-
127
- For documentation on axis-specific properties, like those used in the below example, take a look at the [Axis Documentation](./XYAxis.md).
128
-
129
- <ClientOnly>
130
- <hpcc-vitepress style="width:100%;height:600px">
131
- <div id="placeholder" style="height:400px">
132
- </div>
133
- <script type="module">
134
- import { Step } from "@hpcc-js/chart";
135
-
136
- new Step()
137
- .target("placeholder")
138
- .columns(["Value 1", "Value 2"])
139
- .data([
140
- [144, 90],
141
- [89, 50],
142
- [55, 75],
143
- [34, 66]
144
- ])
145
- .xAxisType("linear")
146
- .xAxisTitle("X-Axis Title")
147
- .yAxisTitle("Y-Axis Title")
148
- .xAxisTickCount(30)
149
- .xAxisOverlapMode("rotate")
150
- .xAxisLabelRotation(90)
151
- .pointShape("circle")
152
- .render()
153
- ;
154
- </script>
155
- </hpcc-vitepress>
156
- </ClientOnly>
157
-
158
- ## API
159
-
160
- ## Published Properties
161
-
162
- ```@hpcc-js/chart:Step
163
- ```
1
+ # Step
2
+
3
+ <!--meta
4
+
5
+ -->
6
+
7
+ Step, [Area](./Area.md), [Line](./Line.md) and [Scatter](./Scatter.md) serve a similar purpose. They display continuous data along a categorical or continuous axis.
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 { Step } from "@hpcc-js/chart";
15
+
16
+ new Step()
17
+ .target("placeholder")
18
+ .columns(["Category", "Value"])
19
+ .data([
20
+ ["A", 34],
21
+ ["B", 55],
22
+ ["C", 89],
23
+ ["D", 144]
24
+ ])
25
+ .render()
26
+ ;
27
+ </script>
28
+ </hpcc-vitepress>
29
+ </ClientOnly>
30
+
31
+ Step supports n-number of numeric values per data row. A series is created for each column as needed.
32
+
33
+ <ClientOnly>
34
+ <hpcc-vitepress style="width:100%;height:600px">
35
+ <div id="placeholder" style="height:400px">
36
+ </div>
37
+ <script type="module">
38
+ import { Step } from "@hpcc-js/chart";
39
+
40
+ new Step()
41
+ .target("placeholder")
42
+ .columns(["Category", "Value 1", "Value 2", "Value 3"])
43
+ .data([
44
+ ["A", 34, 90, 82],
45
+ ["B", 55, 50, 65],
46
+ ["C", 89, 75, 43],
47
+ ["D", 144, 66, 56]
48
+ ])
49
+ .render()
50
+ ;
51
+ </script>
52
+ </hpcc-vitepress>
53
+ </ClientOnly>
54
+
55
+ _pointShape_ can be used to specify the shape of each data point (see the property list below for potential values).
56
+
57
+ _pointSize_ can be used to set the size of each data point's shape.
58
+
59
+ _showValue_ specifies whether or not to display the value above each data point.
60
+
61
+ _yAxisDomainPadding_ can be used to reserve a percentage of the top and bottom edges for white space.
62
+
63
+ <ClientOnly>
64
+ <hpcc-vitepress style="width:100%;height:600px">
65
+ <div id="placeholder" style="height:400px">
66
+ </div>
67
+ <script type="module">
68
+ import { Step } from "@hpcc-js/chart";
69
+
70
+ new Step()
71
+ .target("placeholder")
72
+ .columns(["Category", "Value", "Value 2"])
73
+ .data([
74
+ ["A", 34, 350],
75
+ ["B", 55, 380],
76
+ ["C", 89, 390],
77
+ ["D", 98, 410]
78
+ ])
79
+ .pointShape("circle")
80
+ .pointSize(2)
81
+ .showValue(true)
82
+ .yAxisDomainPadding(10)
83
+ .render()
84
+ ;
85
+ </script>
86
+ </hpcc-vitepress>
87
+ </ClientOnly>
88
+
89
+ _interpolate_ can be used to specify which line interpolation mode is used to draw the connecting line between data points (see the property list below for potential values).
90
+
91
+ _pointDarken_ can be set to 'false' to disable the slight darkening effect applied to each data point.
92
+
93
+ _showValue_ along with _valueBaseline("central")_ places the values at the center of each data point.
94
+
95
+ _xAxisDomainPadding_ can be used to reserve a percentage of the left and right edges for white space.
96
+
97
+ <ClientOnly>
98
+ <hpcc-vitepress style="width:100%;height:600px">
99
+ <div id="placeholder" style="height:400px">
100
+ </div>
101
+ <script type="module">
102
+ import { Step } from "@hpcc-js/chart";
103
+
104
+ new Step()
105
+ .target("placeholder")
106
+ .columns(["Value 1", "Value 2"])
107
+ .data([
108
+ [144, 90],
109
+ [89, 50],
110
+ [55, 75],
111
+ [34, 66]
112
+ ])
113
+ .paletteID("FlatUI_German")
114
+ .xAxisType("linear")
115
+ .pointShape("rectangle")
116
+ .pointSize(20)
117
+ .pointDarken(false)
118
+ .showValue(true)
119
+ .valueBaseline("central")
120
+ .xAxisDomainPadding(5)
121
+ .render()
122
+ ;
123
+ </script>
124
+ </hpcc-vitepress>
125
+ </ClientOnly>
126
+
127
+ For documentation on axis-specific properties, like those used in the below example, take a look at the [Axis Documentation](./XYAxis.md).
128
+
129
+ <ClientOnly>
130
+ <hpcc-vitepress style="width:100%;height:600px">
131
+ <div id="placeholder" style="height:400px">
132
+ </div>
133
+ <script type="module">
134
+ import { Step } from "@hpcc-js/chart";
135
+
136
+ new Step()
137
+ .target("placeholder")
138
+ .columns(["Value 1", "Value 2"])
139
+ .data([
140
+ [144, 90],
141
+ [89, 50],
142
+ [55, 75],
143
+ [34, 66]
144
+ ])
145
+ .xAxisType("linear")
146
+ .xAxisTitle("X-Axis Title")
147
+ .yAxisTitle("Y-Axis Title")
148
+ .xAxisTickCount(30)
149
+ .xAxisOverlapMode("rotate")
150
+ .xAxisLabelRotation(90)
151
+ .pointShape("circle")
152
+ .render()
153
+ ;
154
+ </script>
155
+ </hpcc-vitepress>
156
+ </ClientOnly>
157
+
158
+ ## API
159
+
160
+ ## Published Properties
161
+
162
+ ```@hpcc-js/chart:Step
163
+ ```
package/src/Step.ts CHANGED
@@ -1,12 +1,12 @@
1
- import { Scatter } from "./Scatter";
2
-
3
- export class Step extends Scatter {
4
- constructor() {
5
- super();
6
-
7
- this
8
- .interpolate_default("step")
9
- ;
10
- }
11
- }
12
- Step.prototype._class += " chart_Step";
1
+ import { Scatter } from "./Scatter";
2
+
3
+ export class Step extends Scatter {
4
+ constructor() {
5
+ super();
6
+
7
+ this
8
+ .interpolate_default("step")
9
+ ;
10
+ }
11
+ }
12
+ Step.prototype._class += " chart_Step";
package/src/Summary.css CHANGED
@@ -1,56 +1,56 @@
1
- .chart_Summary {
2
- width: 225px;
3
- height: 150px;
4
- font-size: 14px;
5
- }
6
-
7
- .chart_Summary .content h2 {
8
- font-weight: bold;
9
- font-size: 3em;
10
- margin-left: 10px;
11
- margin-top: 10px;
12
- margin-bottom: 10px;
13
- }
14
-
15
- .chart_Summary .bgIcon:before {
16
- position: absolute;
17
- font-family: FontAwesome;
18
- font-size: 5.5em;
19
- opacity: 0.4;
20
- top: 0.5em;
21
- right: 15px;
22
- }
23
-
24
- .chart_Summary .bgIcon {
25
- position: relative;
26
- }
27
-
28
- .chart_Summary .content {
29
- float: left;
30
- width: 100%;
31
- height: 100%;
32
- background-color: #efd752;
33
- }
34
-
35
- .chart_Summary .content div {
36
- margin-top: -1.1em;
37
- font-size: 1.1em;
38
- opacity: 0.8;
39
- }
40
-
41
- .chart_Summary .content .text {
42
- padding-left: 10px;
43
- }
44
-
45
- .chart_Summary .content .more {
46
- position: absolute;
47
- bottom:0px;
48
- width: 100%;
49
- height: 3em;
50
- line-height: 3em;
51
- }
52
-
53
- .chart_Summary .content .more i {
54
- padding-left: 10px;
55
- padding-right: 0.5em;
56
- }
1
+ .chart_Summary {
2
+ width: 225px;
3
+ height: 150px;
4
+ font-size: 14px;
5
+ }
6
+
7
+ .chart_Summary .content h2 {
8
+ font-weight: bold;
9
+ font-size: 3em;
10
+ margin-left: 10px;
11
+ margin-top: 10px;
12
+ margin-bottom: 10px;
13
+ }
14
+
15
+ .chart_Summary .bgIcon:before {
16
+ position: absolute;
17
+ font-family: FontAwesome;
18
+ font-size: 5.5em;
19
+ opacity: 0.4;
20
+ top: 0.5em;
21
+ right: 15px;
22
+ }
23
+
24
+ .chart_Summary .bgIcon {
25
+ position: relative;
26
+ }
27
+
28
+ .chart_Summary .content {
29
+ float: left;
30
+ width: 100%;
31
+ height: 100%;
32
+ background-color: #efd752;
33
+ }
34
+
35
+ .chart_Summary .content div {
36
+ margin-top: -1.1em;
37
+ font-size: 1.1em;
38
+ opacity: 0.8;
39
+ }
40
+
41
+ .chart_Summary .content .text {
42
+ padding-left: 10px;
43
+ }
44
+
45
+ .chart_Summary .content .more {
46
+ position: absolute;
47
+ bottom:0px;
48
+ width: 100%;
49
+ height: 3em;
50
+ line-height: 3em;
51
+ }
52
+
53
+ .chart_Summary .content .more i {
54
+ padding-left: 10px;
55
+ padding-right: 0.5em;
56
+ }