@hpcc-js/chart 3.7.1 → 3.7.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.
- 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 +6 -6
- 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/QuarterPie.md
CHANGED
|
@@ -1,61 +1,61 @@
|
|
|
1
|
-
# QuarterPie
|
|
2
|
-
|
|
3
|
-
<!--meta
|
|
4
|
-
|
|
5
|
-
-->
|
|
6
|
-
|
|
7
|
-
[Pie](./Pie.md), [HalfPie](./HalfPie.md) and QuarterPie are effectively the same class, but have different starting and ending angles. They support all of the same properties.
|
|
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 { QuarterPie } from "@hpcc-js/chart";
|
|
15
|
-
|
|
16
|
-
new QuarterPie()
|
|
17
|
-
.columns(["Category", "Value"])
|
|
18
|
-
.data([
|
|
19
|
-
["A", 34],
|
|
20
|
-
["B", 55],
|
|
21
|
-
["C", 89],
|
|
22
|
-
["D", 144]
|
|
23
|
-
])
|
|
24
|
-
.target("placeholder")
|
|
25
|
-
.render()
|
|
26
|
-
;
|
|
27
|
-
</script>
|
|
28
|
-
</hpcc-vitepress>
|
|
29
|
-
</ClientOnly>
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
<ClientOnly>
|
|
33
|
-
<hpcc-vitepress style="width:100%;height:600px">
|
|
34
|
-
<div id="placeholder" style="height:400px">
|
|
35
|
-
</div>
|
|
36
|
-
<script type="module">
|
|
37
|
-
import { QuarterPie } from "@hpcc-js/chart";
|
|
38
|
-
|
|
39
|
-
new QuarterPie()
|
|
40
|
-
.columns(["Category", "Value"])
|
|
41
|
-
.data([
|
|
42
|
-
["A", 34],
|
|
43
|
-
["B", 55],
|
|
44
|
-
["C", 89],
|
|
45
|
-
["D", 144]
|
|
46
|
-
])
|
|
47
|
-
.target("placeholder")
|
|
48
|
-
.innerRadius(62)
|
|
49
|
-
.showSeriesPercentage(true)
|
|
50
|
-
.showSeriesValue(true)
|
|
51
|
-
.render()
|
|
52
|
-
;
|
|
53
|
-
</script>
|
|
54
|
-
</hpcc-vitepress>
|
|
55
|
-
</ClientOnly>
|
|
56
|
-
|
|
57
|
-
## API
|
|
58
|
-
|
|
59
|
-
## Published Properties
|
|
60
|
-
```@hpcc-js/chart:QuarterPie
|
|
61
|
-
```
|
|
1
|
+
# QuarterPie
|
|
2
|
+
|
|
3
|
+
<!--meta
|
|
4
|
+
|
|
5
|
+
-->
|
|
6
|
+
|
|
7
|
+
[Pie](./Pie.md), [HalfPie](./HalfPie.md) and QuarterPie are effectively the same class, but have different starting and ending angles. They support all of the same properties.
|
|
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 { QuarterPie } from "@hpcc-js/chart";
|
|
15
|
+
|
|
16
|
+
new QuarterPie()
|
|
17
|
+
.columns(["Category", "Value"])
|
|
18
|
+
.data([
|
|
19
|
+
["A", 34],
|
|
20
|
+
["B", 55],
|
|
21
|
+
["C", 89],
|
|
22
|
+
["D", 144]
|
|
23
|
+
])
|
|
24
|
+
.target("placeholder")
|
|
25
|
+
.render()
|
|
26
|
+
;
|
|
27
|
+
</script>
|
|
28
|
+
</hpcc-vitepress>
|
|
29
|
+
</ClientOnly>
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
<ClientOnly>
|
|
33
|
+
<hpcc-vitepress style="width:100%;height:600px">
|
|
34
|
+
<div id="placeholder" style="height:400px">
|
|
35
|
+
</div>
|
|
36
|
+
<script type="module">
|
|
37
|
+
import { QuarterPie } from "@hpcc-js/chart";
|
|
38
|
+
|
|
39
|
+
new QuarterPie()
|
|
40
|
+
.columns(["Category", "Value"])
|
|
41
|
+
.data([
|
|
42
|
+
["A", 34],
|
|
43
|
+
["B", 55],
|
|
44
|
+
["C", 89],
|
|
45
|
+
["D", 144]
|
|
46
|
+
])
|
|
47
|
+
.target("placeholder")
|
|
48
|
+
.innerRadius(62)
|
|
49
|
+
.showSeriesPercentage(true)
|
|
50
|
+
.showSeriesValue(true)
|
|
51
|
+
.render()
|
|
52
|
+
;
|
|
53
|
+
</script>
|
|
54
|
+
</hpcc-vitepress>
|
|
55
|
+
</ClientOnly>
|
|
56
|
+
|
|
57
|
+
## API
|
|
58
|
+
|
|
59
|
+
## Published Properties
|
|
60
|
+
```@hpcc-js/chart:QuarterPie
|
|
61
|
+
```
|
package/src/QuarterPie.ts
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import { Pie } from "./Pie.ts";
|
|
2
|
-
|
|
3
|
-
export class QuarterPie extends Pie {
|
|
4
|
-
constructor() {
|
|
5
|
-
super();
|
|
6
|
-
}
|
|
7
|
-
postUpdate(domNode, element) {
|
|
8
|
-
super.postUpdate(domNode, element);
|
|
9
|
-
let x = this.orientation() === "left" ? 0 : this._size.width;
|
|
10
|
-
let y = this._size.height;
|
|
11
|
-
if (this._drawStartPos === "origin" && this._target instanceof SVGElement) {
|
|
12
|
-
x -= this._size.width / 2;
|
|
13
|
-
y -= this._size.height / 2;
|
|
14
|
-
}
|
|
15
|
-
this._element.attr("transform", "translate(" + x + "," + y + ")scale(" + this._widgetScale + ")");
|
|
16
|
-
}
|
|
17
|
-
updateD3Pie() {
|
|
18
|
-
super.updateD3Pie();
|
|
19
|
-
this.d3Pie
|
|
20
|
-
.startAngle(this.orientation() === "left" ? 0 : -Math.PI / 2)
|
|
21
|
-
.endAngle(this.orientation() === "left" ? Math.PI / 2 : 0)
|
|
22
|
-
;
|
|
23
|
-
}
|
|
24
|
-
calcOuterRadius() {
|
|
25
|
-
const maxTextWidth = this.textSize(this.data().map(d => this.getLabelText({ data: d })), "Verdana", 12).width;
|
|
26
|
-
return Math.min(this._size.width - maxTextWidth - 10, this._size.height - 12 * 3) - 2;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
QuarterPie.prototype._class += " chart_QuarterPie";
|
|
30
|
-
|
|
31
|
-
export interface QuarterPie {
|
|
32
|
-
orientation(): string;
|
|
33
|
-
orientation(_: string): this;
|
|
34
|
-
}
|
|
35
|
-
QuarterPie.prototype.publish("orientation", "left", "set", "Determines the placement and start/end angle.", ["left", "right"]);
|
|
1
|
+
import { Pie } from "./Pie.ts";
|
|
2
|
+
|
|
3
|
+
export class QuarterPie extends Pie {
|
|
4
|
+
constructor() {
|
|
5
|
+
super();
|
|
6
|
+
}
|
|
7
|
+
postUpdate(domNode, element) {
|
|
8
|
+
super.postUpdate(domNode, element);
|
|
9
|
+
let x = this.orientation() === "left" ? 0 : this._size.width;
|
|
10
|
+
let y = this._size.height;
|
|
11
|
+
if (this._drawStartPos === "origin" && this._target instanceof SVGElement) {
|
|
12
|
+
x -= this._size.width / 2;
|
|
13
|
+
y -= this._size.height / 2;
|
|
14
|
+
}
|
|
15
|
+
this._element.attr("transform", "translate(" + x + "," + y + ")scale(" + this._widgetScale + ")");
|
|
16
|
+
}
|
|
17
|
+
updateD3Pie() {
|
|
18
|
+
super.updateD3Pie();
|
|
19
|
+
this.d3Pie
|
|
20
|
+
.startAngle(this.orientation() === "left" ? 0 : -Math.PI / 2)
|
|
21
|
+
.endAngle(this.orientation() === "left" ? Math.PI / 2 : 0)
|
|
22
|
+
;
|
|
23
|
+
}
|
|
24
|
+
calcOuterRadius() {
|
|
25
|
+
const maxTextWidth = this.textSize(this.data().map(d => this.getLabelText({ data: d })), "Verdana", 12).width;
|
|
26
|
+
return Math.min(this._size.width - maxTextWidth - 10, this._size.height - 12 * 3) - 2;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
QuarterPie.prototype._class += " chart_QuarterPie";
|
|
30
|
+
|
|
31
|
+
export interface QuarterPie {
|
|
32
|
+
orientation(): string;
|
|
33
|
+
orientation(_: string): this;
|
|
34
|
+
}
|
|
35
|
+
QuarterPie.prototype.publish("orientation", "left", "set", "Determines the placement and start/end angle.", ["left", "right"]);
|
|
@@ -1,129 +1,129 @@
|
|
|
1
|
-
# QuartileCandlestick
|
|
2
|
-
|
|
3
|
-
<!--meta
|
|
4
|
-
|
|
5
|
-
-->
|
|
6
|
-
|
|
7
|
-
QuartileCandlestick displays a five number summary of a range of numeric values. The five-number summary is the minimum, first quartile, median, third quartile, and maximum.
|
|
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 { QuartileCandlestick } from "@hpcc-js/chart";
|
|
16
|
-
|
|
17
|
-
new QuartileCandlestick()
|
|
18
|
-
.target("placeholder")
|
|
19
|
-
.columns(["Min","25%","50%","75%","Max"])
|
|
20
|
-
.data([100,250,350,400,500])
|
|
21
|
-
.render()
|
|
22
|
-
;
|
|
23
|
-
</script>
|
|
24
|
-
</hpcc-vitepress>
|
|
25
|
-
</ClientOnly>
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
_orientation_ can be used to render this chart either vertically or horizontally.
|
|
29
|
-
|
|
30
|
-
_lineWidth_ and _candleWidth_ can be used to set the pixel width of the lines and the overall pixel width of the drawn portion of this chart respectively. _candleWidth_ also controls the height of the drawn portion while using 'horizontal' orientation.
|
|
31
|
-
|
|
32
|
-
_edgePadding_ sets the pixel padding between the edges of the containing element and the minimum/maximum lines.
|
|
33
|
-
|
|
34
|
-
_roundedCorners_ sets the pixel radius of the drawn lines.
|
|
35
|
-
|
|
36
|
-
_upperTextRotation_ and _lowerTextRotation_ sets the degrees of rotation for the column labels and column values respectively.
|
|
37
|
-
|
|
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 { QuartileCandlestick } from "@hpcc-js/chart";
|
|
45
|
-
|
|
46
|
-
new QuartileCandlestick()
|
|
47
|
-
.target("placeholder")
|
|
48
|
-
.columns(["Min","25%","50%","75%","Max"])
|
|
49
|
-
.data([100,200,300,400,500])
|
|
50
|
-
.orientation("vertical")
|
|
51
|
-
.lineWidth(2)
|
|
52
|
-
.candleWidth(80)
|
|
53
|
-
.edgePadding(20)
|
|
54
|
-
.roundedCorners(0)
|
|
55
|
-
.upperTextRotation(-90)
|
|
56
|
-
.lowerTextRotation(-90)
|
|
57
|
-
.render()
|
|
58
|
-
;
|
|
59
|
-
</script>
|
|
60
|
-
</hpcc-vitepress>
|
|
61
|
-
</ClientOnly>
|
|
62
|
-
|
|
63
|
-
_lineColor_ sets the fill color of the lines.
|
|
64
|
-
|
|
65
|
-
_textColor_ sets the fill color of the labels and values.
|
|
66
|
-
|
|
67
|
-
_innerRectColor_ sets the fill color of the inner rectangles between the first and third quartiles.
|
|
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 { QuartileCandlestick } from "@hpcc-js/chart";
|
|
75
|
-
|
|
76
|
-
new QuartileCandlestick()
|
|
77
|
-
.target("placeholder")
|
|
78
|
-
.columns(["Min","25%","50%","75%","Max"])
|
|
79
|
-
.data([100,250,350,400,500])
|
|
80
|
-
.orientation("vertical")
|
|
81
|
-
.lineColor("#999")
|
|
82
|
-
.textColor("#555")
|
|
83
|
-
.innerRectColor("#000")
|
|
84
|
-
.lineWidth(2)
|
|
85
|
-
.candleWidth(80)
|
|
86
|
-
.edgePadding(20)
|
|
87
|
-
.roundedCorners(0)
|
|
88
|
-
.upperTextRotation(-90)
|
|
89
|
-
.lowerTextRotation(-90)
|
|
90
|
-
.render()
|
|
91
|
-
;
|
|
92
|
-
</script>
|
|
93
|
-
</hpcc-vitepress>
|
|
94
|
-
</ClientOnly>
|
|
95
|
-
|
|
96
|
-
_showLabels_ and _showValues_ are true by default but can be used to hide the labels and values.
|
|
97
|
-
|
|
98
|
-
<ClientOnly>
|
|
99
|
-
<hpcc-vitepress style="width:100%;height:600px">
|
|
100
|
-
<div id="placeholder" style="height:400px">
|
|
101
|
-
</div>
|
|
102
|
-
<script type="module">
|
|
103
|
-
import { QuartileCandlestick } from "@hpcc-js/chart";
|
|
104
|
-
|
|
105
|
-
new QuartileCandlestick()
|
|
106
|
-
.target("placeholder")
|
|
107
|
-
.columns(["Min","25%","50%","75%","Max"])
|
|
108
|
-
.data([1,497,498,499,500])
|
|
109
|
-
.showLabels(false)
|
|
110
|
-
.showValues(false)
|
|
111
|
-
.lineColor("#999")
|
|
112
|
-
.innerRectColor("#000")
|
|
113
|
-
.lineWidth(2)
|
|
114
|
-
.candleWidth(80)
|
|
115
|
-
.edgePadding(20)
|
|
116
|
-
.roundedCorners(0)
|
|
117
|
-
.upperTextRotation(-90)
|
|
118
|
-
.lowerTextRotation(-90)
|
|
119
|
-
.render()
|
|
120
|
-
;
|
|
121
|
-
</script>
|
|
122
|
-
</hpcc-vitepress>
|
|
123
|
-
</ClientOnly>
|
|
124
|
-
|
|
125
|
-
## API
|
|
126
|
-
|
|
127
|
-
## Published Properties
|
|
128
|
-
```@hpcc-js/chart:QuartileCandlestick
|
|
129
|
-
```
|
|
1
|
+
# QuartileCandlestick
|
|
2
|
+
|
|
3
|
+
<!--meta
|
|
4
|
+
|
|
5
|
+
-->
|
|
6
|
+
|
|
7
|
+
QuartileCandlestick displays a five number summary of a range of numeric values. The five-number summary is the minimum, first quartile, median, third quartile, and maximum.
|
|
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 { QuartileCandlestick } from "@hpcc-js/chart";
|
|
16
|
+
|
|
17
|
+
new QuartileCandlestick()
|
|
18
|
+
.target("placeholder")
|
|
19
|
+
.columns(["Min","25%","50%","75%","Max"])
|
|
20
|
+
.data([100,250,350,400,500])
|
|
21
|
+
.render()
|
|
22
|
+
;
|
|
23
|
+
</script>
|
|
24
|
+
</hpcc-vitepress>
|
|
25
|
+
</ClientOnly>
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
_orientation_ can be used to render this chart either vertically or horizontally.
|
|
29
|
+
|
|
30
|
+
_lineWidth_ and _candleWidth_ can be used to set the pixel width of the lines and the overall pixel width of the drawn portion of this chart respectively. _candleWidth_ also controls the height of the drawn portion while using 'horizontal' orientation.
|
|
31
|
+
|
|
32
|
+
_edgePadding_ sets the pixel padding between the edges of the containing element and the minimum/maximum lines.
|
|
33
|
+
|
|
34
|
+
_roundedCorners_ sets the pixel radius of the drawn lines.
|
|
35
|
+
|
|
36
|
+
_upperTextRotation_ and _lowerTextRotation_ sets the degrees of rotation for the column labels and column values respectively.
|
|
37
|
+
|
|
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 { QuartileCandlestick } from "@hpcc-js/chart";
|
|
45
|
+
|
|
46
|
+
new QuartileCandlestick()
|
|
47
|
+
.target("placeholder")
|
|
48
|
+
.columns(["Min","25%","50%","75%","Max"])
|
|
49
|
+
.data([100,200,300,400,500])
|
|
50
|
+
.orientation("vertical")
|
|
51
|
+
.lineWidth(2)
|
|
52
|
+
.candleWidth(80)
|
|
53
|
+
.edgePadding(20)
|
|
54
|
+
.roundedCorners(0)
|
|
55
|
+
.upperTextRotation(-90)
|
|
56
|
+
.lowerTextRotation(-90)
|
|
57
|
+
.render()
|
|
58
|
+
;
|
|
59
|
+
</script>
|
|
60
|
+
</hpcc-vitepress>
|
|
61
|
+
</ClientOnly>
|
|
62
|
+
|
|
63
|
+
_lineColor_ sets the fill color of the lines.
|
|
64
|
+
|
|
65
|
+
_textColor_ sets the fill color of the labels and values.
|
|
66
|
+
|
|
67
|
+
_innerRectColor_ sets the fill color of the inner rectangles between the first and third quartiles.
|
|
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 { QuartileCandlestick } from "@hpcc-js/chart";
|
|
75
|
+
|
|
76
|
+
new QuartileCandlestick()
|
|
77
|
+
.target("placeholder")
|
|
78
|
+
.columns(["Min","25%","50%","75%","Max"])
|
|
79
|
+
.data([100,250,350,400,500])
|
|
80
|
+
.orientation("vertical")
|
|
81
|
+
.lineColor("#999")
|
|
82
|
+
.textColor("#555")
|
|
83
|
+
.innerRectColor("#000")
|
|
84
|
+
.lineWidth(2)
|
|
85
|
+
.candleWidth(80)
|
|
86
|
+
.edgePadding(20)
|
|
87
|
+
.roundedCorners(0)
|
|
88
|
+
.upperTextRotation(-90)
|
|
89
|
+
.lowerTextRotation(-90)
|
|
90
|
+
.render()
|
|
91
|
+
;
|
|
92
|
+
</script>
|
|
93
|
+
</hpcc-vitepress>
|
|
94
|
+
</ClientOnly>
|
|
95
|
+
|
|
96
|
+
_showLabels_ and _showValues_ are true by default but can be used to hide the labels and values.
|
|
97
|
+
|
|
98
|
+
<ClientOnly>
|
|
99
|
+
<hpcc-vitepress style="width:100%;height:600px">
|
|
100
|
+
<div id="placeholder" style="height:400px">
|
|
101
|
+
</div>
|
|
102
|
+
<script type="module">
|
|
103
|
+
import { QuartileCandlestick } from "@hpcc-js/chart";
|
|
104
|
+
|
|
105
|
+
new QuartileCandlestick()
|
|
106
|
+
.target("placeholder")
|
|
107
|
+
.columns(["Min","25%","50%","75%","Max"])
|
|
108
|
+
.data([1,497,498,499,500])
|
|
109
|
+
.showLabels(false)
|
|
110
|
+
.showValues(false)
|
|
111
|
+
.lineColor("#999")
|
|
112
|
+
.innerRectColor("#000")
|
|
113
|
+
.lineWidth(2)
|
|
114
|
+
.candleWidth(80)
|
|
115
|
+
.edgePadding(20)
|
|
116
|
+
.roundedCorners(0)
|
|
117
|
+
.upperTextRotation(-90)
|
|
118
|
+
.lowerTextRotation(-90)
|
|
119
|
+
.render()
|
|
120
|
+
;
|
|
121
|
+
</script>
|
|
122
|
+
</hpcc-vitepress>
|
|
123
|
+
</ClientOnly>
|
|
124
|
+
|
|
125
|
+
## API
|
|
126
|
+
|
|
127
|
+
## Published Properties
|
|
128
|
+
```@hpcc-js/chart:QuartileCandlestick
|
|
129
|
+
```
|