@hpcc-js/chart 2.86.3 → 2.86.4

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 (83) 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 +6 -6
  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-3.4/__package__.d.ts +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hpcc-js/chart",
3
- "version": "2.86.3",
3
+ "version": "2.86.4",
4
4
  "description": "hpcc-js - Viz Chart",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.es6",
@@ -38,13 +38,13 @@
38
38
  "update": "npx --yes npm-check-updates -u -t minor"
39
39
  },
40
40
  "dependencies": {
41
- "@hpcc-js/api": "^2.14.3",
42
- "@hpcc-js/common": "^2.73.3",
43
- "@hpcc-js/util": "^2.53.3"
41
+ "@hpcc-js/api": "^2.14.4",
42
+ "@hpcc-js/common": "^2.73.4",
43
+ "@hpcc-js/util": "^2.53.2"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@hpcc-js/bundle": "^2.12.0",
47
- "@hpcc-js/dataflow": "^9.6.3",
47
+ "@hpcc-js/dataflow": "^9.4.0",
48
48
  "@types/d3-shape": "1.3.12",
49
49
  "@types/d3-transition": "1.3.6",
50
50
  "d3-array": "^1",
@@ -79,5 +79,5 @@
79
79
  "url": "https://github.com/hpcc-systems/Visualization/issues"
80
80
  },
81
81
  "homepage": "https://github.com/hpcc-systems/Visualization",
82
- "gitHead": "0907b8d15d369c89483954a1d96e2247ba020cb6"
82
+ "gitHead": "67d7f21dc1fd77ed2b730c01ebaecb77b124f1a1"
83
83
  }
package/src/Area.md CHANGED
@@ -1,176 +1,176 @@
1
- # Area
2
-
3
- <!--meta
4
-
5
- -->
6
-
7
- Area, [Line](./Line.md), [Step](./Step.md) and [Scatter](./Scatter.md) serve a similar purpose. They display continuous data along a categorical or continuous axis.
8
-
9
-
10
- <ClientOnly>
11
- <hpcc-vitepress style="width:100%;height:600px">
12
- <div id="placeholder" style="height:400px">
13
- </div>
14
- <script type="module">
15
- import { Area } from "@hpcc-js/chart";
16
-
17
- new Area()
18
- .target("placeholder")
19
- .columns(["Category", "Value"])
20
- .data([
21
- ["A", 34],
22
- ["B", 55],
23
- ["C", 89],
24
- ["D", 144]
25
- ])
26
- .render()
27
- ;
28
- </script>
29
- </hpcc-vitepress>
30
- </ClientOnly>
31
-
32
-
33
- Area supports n-number of numeric values per data row. A series is created for each column as needed.
34
-
35
-
36
- <ClientOnly>
37
- <hpcc-vitepress style="width:100%;height:600px">
38
- <div id="placeholder" style="height:400px">
39
- </div>
40
- <script type="module">
41
- import { Area } from "@hpcc-js/chart";
42
-
43
- new Area()
44
- .target("placeholder")
45
- .columns(["Category", "Value 1", "Value 2", "Value 3"])
46
- .data([
47
- ["A", 34, 90, 82],
48
- ["B", 55, 50, 65],
49
- ["C", 89, 75, 43],
50
- ["D", 144, 66, 56]
51
- ])
52
- .render()
53
- ;
54
- </script>
55
- </hpcc-vitepress>
56
- </ClientOnly>
57
-
58
-
59
- _pointShape_ can be used to specify the shape of each data point (see the property list below for potential values).
60
-
61
- _pointSize_ can be used to set the size of each data point's shape.
62
-
63
- _showValue_ specifies whether or not to display the value above each data point.
64
-
65
- _yAxisDomainPadding_ can be used to reserve a percentage of the top and bottom edges for white space.
66
-
67
-
68
- <ClientOnly>
69
- <hpcc-vitepress style="width:100%;height:600px">
70
- <div id="placeholder" style="height:400px">
71
- </div>
72
- <script type="module">
73
- import { Area } from "@hpcc-js/chart";
74
-
75
- new Area()
76
- .target("placeholder")
77
- .columns(["Category", "Value", "Value 2"])
78
- .data([
79
- ["A", 34, 350],
80
- ["B", 55, 380],
81
- ["C", 89, 390],
82
- ["D", 98, 410]
83
- ])
84
- .pointShape("circle")
85
- .pointSize(2)
86
- .showValue(true)
87
- .yAxisDomainPadding(10)
88
- .render()
89
- ;
90
- </script>
91
- </hpcc-vitepress>
92
- </ClientOnly>
93
-
94
-
95
- _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).
96
-
97
- _pointDarken_ can be set to 'false' to disable the slight darkening effect applied to each data point.
98
-
99
- _showValue_ along with _valueBaseline("central")_ places the values at the center of each data point.
100
-
101
- _xAxisDomainPadding_ can be used to reserve a percentage of the left and right edges for white space.
102
-
103
-
104
- <ClientOnly>
105
- <hpcc-vitepress style="width:100%;height:600px">
106
- <div id="placeholder" style="height:400px">
107
- </div>
108
- <script type="module">
109
- import { Area } from "@hpcc-js/chart";
110
-
111
- new Area()
112
- .target("placeholder")
113
- .columns(["Value 1", "Value 2"])
114
- .data([
115
- [144, 90],
116
- [89, 50],
117
- [55, 75],
118
- [34, 66]
119
- ])
120
- .paletteID("FlatUI_German")
121
- .xAxisType("linear")
122
- .pointShape("rectangle")
123
- .pointSize(20)
124
- .pointDarken(false)
125
- .showValue(true)
126
- .valueBaseline("central")
127
- .xAxisDomainPadding(5)
128
- .render()
129
- ;
130
- </script>
131
- </hpcc-vitepress>
132
- </ClientOnly>
133
-
134
-
135
- For documentation on axis-specific properties, like those used in the below example, take a look at the [Axis Documentation](./XYAxis.md).
136
-
137
-
138
- <ClientOnly>
139
- <hpcc-vitepress style="width:100%;height:600px">
140
- <div id="placeholder" style="height:400px">
141
- </div>
142
- <script type="module">
143
- import { Area } from "@hpcc-js/chart";
144
-
145
- new Area()
146
- .target("placeholder")
147
- .columns(["Value 1", "Value 2"])
148
- .data([
149
- [144, 90],
150
- [89, 50],
151
- [55, 75],
152
- [34, 66]
153
- ])
154
- .xAxisType("linear")
155
- .xAxisTitle("X-Axis Title")
156
- .yAxisTitle("Y-Axis Title")
157
- .xAxisTickCount(30)
158
- .xAxisOverlapMode("rotate")
159
- .xAxisLabelRotation(90)
160
- .pointShape("circle")
161
- .render()
162
- ;
163
- </script>
164
- </hpcc-vitepress>
165
- </ClientOnly>
166
-
167
-
168
- ## API
169
-
170
- <!--meta:Area.target
171
-
172
- -->
173
-
174
- ## Published Properties
175
- ```@hpcc-js/chart:Area
176
- ```
1
+ # Area
2
+
3
+ <!--meta
4
+
5
+ -->
6
+
7
+ Area, [Line](./Line.md), [Step](./Step.md) and [Scatter](./Scatter.md) serve a similar purpose. They display continuous data along a categorical or continuous axis.
8
+
9
+
10
+ <ClientOnly>
11
+ <hpcc-vitepress style="width:100%;height:600px">
12
+ <div id="placeholder" style="height:400px">
13
+ </div>
14
+ <script type="module">
15
+ import { Area } from "@hpcc-js/chart";
16
+
17
+ new Area()
18
+ .target("placeholder")
19
+ .columns(["Category", "Value"])
20
+ .data([
21
+ ["A", 34],
22
+ ["B", 55],
23
+ ["C", 89],
24
+ ["D", 144]
25
+ ])
26
+ .render()
27
+ ;
28
+ </script>
29
+ </hpcc-vitepress>
30
+ </ClientOnly>
31
+
32
+
33
+ Area supports n-number of numeric values per data row. A series is created for each column as needed.
34
+
35
+
36
+ <ClientOnly>
37
+ <hpcc-vitepress style="width:100%;height:600px">
38
+ <div id="placeholder" style="height:400px">
39
+ </div>
40
+ <script type="module">
41
+ import { Area } from "@hpcc-js/chart";
42
+
43
+ new Area()
44
+ .target("placeholder")
45
+ .columns(["Category", "Value 1", "Value 2", "Value 3"])
46
+ .data([
47
+ ["A", 34, 90, 82],
48
+ ["B", 55, 50, 65],
49
+ ["C", 89, 75, 43],
50
+ ["D", 144, 66, 56]
51
+ ])
52
+ .render()
53
+ ;
54
+ </script>
55
+ </hpcc-vitepress>
56
+ </ClientOnly>
57
+
58
+
59
+ _pointShape_ can be used to specify the shape of each data point (see the property list below for potential values).
60
+
61
+ _pointSize_ can be used to set the size of each data point's shape.
62
+
63
+ _showValue_ specifies whether or not to display the value above each data point.
64
+
65
+ _yAxisDomainPadding_ can be used to reserve a percentage of the top and bottom edges for white space.
66
+
67
+
68
+ <ClientOnly>
69
+ <hpcc-vitepress style="width:100%;height:600px">
70
+ <div id="placeholder" style="height:400px">
71
+ </div>
72
+ <script type="module">
73
+ import { Area } from "@hpcc-js/chart";
74
+
75
+ new Area()
76
+ .target("placeholder")
77
+ .columns(["Category", "Value", "Value 2"])
78
+ .data([
79
+ ["A", 34, 350],
80
+ ["B", 55, 380],
81
+ ["C", 89, 390],
82
+ ["D", 98, 410]
83
+ ])
84
+ .pointShape("circle")
85
+ .pointSize(2)
86
+ .showValue(true)
87
+ .yAxisDomainPadding(10)
88
+ .render()
89
+ ;
90
+ </script>
91
+ </hpcc-vitepress>
92
+ </ClientOnly>
93
+
94
+
95
+ _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).
96
+
97
+ _pointDarken_ can be set to 'false' to disable the slight darkening effect applied to each data point.
98
+
99
+ _showValue_ along with _valueBaseline("central")_ places the values at the center of each data point.
100
+
101
+ _xAxisDomainPadding_ can be used to reserve a percentage of the left and right edges for white space.
102
+
103
+
104
+ <ClientOnly>
105
+ <hpcc-vitepress style="width:100%;height:600px">
106
+ <div id="placeholder" style="height:400px">
107
+ </div>
108
+ <script type="module">
109
+ import { Area } from "@hpcc-js/chart";
110
+
111
+ new Area()
112
+ .target("placeholder")
113
+ .columns(["Value 1", "Value 2"])
114
+ .data([
115
+ [144, 90],
116
+ [89, 50],
117
+ [55, 75],
118
+ [34, 66]
119
+ ])
120
+ .paletteID("FlatUI_German")
121
+ .xAxisType("linear")
122
+ .pointShape("rectangle")
123
+ .pointSize(20)
124
+ .pointDarken(false)
125
+ .showValue(true)
126
+ .valueBaseline("central")
127
+ .xAxisDomainPadding(5)
128
+ .render()
129
+ ;
130
+ </script>
131
+ </hpcc-vitepress>
132
+ </ClientOnly>
133
+
134
+
135
+ For documentation on axis-specific properties, like those used in the below example, take a look at the [Axis Documentation](./XYAxis.md).
136
+
137
+
138
+ <ClientOnly>
139
+ <hpcc-vitepress style="width:100%;height:600px">
140
+ <div id="placeholder" style="height:400px">
141
+ </div>
142
+ <script type="module">
143
+ import { Area } from "@hpcc-js/chart";
144
+
145
+ new Area()
146
+ .target("placeholder")
147
+ .columns(["Value 1", "Value 2"])
148
+ .data([
149
+ [144, 90],
150
+ [89, 50],
151
+ [55, 75],
152
+ [34, 66]
153
+ ])
154
+ .xAxisType("linear")
155
+ .xAxisTitle("X-Axis Title")
156
+ .yAxisTitle("Y-Axis Title")
157
+ .xAxisTickCount(30)
158
+ .xAxisOverlapMode("rotate")
159
+ .xAxisLabelRotation(90)
160
+ .pointShape("circle")
161
+ .render()
162
+ ;
163
+ </script>
164
+ </hpcc-vitepress>
165
+ </ClientOnly>
166
+
167
+
168
+ ## API
169
+
170
+ <!--meta:Area.target
171
+
172
+ -->
173
+
174
+ ## Published Properties
175
+ ```@hpcc-js/chart:Area
176
+ ```
package/src/Area.ts CHANGED
@@ -1,12 +1,12 @@
1
- import { Scatter } from "./Scatter";
2
-
3
- export class Area extends Scatter {
4
- constructor() {
5
- super();
6
- this
7
- .interpolate_default("linear")
8
- .interpolateFill_default(true)
9
- ;
10
- }
11
- }
12
- Area.prototype._class += " chart_Area";
1
+ import { Scatter } from "./Scatter";
2
+
3
+ export class Area extends Scatter {
4
+ constructor() {
5
+ super();
6
+ this
7
+ .interpolate_default("linear")
8
+ .interpolateFill_default(true)
9
+ ;
10
+ }
11
+ }
12
+ Area.prototype._class += " chart_Area";
package/src/Axis.css CHANGED
@@ -1,34 +1,34 @@
1
- .chart_Axis {
2
- fill: black;
3
- font: 10px sans-serif;
4
- }
5
-
6
- .chart_Axis .axis .tick > text {
7
- font: 10px sans-serif;
8
- }
9
-
10
- .chart_Axis .axis path.domain,
11
- .chart_Axis .axis .tick line {
12
- fill: none;
13
- stroke: black;
14
- }
15
-
16
- .chart_Axis .guide path.domain
17
- {
18
- fill: none;
19
- stroke: none;
20
- }
21
- .chart_Axis .guide .tick line {
22
- fill: none;
23
- stroke: lightgrey;
24
- opacity: 0.7;
25
- }
26
- .chart_Axis .guide .tick.guide-0 line {
27
- stroke: black;
28
- stroke-width: 1;
29
- stroke-dasharray: 3 5;
30
- }
31
- .chart_Axis line,
32
- .chart_Axis path{
33
- shape-rendering: crispEdges;
34
- }
1
+ .chart_Axis {
2
+ fill: black;
3
+ font: 10px sans-serif;
4
+ }
5
+
6
+ .chart_Axis .axis .tick > text {
7
+ font: 10px sans-serif;
8
+ }
9
+
10
+ .chart_Axis .axis path.domain,
11
+ .chart_Axis .axis .tick line {
12
+ fill: none;
13
+ stroke: black;
14
+ }
15
+
16
+ .chart_Axis .guide path.domain
17
+ {
18
+ fill: none;
19
+ stroke: none;
20
+ }
21
+ .chart_Axis .guide .tick line {
22
+ fill: none;
23
+ stroke: lightgrey;
24
+ opacity: 0.7;
25
+ }
26
+ .chart_Axis .guide .tick.guide-0 line {
27
+ stroke: black;
28
+ stroke-width: 1;
29
+ stroke-dasharray: 3 5;
30
+ }
31
+ .chart_Axis line,
32
+ .chart_Axis path{
33
+ shape-rendering: crispEdges;
34
+ }