@hpcc-js/chart 3.7.4 → 3.7.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.
- package/LICENSE +43 -43
- package/README.md +93 -93
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +1 -1
- package/dist/index.umd.cjs.map +1 -1
- package/package.json +9 -7
- package/src/Area.md +176 -176
- package/src/Area.ts +12 -12
- package/src/Axis.css +35 -35
- package/src/Axis.ts +781 -781
- package/src/Bar.md +90 -90
- package/src/Bar.ts +9 -9
- package/src/Bubble.css +16 -16
- package/src/Bubble.md +69 -69
- package/src/Bubble.ts +196 -196
- package/src/BubbleXY.ts +14 -14
- package/src/Bullet.css +59 -59
- package/src/Bullet.md +104 -104
- package/src/Bullet.ts +176 -176
- package/src/Column.css +44 -44
- package/src/Column.md +90 -90
- package/src/Column.ts +684 -684
- package/src/Contour.md +88 -88
- package/src/Contour.ts +97 -97
- package/src/D3Cloud.ts +403 -403
- package/src/Gantt.md +119 -119
- package/src/Gantt.ts +14 -14
- package/src/Gauge.md +148 -148
- package/src/Gauge.ts +368 -368
- package/src/HalfPie.md +62 -62
- package/src/HalfPie.ts +26 -26
- package/src/Heat.md +42 -42
- package/src/Heat.ts +283 -283
- package/src/HexBin.css +8 -8
- package/src/HexBin.md +88 -88
- package/src/HexBin.ts +144 -144
- package/src/Line.css +4 -4
- package/src/Line.md +170 -170
- package/src/Line.ts +14 -14
- package/src/Pie.css +50 -50
- package/src/Pie.md +88 -88
- package/src/Pie.ts +546 -546
- package/src/QuarterPie.md +61 -61
- package/src/QuarterPie.ts +35 -35
- package/src/QuartileCandlestick.md +129 -129
- package/src/QuartileCandlestick.ts +349 -349
- package/src/Radar.css +14 -14
- package/src/Radar.md +104 -104
- package/src/Radar.ts +336 -336
- package/src/RadialBar.css +25 -25
- package/src/RadialBar.md +91 -91
- package/src/RadialBar.ts +217 -217
- package/src/Scatter.css +42 -42
- package/src/Scatter.md +163 -163
- package/src/Scatter.ts +412 -412
- package/src/StatChart.md +117 -117
- package/src/StatChart.ts +261 -261
- package/src/Step.md +163 -163
- package/src/Step.ts +12 -12
- package/src/Summary.css +55 -55
- package/src/Summary.md +219 -219
- package/src/Summary.ts +322 -322
- package/src/SummaryC.md +154 -154
- package/src/SummaryC.ts +240 -240
- package/src/WordCloud.css +2 -2
- package/src/WordCloud.md +144 -144
- package/src/WordCloud.ts +268 -268
- package/src/XYAxis.css +40 -40
- package/src/XYAxis.md +149 -149
- package/src/XYAxis.ts +809 -809
- package/src/__package__.ts +3 -3
- package/src/__tests__/heat.ts +71 -71
- package/src/__tests__/index.ts +3 -3
- package/src/__tests__/pie.ts +20 -20
- package/src/__tests__/stat.ts +16 -16
- package/src/__tests__/test3.ts +68 -68
- package/src/index.ts +28 -28
- package/src/test.ts +70 -70
- package/src/timeFormats.ts +26 -26
package/src/StatChart.md
CHANGED
|
@@ -1,117 +1,117 @@
|
|
|
1
|
-
# StatChart
|
|
2
|
-
|
|
3
|
-
<!--meta
|
|
4
|
-
|
|
5
|
-
-->
|
|
6
|
-
|
|
7
|
-
StatChart displays a normal distribution of continuous data.
|
|
8
|
-
|
|
9
|
-
A single data row containing exactly 7 data points is required.
|
|
10
|
-
|
|
11
|
-
The _1st_ data point sets the lowest value in the set.
|
|
12
|
-
|
|
13
|
-
The _2nd_ data point sets the lower quartile (typically the average of the smallest half of values in the set).
|
|
14
|
-
|
|
15
|
-
The _3rd_ data point sets the middle quartile (typically the median value in the set).
|
|
16
|
-
|
|
17
|
-
The _4th_ data point sets the upper quartile (typically the average of the largest half of values in a set).
|
|
18
|
-
|
|
19
|
-
The _5th_ data point sets the largest value in the set.
|
|
20
|
-
|
|
21
|
-
The _6th_ data point sets the _mean_.
|
|
22
|
-
|
|
23
|
-
The _7th_ data point sets the _standardDeviation_.
|
|
24
|
-
|
|
25
|
-
<ClientOnly>
|
|
26
|
-
<hpcc-vitepress style="width:100%;height:600px">
|
|
27
|
-
<div id="placeholder" style="height:400px">
|
|
28
|
-
</div>
|
|
29
|
-
<script type="module">
|
|
30
|
-
import { StatChart } from "@hpcc-js/chart";
|
|
31
|
-
|
|
32
|
-
new StatChart()
|
|
33
|
-
.data([
|
|
34
|
-
[34,55,89,144,233,90,20]
|
|
35
|
-
])
|
|
36
|
-
.target("placeholder")
|
|
37
|
-
.render()
|
|
38
|
-
;
|
|
39
|
-
</script>
|
|
40
|
-
</hpcc-vitepress>
|
|
41
|
-
</ClientOnly>
|
|
42
|
-
|
|
43
|
-
Alternatively, the _mean_ and _standardDeviation_ can be set via chained methods _AFTER_ the _data_ row has been set.
|
|
44
|
-
|
|
45
|
-
<ClientOnly>
|
|
46
|
-
<hpcc-vitepress style="width:100%;height:600px">
|
|
47
|
-
<div id="placeholder" style="height:400px">
|
|
48
|
-
</div>
|
|
49
|
-
<script type="module">
|
|
50
|
-
import { StatChart } from "@hpcc-js/chart";
|
|
51
|
-
|
|
52
|
-
new StatChart()
|
|
53
|
-
.data([
|
|
54
|
-
[34,55,89,144,233]
|
|
55
|
-
])
|
|
56
|
-
.mean(90)
|
|
57
|
-
.standardDeviation(20)
|
|
58
|
-
.target("placeholder")
|
|
59
|
-
.render()
|
|
60
|
-
;
|
|
61
|
-
</script>
|
|
62
|
-
</hpcc-vitepress>
|
|
63
|
-
</ClientOnly>
|
|
64
|
-
|
|
65
|
-
_candleHeight_ controls the pixel height of the _QuartileCandlestick_ chart along the bottom.
|
|
66
|
-
|
|
67
|
-
_domainPadding_ controls the left and right padding of the interpolated _Scatter_ chart (bell curve) along the top.
|
|
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 { StatChart } from "@hpcc-js/chart";
|
|
75
|
-
|
|
76
|
-
new StatChart()
|
|
77
|
-
.data([
|
|
78
|
-
[34,55,89,144,233]
|
|
79
|
-
])
|
|
80
|
-
.mean(90)
|
|
81
|
-
.standardDeviation(20)
|
|
82
|
-
.candleHeight(50)
|
|
83
|
-
.domainPadding(100)
|
|
84
|
-
.target("placeholder")
|
|
85
|
-
.render()
|
|
86
|
-
;
|
|
87
|
-
</script>
|
|
88
|
-
</hpcc-vitepress>
|
|
89
|
-
</ClientOnly>
|
|
90
|
-
|
|
91
|
-
_tickFormat_ can be used to specify a d3 string formatting rule to be applied to the axis tick values (see: [Formatting](../../../docs/Getting%20Started/formatting.md))
|
|
92
|
-
|
|
93
|
-
<ClientOnly>
|
|
94
|
-
<hpcc-vitepress style="width:100%;height:600px">
|
|
95
|
-
<div id="placeholder" style="height:400px">
|
|
96
|
-
</div>
|
|
97
|
-
<script type="module">
|
|
98
|
-
import { StatChart } from "@hpcc-js/chart";
|
|
99
|
-
|
|
100
|
-
new StatChart()
|
|
101
|
-
.target("placeholder")
|
|
102
|
-
.quartiles([34,55,89,144,233])
|
|
103
|
-
.mean(120)
|
|
104
|
-
.standardDeviation(130)
|
|
105
|
-
.tickFormat(".2s")
|
|
106
|
-
.render()
|
|
107
|
-
;
|
|
108
|
-
</script>
|
|
109
|
-
</hpcc-vitepress>
|
|
110
|
-
</ClientOnly>
|
|
111
|
-
|
|
112
|
-
## API
|
|
113
|
-
|
|
114
|
-
## Published Properties
|
|
115
|
-
|
|
116
|
-
```@hpcc-js/chart:StatChart
|
|
117
|
-
```
|
|
1
|
+
# StatChart
|
|
2
|
+
|
|
3
|
+
<!--meta
|
|
4
|
+
|
|
5
|
+
-->
|
|
6
|
+
|
|
7
|
+
StatChart displays a normal distribution of continuous data.
|
|
8
|
+
|
|
9
|
+
A single data row containing exactly 7 data points is required.
|
|
10
|
+
|
|
11
|
+
The _1st_ data point sets the lowest value in the set.
|
|
12
|
+
|
|
13
|
+
The _2nd_ data point sets the lower quartile (typically the average of the smallest half of values in the set).
|
|
14
|
+
|
|
15
|
+
The _3rd_ data point sets the middle quartile (typically the median value in the set).
|
|
16
|
+
|
|
17
|
+
The _4th_ data point sets the upper quartile (typically the average of the largest half of values in a set).
|
|
18
|
+
|
|
19
|
+
The _5th_ data point sets the largest value in the set.
|
|
20
|
+
|
|
21
|
+
The _6th_ data point sets the _mean_.
|
|
22
|
+
|
|
23
|
+
The _7th_ data point sets the _standardDeviation_.
|
|
24
|
+
|
|
25
|
+
<ClientOnly>
|
|
26
|
+
<hpcc-vitepress style="width:100%;height:600px">
|
|
27
|
+
<div id="placeholder" style="height:400px">
|
|
28
|
+
</div>
|
|
29
|
+
<script type="module">
|
|
30
|
+
import { StatChart } from "@hpcc-js/chart";
|
|
31
|
+
|
|
32
|
+
new StatChart()
|
|
33
|
+
.data([
|
|
34
|
+
[34,55,89,144,233,90,20]
|
|
35
|
+
])
|
|
36
|
+
.target("placeholder")
|
|
37
|
+
.render()
|
|
38
|
+
;
|
|
39
|
+
</script>
|
|
40
|
+
</hpcc-vitepress>
|
|
41
|
+
</ClientOnly>
|
|
42
|
+
|
|
43
|
+
Alternatively, the _mean_ and _standardDeviation_ can be set via chained methods _AFTER_ the _data_ row has been set.
|
|
44
|
+
|
|
45
|
+
<ClientOnly>
|
|
46
|
+
<hpcc-vitepress style="width:100%;height:600px">
|
|
47
|
+
<div id="placeholder" style="height:400px">
|
|
48
|
+
</div>
|
|
49
|
+
<script type="module">
|
|
50
|
+
import { StatChart } from "@hpcc-js/chart";
|
|
51
|
+
|
|
52
|
+
new StatChart()
|
|
53
|
+
.data([
|
|
54
|
+
[34,55,89,144,233]
|
|
55
|
+
])
|
|
56
|
+
.mean(90)
|
|
57
|
+
.standardDeviation(20)
|
|
58
|
+
.target("placeholder")
|
|
59
|
+
.render()
|
|
60
|
+
;
|
|
61
|
+
</script>
|
|
62
|
+
</hpcc-vitepress>
|
|
63
|
+
</ClientOnly>
|
|
64
|
+
|
|
65
|
+
_candleHeight_ controls the pixel height of the _QuartileCandlestick_ chart along the bottom.
|
|
66
|
+
|
|
67
|
+
_domainPadding_ controls the left and right padding of the interpolated _Scatter_ chart (bell curve) along the top.
|
|
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 { StatChart } from "@hpcc-js/chart";
|
|
75
|
+
|
|
76
|
+
new StatChart()
|
|
77
|
+
.data([
|
|
78
|
+
[34,55,89,144,233]
|
|
79
|
+
])
|
|
80
|
+
.mean(90)
|
|
81
|
+
.standardDeviation(20)
|
|
82
|
+
.candleHeight(50)
|
|
83
|
+
.domainPadding(100)
|
|
84
|
+
.target("placeholder")
|
|
85
|
+
.render()
|
|
86
|
+
;
|
|
87
|
+
</script>
|
|
88
|
+
</hpcc-vitepress>
|
|
89
|
+
</ClientOnly>
|
|
90
|
+
|
|
91
|
+
_tickFormat_ can be used to specify a d3 string formatting rule to be applied to the axis tick values (see: [Formatting](../../../docs/Getting%20Started/formatting.md))
|
|
92
|
+
|
|
93
|
+
<ClientOnly>
|
|
94
|
+
<hpcc-vitepress style="width:100%;height:600px">
|
|
95
|
+
<div id="placeholder" style="height:400px">
|
|
96
|
+
</div>
|
|
97
|
+
<script type="module">
|
|
98
|
+
import { StatChart } from "@hpcc-js/chart";
|
|
99
|
+
|
|
100
|
+
new StatChart()
|
|
101
|
+
.target("placeholder")
|
|
102
|
+
.quartiles([34,55,89,144,233])
|
|
103
|
+
.mean(120)
|
|
104
|
+
.standardDeviation(130)
|
|
105
|
+
.tickFormat(".2s")
|
|
106
|
+
.render()
|
|
107
|
+
;
|
|
108
|
+
</script>
|
|
109
|
+
</hpcc-vitepress>
|
|
110
|
+
</ClientOnly>
|
|
111
|
+
|
|
112
|
+
## API
|
|
113
|
+
|
|
114
|
+
## Published Properties
|
|
115
|
+
|
|
116
|
+
```@hpcc-js/chart:StatChart
|
|
117
|
+
```
|