@hpcc-js/chart 3.6.5 → 3.6.6

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 (80) hide show
  1. package/LICENSE +43 -43
  2. package/README.md +93 -93
  3. package/dist/index.js +1 -1
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.umd.cjs +1 -1
  6. package/dist/index.umd.cjs.map +1 -1
  7. package/package.json +4 -4
  8. package/src/Area.md +176 -176
  9. package/src/Area.ts +12 -12
  10. package/src/Axis.css +34 -34
  11. package/src/Axis.ts +781 -781
  12. package/src/Bar.md +90 -90
  13. package/src/Bar.ts +9 -9
  14. package/src/Bubble.css +16 -16
  15. package/src/Bubble.md +69 -69
  16. package/src/Bubble.ts +196 -196
  17. package/src/BubbleXY.ts +14 -14
  18. package/src/Bullet.css +60 -60
  19. package/src/Bullet.md +104 -104
  20. package/src/Bullet.ts +176 -176
  21. package/src/Column.css +44 -44
  22. package/src/Column.md +90 -90
  23. package/src/Column.ts +684 -684
  24. package/src/Contour.md +88 -88
  25. package/src/Contour.ts +97 -97
  26. package/src/D3Cloud.ts +403 -403
  27. package/src/Gantt.md +119 -119
  28. package/src/Gantt.ts +14 -14
  29. package/src/Gauge.md +148 -148
  30. package/src/Gauge.ts +368 -368
  31. package/src/HalfPie.md +62 -62
  32. package/src/HalfPie.ts +26 -26
  33. package/src/Heat.md +42 -42
  34. package/src/Heat.ts +283 -283
  35. package/src/HexBin.css +9 -9
  36. package/src/HexBin.md +88 -88
  37. package/src/HexBin.ts +144 -144
  38. package/src/Line.css +6 -6
  39. package/src/Line.md +170 -170
  40. package/src/Line.ts +14 -14
  41. package/src/Pie.css +50 -50
  42. package/src/Pie.md +88 -88
  43. package/src/Pie.ts +546 -546
  44. package/src/QuarterPie.md +61 -61
  45. package/src/QuarterPie.ts +35 -35
  46. package/src/QuartileCandlestick.md +129 -129
  47. package/src/QuartileCandlestick.ts +349 -349
  48. package/src/Radar.css +15 -15
  49. package/src/Radar.md +104 -104
  50. package/src/Radar.ts +336 -336
  51. package/src/RadialBar.css +25 -25
  52. package/src/RadialBar.md +91 -91
  53. package/src/RadialBar.ts +217 -217
  54. package/src/Scatter.css +42 -42
  55. package/src/Scatter.md +163 -163
  56. package/src/Scatter.ts +412 -412
  57. package/src/StatChart.md +117 -117
  58. package/src/StatChart.ts +261 -261
  59. package/src/Step.md +163 -163
  60. package/src/Step.ts +12 -12
  61. package/src/Summary.css +56 -56
  62. package/src/Summary.md +219 -219
  63. package/src/Summary.ts +322 -322
  64. package/src/SummaryC.md +154 -154
  65. package/src/SummaryC.ts +240 -240
  66. package/src/WordCloud.css +3 -3
  67. package/src/WordCloud.md +144 -144
  68. package/src/WordCloud.ts +268 -268
  69. package/src/XYAxis.css +41 -41
  70. package/src/XYAxis.md +149 -149
  71. package/src/XYAxis.ts +809 -809
  72. package/src/__package__.ts +3 -3
  73. package/src/__tests__/heat.ts +71 -71
  74. package/src/__tests__/index.ts +3 -3
  75. package/src/__tests__/pie.ts +20 -20
  76. package/src/__tests__/stat.ts +16 -16
  77. package/src/__tests__/test3.ts +68 -68
  78. package/src/index.ts +28 -28
  79. package/src/test.ts +70 -70
  80. package/src/timeFormats.ts +26 -26
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hpcc-js/chart",
3
- "version": "3.6.5",
3
+ "version": "3.6.6",
4
4
  "description": "hpcc-js - Viz Chart",
5
5
  "type": "module",
6
6
  "main": "./dist/index.umd.cjs",
@@ -37,8 +37,8 @@
37
37
  "update-major": "npx --yes npm-check-updates -u"
38
38
  },
39
39
  "dependencies": {
40
- "@hpcc-js/api": "^3.4.9",
41
- "@hpcc-js/common": "^3.6.5",
40
+ "@hpcc-js/api": "^3.4.10",
41
+ "@hpcc-js/common": "^3.7.0",
42
42
  "@hpcc-js/util": "^3.4.8"
43
43
  },
44
44
  "devDependencies": {
@@ -76,5 +76,5 @@
76
76
  "url": "https://github.com/hpcc-systems/Visualization/issues"
77
77
  },
78
78
  "homepage": "https://github.com/hpcc-systems/Visualization",
79
- "gitHead": "34c404f172efc43a9caf59e8e463d1f07d469578"
79
+ "gitHead": "0c1e3df0f2ae628352200f8f8fd6b91b976f69c3"
80
80
  }
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.ts";
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.ts";
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
+ }