@hpcc-js/chart 3.1.0 → 3.2.0
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/dist/index.js +323 -67
- package/dist/index.js.map +4 -4
- package/package.json +10 -10
- package/src/Axis.ts +4 -4
- package/src/Bubble.ts +18 -13
- package/src/Column.ts +12 -11
- package/src/D3Cloud.ts +13 -13
- package/src/HexBin.ts +15 -10
- package/src/Pie.ts +31 -27
- package/src/Radar.ts +15 -15
- package/src/RadialBar.ts +18 -13
- package/src/Scatter.ts +35 -23
- package/src/StatChart.ts +9 -1
- package/src/WordCloud.ts +55 -50
- package/src/XYAxis.ts +3 -3
- package/src/__package__.ts +2 -2
- package/types/Axis.d.ts +2 -2
- package/types/Bubble.d.ts +13 -15
- package/types/Column.d.ts +8 -7
- package/types/HexBin.d.ts +12 -16
- package/types/Pie.d.ts +23 -34
- package/types/Radar.d.ts +10 -10
- package/types/RadialBar.d.ts +10 -10
- package/types/Scatter.d.ts +28 -48
- package/types/StatChart.d.ts +1 -0
- package/types/WordCloud.d.ts +50 -109
- package/types/XYAxis.d.ts +2 -2
- package/types/__package__.d.ts +2 -2
- package/dist/index.css +0 -2
- package/dist/index.css.map +0 -7
package/package.json
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hpcc-js/chart",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.2.0",
|
|
4
4
|
"description": "hpcc-js - Viz Chart",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
7
7
|
".": {
|
|
8
8
|
"types": "./types/index.d.ts",
|
|
9
9
|
"default": "./dist/index.js"
|
|
10
|
-
}
|
|
10
|
+
},
|
|
11
|
+
"./dist/*": "./dist/*"
|
|
11
12
|
},
|
|
12
13
|
"module": "./dist/index.js",
|
|
13
14
|
"browser": "./dist/index.js",
|
|
@@ -25,23 +26,22 @@
|
|
|
25
26
|
"gen-types": "tsc --project tsconfig.json",
|
|
26
27
|
"gen-types-watch": "npm run gen-types -- --watch",
|
|
27
28
|
"build": "run-p gen-types bundle",
|
|
28
|
-
"stamp": "node ../../node_modules/@hpcc-js/bundle/src/stamp.js",
|
|
29
29
|
"lint": "eslint ./src",
|
|
30
30
|
"lint-fix": "eslint --fix src/**/*.ts",
|
|
31
31
|
"docs": "typedoc --options tdoptions.json .",
|
|
32
32
|
"test-browser": "vitest run --project browser",
|
|
33
33
|
"test": "vitest run",
|
|
34
34
|
"coverage": "vitest run --coverage",
|
|
35
|
-
"update": "npx
|
|
35
|
+
"update": "npx --yes npm-check-updates -u -t minor",
|
|
36
|
+
"update-major": "npx --yes npm-check-updates -u"
|
|
36
37
|
},
|
|
37
38
|
"dependencies": {
|
|
38
|
-
"@hpcc-js/api": "^3.
|
|
39
|
-
"@hpcc-js/common": "^3.
|
|
40
|
-
"@hpcc-js/util": "^3.
|
|
39
|
+
"@hpcc-js/api": "^3.2.0",
|
|
40
|
+
"@hpcc-js/common": "^3.2.0",
|
|
41
|
+
"@hpcc-js/util": "^3.2.0"
|
|
41
42
|
},
|
|
42
43
|
"devDependencies": {
|
|
43
|
-
"@hpcc-js/
|
|
44
|
-
"@hpcc-js/esbuild-plugins": "^1.2.0",
|
|
44
|
+
"@hpcc-js/esbuild-plugins": "^1.3.0",
|
|
45
45
|
"@types/d3-shape": "1.3.12",
|
|
46
46
|
"@types/d3-transition": "1.3.6",
|
|
47
47
|
"d3-array": "^1",
|
|
@@ -75,5 +75,5 @@
|
|
|
75
75
|
"url": "https://github.com/hpcc-systems/Visualization/issues"
|
|
76
76
|
},
|
|
77
77
|
"homepage": "https://github.com/hpcc-systems/Visualization",
|
|
78
|
-
"gitHead": "
|
|
78
|
+
"gitHead": "658c50fd965a7744ba8db675ba6878607c44d5e2"
|
|
79
79
|
}
|
package/src/Axis.ts
CHANGED
|
@@ -113,13 +113,13 @@ export class Axis extends SVGWidget {
|
|
|
113
113
|
return true;
|
|
114
114
|
}
|
|
115
115
|
|
|
116
|
-
domain(_) {
|
|
116
|
+
domain(_?) {
|
|
117
117
|
if (!arguments.length) return this.d3Scale.domain();
|
|
118
118
|
this.d3Scale.domain(_);
|
|
119
119
|
return this;
|
|
120
120
|
}
|
|
121
121
|
|
|
122
|
-
range(_) {
|
|
122
|
+
range(_?) {
|
|
123
123
|
if (!arguments.length) {
|
|
124
124
|
if (this.d3Scale.rangeRoundBands) {
|
|
125
125
|
return this.d3Scale.rangeExtent();
|
|
@@ -746,7 +746,7 @@ Axis.prototype.publish("padding", 0, "number", "Padding space at top of axis (pi
|
|
|
746
746
|
Axis.prototype._origType = Axis.prototype.type;
|
|
747
747
|
Axis.prototype.type = function (_?: string) {
|
|
748
748
|
const retVal = Axis.prototype._origType.apply(this, arguments);
|
|
749
|
-
if (
|
|
749
|
+
if (_ !== undefined) {
|
|
750
750
|
this._type = _;
|
|
751
751
|
this.updateScale();
|
|
752
752
|
}
|
|
@@ -756,7 +756,7 @@ Axis.prototype.type = function (_?: string) {
|
|
|
756
756
|
Axis.prototype._origTimePattern = Axis.prototype.timePattern;
|
|
757
757
|
Axis.prototype.timePattern = function (_?: string) {
|
|
758
758
|
const retVal = Axis.prototype._origTimePattern.apply(this, arguments);
|
|
759
|
-
if (
|
|
759
|
+
if (_ !== undefined) {
|
|
760
760
|
this._timePattern = _;
|
|
761
761
|
this.updateScale();
|
|
762
762
|
}
|
package/src/Bubble.ts
CHANGED
|
@@ -163,29 +163,34 @@ export class Bubble extends SVGWidget {
|
|
|
163
163
|
super.exit(domNode, element);
|
|
164
164
|
}
|
|
165
165
|
|
|
166
|
-
|
|
167
|
-
|
|
166
|
+
}
|
|
167
|
+
Bubble.prototype._class += " chart_Bubble";
|
|
168
|
+
Bubble.prototype.implements(I2DChart.prototype);
|
|
169
|
+
Bubble.prototype.implements(ITooltip.prototype);
|
|
170
|
+
Bubble.prototype.mixin(Utility.SimpleSelectionMixin);
|
|
171
|
+
|
|
172
|
+
export interface Bubble {
|
|
173
|
+
paletteID(): string;
|
|
174
|
+
paletteID(_: string): this;
|
|
175
|
+
useClonedPalette(): boolean;
|
|
176
|
+
useClonedPalette(_: boolean): this;
|
|
168
177
|
|
|
169
178
|
// I2DChart
|
|
170
179
|
_palette;
|
|
171
|
-
fillColor
|
|
172
|
-
textColor
|
|
173
|
-
click
|
|
174
|
-
dblclick
|
|
180
|
+
fillColor(row: any[], column: string, value: number): string;
|
|
181
|
+
textColor(row: any[], column: string, value: number): string;
|
|
182
|
+
click(row, column, selected): void;
|
|
183
|
+
dblclick(row, column, selected): void;
|
|
175
184
|
|
|
176
185
|
// ITooltip
|
|
177
186
|
tooltip;
|
|
178
|
-
tooltipHTML
|
|
179
|
-
tooltipFormat
|
|
180
|
-
tooltipStyle
|
|
187
|
+
tooltipHTML(_): string;
|
|
188
|
+
tooltipFormat(_): string;
|
|
189
|
+
tooltipStyle(): "default" | "none" | "series-table";
|
|
181
190
|
|
|
182
191
|
// SimpleSelectionMixin
|
|
183
192
|
_selection;
|
|
184
193
|
}
|
|
185
|
-
Bubble.prototype._class += " chart_Bubble";
|
|
186
|
-
Bubble.prototype.implements(I2DChart.prototype);
|
|
187
|
-
Bubble.prototype.implements(ITooltip.prototype);
|
|
188
|
-
Bubble.prototype.mixin(Utility.SimpleSelectionMixin);
|
|
189
194
|
|
|
190
195
|
Bubble.prototype.publish("paletteID", "default", "set", "Color palette for this widget", Bubble.prototype._palette.switch(), { tags: ["Basic", "Shared"] });
|
|
191
196
|
Bubble.prototype.publish("useClonedPalette", false, "boolean", "Enable or disable using a cloned palette", null, { tags: ["Intermediate", "Shared"] });
|
package/src/Column.ts
CHANGED
|
@@ -572,17 +572,6 @@ export class Column extends XYAxis {
|
|
|
572
572
|
innerText(origRow, lparam, idx): string {
|
|
573
573
|
return origRow[0];
|
|
574
574
|
}
|
|
575
|
-
|
|
576
|
-
// INDChart ---
|
|
577
|
-
fillColor: (row, column, value, origRow) => string;
|
|
578
|
-
textColor: (row, column, value, origRow) => string;
|
|
579
|
-
dblclick: (row, column, selected) => void;
|
|
580
|
-
|
|
581
|
-
// ITooltip ---
|
|
582
|
-
tooltip;
|
|
583
|
-
tooltipHTML: (_) => string;
|
|
584
|
-
tooltipFormat: (_) => string;
|
|
585
|
-
tooltipStyle: () => "default" | "none" | "series-table";
|
|
586
575
|
}
|
|
587
576
|
Column.prototype._class += " chart_Column";
|
|
588
577
|
Column.prototype.implements(INDChart.prototype);
|
|
@@ -626,6 +615,18 @@ export interface Column {
|
|
|
626
615
|
innerTextPadding_exists(): boolean;
|
|
627
616
|
tooltipInnerTextEllipsedOnly(): boolean;
|
|
628
617
|
tooltipInnerTextEllipsedOnly(_: boolean): this;
|
|
618
|
+
|
|
619
|
+
// INDChart ---
|
|
620
|
+
fillColor(row, column, value, origRow): string;
|
|
621
|
+
textColor(row, column, value, origRow): string;
|
|
622
|
+
dblclick(row, column, selected): void;
|
|
623
|
+
|
|
624
|
+
// ITooltip ---
|
|
625
|
+
tooltip;
|
|
626
|
+
tooltipHTML(_): string;
|
|
627
|
+
tooltipFormat(_): string;
|
|
628
|
+
tooltipStyle(): "default" | "none" | "series-table";
|
|
629
|
+
tooltipStyle(_: "default" | "none" | "series-table"): this;
|
|
629
630
|
}
|
|
630
631
|
|
|
631
632
|
Column.prototype.publish("valueFontFamily", null, "string", "Font family of value text", null, { optional: true });
|
package/src/D3Cloud.ts
CHANGED
|
@@ -26,7 +26,7 @@ export function d3Cloud() {
|
|
|
26
26
|
let random = Math.random;
|
|
27
27
|
let canvas = cloudCanvas;
|
|
28
28
|
|
|
29
|
-
cloud.canvas = function (_) {
|
|
29
|
+
cloud.canvas = function (_?) {
|
|
30
30
|
return arguments.length ? (canvas = functor(_), cloud) : canvas;
|
|
31
31
|
};
|
|
32
32
|
|
|
@@ -149,51 +149,51 @@ export function d3Cloud() {
|
|
|
149
149
|
return false;
|
|
150
150
|
}
|
|
151
151
|
|
|
152
|
-
cloud.timeInterval = function (_) {
|
|
152
|
+
cloud.timeInterval = function (_?) {
|
|
153
153
|
return arguments.length ? (timeInterval = _ == null ? Infinity : _, cloud) : timeInterval;
|
|
154
154
|
};
|
|
155
155
|
|
|
156
|
-
cloud.words = function (_) {
|
|
156
|
+
cloud.words = function (_?) {
|
|
157
157
|
return arguments.length ? (words = _, cloud) : words;
|
|
158
158
|
};
|
|
159
159
|
|
|
160
|
-
cloud.size = function (_) {
|
|
160
|
+
cloud.size = function (_?) {
|
|
161
161
|
return arguments.length ? (size = [+_[0], +_[1]], cloud) : size;
|
|
162
162
|
};
|
|
163
163
|
|
|
164
|
-
cloud.font = function (_) {
|
|
164
|
+
cloud.font = function (_?) {
|
|
165
165
|
return arguments.length ? (font = functor(_), cloud) : font;
|
|
166
166
|
};
|
|
167
167
|
|
|
168
|
-
cloud.fontStyle = function (_) {
|
|
168
|
+
cloud.fontStyle = function (_?) {
|
|
169
169
|
return arguments.length ? (fontStyle = functor(_), cloud) : fontStyle;
|
|
170
170
|
};
|
|
171
171
|
|
|
172
|
-
cloud.fontWeight = function (_) {
|
|
172
|
+
cloud.fontWeight = function (_?) {
|
|
173
173
|
return arguments.length ? (fontWeight = functor(_), cloud) : fontWeight;
|
|
174
174
|
};
|
|
175
175
|
|
|
176
|
-
cloud.rotate = function (_) {
|
|
176
|
+
cloud.rotate = function (_?) {
|
|
177
177
|
return arguments.length ? (rotate = functor(_), cloud) : rotate;
|
|
178
178
|
};
|
|
179
179
|
|
|
180
|
-
cloud.text = function (_) {
|
|
180
|
+
cloud.text = function (_?) {
|
|
181
181
|
return arguments.length ? (text = functor(_), cloud) : text;
|
|
182
182
|
};
|
|
183
183
|
|
|
184
|
-
cloud.spiral = function (_) {
|
|
184
|
+
cloud.spiral = function (_?) {
|
|
185
185
|
return arguments.length ? (spiral = spirals[_] || _, cloud) : spiral;
|
|
186
186
|
};
|
|
187
187
|
|
|
188
|
-
cloud.fontSize = function (_) {
|
|
188
|
+
cloud.fontSize = function (_?) {
|
|
189
189
|
return arguments.length ? (fontSize = functor(_), cloud) : fontSize;
|
|
190
190
|
};
|
|
191
191
|
|
|
192
|
-
cloud.padding = function (_) {
|
|
192
|
+
cloud.padding = function (_?) {
|
|
193
193
|
return arguments.length ? (padding = functor(_), cloud) : padding;
|
|
194
194
|
};
|
|
195
195
|
|
|
196
|
-
cloud.random = function (_) {
|
|
196
|
+
cloud.random = function (_?) {
|
|
197
197
|
return arguments.length ? (random = _, cloud) : random;
|
|
198
198
|
};
|
|
199
199
|
|
package/src/HexBin.ts
CHANGED
|
@@ -118,21 +118,26 @@ export class HexBin extends XYAxis {
|
|
|
118
118
|
dblclick(row: object[], column, selected) {
|
|
119
119
|
// console.log("Click: " + JSON.stringify(row) + ", " + column + ", " + selected);
|
|
120
120
|
}
|
|
121
|
+
}
|
|
122
|
+
HexBin.prototype._class += " chart_HexBin";
|
|
123
|
+
HexBin.prototype.implements(I2DAggrChart.prototype);
|
|
124
|
+
HexBin.prototype.implements(ITooltip.prototype);
|
|
121
125
|
|
|
126
|
+
export interface HexBin {
|
|
122
127
|
// ITooltip
|
|
123
128
|
tooltip;
|
|
124
|
-
tooltipHTML
|
|
125
|
-
tooltipFormat
|
|
126
|
-
tooltipValueFormat
|
|
127
|
-
tooltipValueFormat_default
|
|
129
|
+
tooltipHTML(_): string;
|
|
130
|
+
tooltipFormat(_): string;
|
|
131
|
+
tooltipValueFormat(_): string;
|
|
132
|
+
tooltipValueFormat_default(_): string;
|
|
128
133
|
|
|
129
|
-
paletteID
|
|
130
|
-
|
|
131
|
-
|
|
134
|
+
paletteID(): string;
|
|
135
|
+
paletteID(_: string): this;
|
|
136
|
+
useClonedPalette(): boolean;
|
|
137
|
+
useClonedPalette(_: boolean): this;
|
|
138
|
+
binSize(): number;
|
|
139
|
+
binSize(_: number): this;
|
|
132
140
|
}
|
|
133
|
-
HexBin.prototype._class += " chart_HexBin";
|
|
134
|
-
HexBin.prototype.implements(I2DAggrChart.prototype);
|
|
135
|
-
HexBin.prototype.implements(ITooltip.prototype);
|
|
136
141
|
|
|
137
142
|
HexBin.prototype.publish("paletteID", "Blues", "set", "Color palette for this widget", HexBin.prototype._palette.switch(), { tags: ["Basic", "Shared"] });
|
|
138
143
|
HexBin.prototype.publish("useClonedPalette", false, "boolean", "Enable or disable using a cloned palette", null, { tags: ["Intermediate", "Shared"] });
|
package/src/Pie.ts
CHANGED
|
@@ -437,38 +437,12 @@ export class Pie extends SVGWidget {
|
|
|
437
437
|
})
|
|
438
438
|
;
|
|
439
439
|
}
|
|
440
|
-
|
|
441
|
-
paletteID: (_?: string) => string | Pie;
|
|
442
|
-
useClonedPalette: (_?: boolean) => boolean | Pie;
|
|
443
|
-
outerText: (_?: boolean) => boolean | Pie;
|
|
444
|
-
innerRadius: { (): number; (_: number): Pie; };
|
|
445
|
-
innerRadius_exists: () => boolean;
|
|
446
|
-
|
|
447
|
-
// I2DChart
|
|
448
|
-
_palette;
|
|
449
|
-
fillColor: (row: any[], column: string, value: number) => string;
|
|
450
|
-
textColor: (row: any[], column: string, value: number) => string;
|
|
451
|
-
click: (row, column, selected) => void;
|
|
452
|
-
dblclick: (row, column, selected) => void;
|
|
453
|
-
|
|
454
|
-
// ITooltip
|
|
455
|
-
tooltip;
|
|
456
|
-
tooltipHTML: (_) => string;
|
|
457
|
-
tooltipFormat: (_) => string;
|
|
458
|
-
tooltipStyle: () => "default" | "none" | "series-table";
|
|
459
|
-
tooltipTick: { (): boolean; (_: boolean): Pie; };
|
|
460
|
-
tooltipTick_default: { (): boolean; (_: boolean): Pie; };
|
|
461
|
-
tooltipOffset: { (): number; (_: number): Pie; };
|
|
462
|
-
tooltipOffset_default: { (): number; (_: number): Pie; };
|
|
463
|
-
|
|
464
|
-
// SimpleSelectionMixin
|
|
465
|
-
_selection: Utility.SimpleSelection;
|
|
466
440
|
}
|
|
467
|
-
|
|
468
441
|
Pie.prototype._class += " chart_Pie";
|
|
469
442
|
Pie.prototype.implements(I2DChart.prototype);
|
|
470
443
|
Pie.prototype.implements(ITooltip.prototype);
|
|
471
444
|
Pie.prototype.mixin(Utility.SimpleSelectionMixin);
|
|
445
|
+
|
|
472
446
|
export interface Pie {
|
|
473
447
|
showSeriesValue(): boolean;
|
|
474
448
|
showSeriesValue(_: boolean): this;
|
|
@@ -488,6 +462,36 @@ export interface Pie {
|
|
|
488
462
|
showLabels(_: boolean): this;
|
|
489
463
|
sortDataByValue(): "none" | "ascending" | "descending";
|
|
490
464
|
sortDataByValue(_: "none" | "ascending" | "descending"): this;
|
|
465
|
+
|
|
466
|
+
paletteID(_?: string): string | Pie;
|
|
467
|
+
useClonedPalette(_?: boolean): boolean | Pie;
|
|
468
|
+
outerText(_?: boolean): boolean | Pie;
|
|
469
|
+
innerRadius(): number;
|
|
470
|
+
innerRadius_exists(): boolean;
|
|
471
|
+
|
|
472
|
+
// I2DChart
|
|
473
|
+
_palette;
|
|
474
|
+
fillColor(row: any[], column: string, value: number): string;
|
|
475
|
+
textColor(row: any[], column: string, value: number): string;
|
|
476
|
+
click(row, column, selected): void;
|
|
477
|
+
dblclick(row, column, selected): void;
|
|
478
|
+
|
|
479
|
+
// ITooltip
|
|
480
|
+
tooltip;
|
|
481
|
+
tooltipHTML(_): string;
|
|
482
|
+
tooltipFormat(_): string;
|
|
483
|
+
tooltipStyle(): "default" | "none" | "series-table";
|
|
484
|
+
tooltipTick(): boolean;
|
|
485
|
+
tooltipTick(_: boolean): Pie;
|
|
486
|
+
tooltipTick_default(): boolean;
|
|
487
|
+
tooltipTick_default(_: boolean): Pie;
|
|
488
|
+
tooltipOffset(): number;
|
|
489
|
+
tooltipOffset(_: number): Pie;
|
|
490
|
+
tooltipOffset_default(): number;
|
|
491
|
+
tooltipOffset_default(_: number): Pie;
|
|
492
|
+
|
|
493
|
+
// SimpleSelectionMixin
|
|
494
|
+
_selection: Utility.SimpleSelection;
|
|
491
495
|
}
|
|
492
496
|
Pie.prototype.publish("showLabels", true, "boolean", "If true, wedge labels will display");
|
|
493
497
|
Pie.prototype.publish("showSeriesValue", false, "boolean", "Append data series value next to label", null, { disable: w => !w.showLabels() });
|
package/src/Radar.ts
CHANGED
|
@@ -282,21 +282,6 @@ export class Radar extends SVGWidget {
|
|
|
282
282
|
}
|
|
283
283
|
return inside;
|
|
284
284
|
}
|
|
285
|
-
|
|
286
|
-
// INDChart
|
|
287
|
-
_palette;
|
|
288
|
-
fillColor: (row, column, value) => string;
|
|
289
|
-
strokeColor: (row, column, value) => string;
|
|
290
|
-
textColor: (row, column, value) => string;
|
|
291
|
-
click: (row, column, selected) => void;
|
|
292
|
-
dblclick: (row, column, selected) => void;
|
|
293
|
-
|
|
294
|
-
// ITooltip
|
|
295
|
-
tooltip;
|
|
296
|
-
tooltipHTML: (_) => string;
|
|
297
|
-
tooltipFormat: (_) => string;
|
|
298
|
-
|
|
299
|
-
_selection;
|
|
300
285
|
}
|
|
301
286
|
Radar.prototype._class += " chart_Radar";
|
|
302
287
|
Radar.prototype.implements(INDChart.prototype);
|
|
@@ -324,6 +309,21 @@ export interface Radar {
|
|
|
324
309
|
pointShape(_: string): this;
|
|
325
310
|
pointSize(): number;
|
|
326
311
|
pointSize(_: number): this;
|
|
312
|
+
|
|
313
|
+
// INDChart
|
|
314
|
+
_palette;
|
|
315
|
+
fillColor(row, column, value): string;
|
|
316
|
+
strokeColor(row, column, value): string;
|
|
317
|
+
textColor(row, column, value): string;
|
|
318
|
+
click(row, column, selected): void;
|
|
319
|
+
dblclick(row, column, selected): void;
|
|
320
|
+
|
|
321
|
+
// ITooltip
|
|
322
|
+
tooltip;
|
|
323
|
+
tooltipHTML(_): string;
|
|
324
|
+
tooltipFormat(_): string;
|
|
325
|
+
|
|
326
|
+
_selection;
|
|
327
327
|
}
|
|
328
328
|
|
|
329
329
|
Radar.prototype.publish("paletteID", "default", "set", "Color palette for this widget", Radar.prototype._palette.switch());
|
package/src/RadialBar.ts
CHANGED
|
@@ -168,24 +168,12 @@ export class RadialBar extends SVGWidget {
|
|
|
168
168
|
return degrees * Math.PI / 180;
|
|
169
169
|
}
|
|
170
170
|
|
|
171
|
-
// INDChart
|
|
172
|
-
_palette;
|
|
173
|
-
fillColor: (row, column, value) => string;
|
|
174
|
-
strokeColor: (row, column, value) => string;
|
|
175
|
-
textColor: (row, column, value) => string;
|
|
176
|
-
click: (row, column, selected) => void;
|
|
177
|
-
dblclick: (row, column, selected) => void;
|
|
178
|
-
|
|
179
|
-
// ITooltip
|
|
180
|
-
tooltip;
|
|
181
|
-
tooltipHTML: (_) => string;
|
|
182
|
-
tooltipFormat: (_) => string;
|
|
183
|
-
_selection;
|
|
184
171
|
}
|
|
185
172
|
RadialBar.prototype._class += " chart_RadialBar";
|
|
186
173
|
RadialBar.prototype.implements(INDChart.prototype);
|
|
187
174
|
RadialBar.prototype.implements(ITooltip.prototype);
|
|
188
175
|
RadialBar.prototype.mixin(Utility.SimpleSelectionMixin);
|
|
176
|
+
|
|
189
177
|
export interface RadialBar {
|
|
190
178
|
paletteID(): string;
|
|
191
179
|
paletteID(_: string): this;
|
|
@@ -202,7 +190,24 @@ export interface RadialBar {
|
|
|
202
190
|
transitionDelay(_: number): this;
|
|
203
191
|
transitionDuration(): number;
|
|
204
192
|
transitionDuration(_: number): this;
|
|
193
|
+
|
|
194
|
+
// INDChart
|
|
195
|
+
_palette;
|
|
196
|
+
fillColor(row, column, value): string;
|
|
197
|
+
strokeColor(row, column, value): string;
|
|
198
|
+
textColor(row, column, value): string;
|
|
199
|
+
click(row, column, selected): void;
|
|
200
|
+
dblclick(row, column, selected): void;
|
|
201
|
+
|
|
202
|
+
// ITooltip
|
|
203
|
+
tooltip;
|
|
204
|
+
tooltipHTML(_): string;
|
|
205
|
+
tooltipFormat(_): string;
|
|
206
|
+
|
|
207
|
+
// SimpleSelectionMixin
|
|
208
|
+
_selection;
|
|
205
209
|
}
|
|
210
|
+
|
|
206
211
|
RadialBar.prototype.publish("paletteID", "default", "set", "Color palette for this widget", RadialBar.prototype._palette.switch());
|
|
207
212
|
RadialBar.prototype.publish("tickCount", 10, "number", "Number of ticks to display");
|
|
208
213
|
RadialBar.prototype.publish("domainPadding", 0.25, "number", "Padding between chart edge and container edge (0..1)");
|
package/src/Scatter.ts
CHANGED
|
@@ -321,34 +321,13 @@ export class Scatter extends XYAxis {
|
|
|
321
321
|
exit(domNode, element) {
|
|
322
322
|
super.exit(domNode, element);
|
|
323
323
|
}
|
|
324
|
-
|
|
325
|
-
paletteID: { (): string; (_: string): Scatter; };
|
|
326
|
-
useClonedPalette: { (): boolean; (_: boolean): Scatter; };
|
|
327
|
-
pointSizeScale: { (): string; (_: string): Scatter; };
|
|
328
|
-
pointShape: { (): string; (_: string): Scatter; };
|
|
329
|
-
pointSize: { (): number; (_: number): Scatter; };
|
|
330
|
-
interpolate: { (): string; (_: string): Scatter; };
|
|
331
|
-
interpolate_default: { (): string; (_: string): Scatter; };
|
|
332
|
-
interpolateFill: { (): boolean; (_: boolean): Scatter; };
|
|
333
|
-
interpolateFill_default: { (): boolean; (_: boolean): Scatter; };
|
|
334
|
-
interpolateFillOpacity: { (): number; (_: number): Scatter; };
|
|
335
|
-
|
|
336
|
-
// INDChart
|
|
337
|
-
fillColor: (row, column, value, origRow) => string;
|
|
338
|
-
strokeColor: (row, column, value, origRow) => string;
|
|
339
|
-
textColor: (row, column, value, origRow) => string;
|
|
340
|
-
dblclick: (row, column, selected) => void;
|
|
341
|
-
|
|
342
|
-
// ITooltip
|
|
343
|
-
tooltip;
|
|
344
|
-
tooltipHTML: (_) => string;
|
|
345
|
-
tooltipFormat: (_) => string;
|
|
346
|
-
tooltipStyle: () => "default" | "none" | "series-table";
|
|
347
324
|
}
|
|
348
325
|
Scatter.prototype._class += " chart_Scatter";
|
|
349
326
|
Scatter.prototype.implements(INDChart.prototype);
|
|
350
327
|
Scatter.prototype.implements(ITooltip.prototype);
|
|
328
|
+
|
|
351
329
|
export interface Scatter {
|
|
330
|
+
|
|
352
331
|
valueAnchor(): string;
|
|
353
332
|
valueAnchor(_: string): this;
|
|
354
333
|
valueBaseline(): string;
|
|
@@ -359,6 +338,39 @@ export interface Scatter {
|
|
|
359
338
|
pointDarken(_: boolean): this;
|
|
360
339
|
interpolateDarken(): boolean;
|
|
361
340
|
interpolateDarken(_: boolean): this;
|
|
341
|
+
|
|
342
|
+
paletteID(): string;
|
|
343
|
+
paletteID(_: string): this;
|
|
344
|
+
useClonedPalette(): boolean;
|
|
345
|
+
useClonedPalette(_: boolean): this;
|
|
346
|
+
pointSizeScale(): string;
|
|
347
|
+
pointSizeScale(_: string): this;
|
|
348
|
+
pointShape(): string;
|
|
349
|
+
pointShape(_: string): this;
|
|
350
|
+
pointSize(): number;
|
|
351
|
+
pointSize(_: number): this;
|
|
352
|
+
interpolate(): string;
|
|
353
|
+
interpolate(_: string): this;
|
|
354
|
+
interpolate_default(): string;
|
|
355
|
+
interpolate_default(_: string): this;
|
|
356
|
+
interpolateFill(): boolean;
|
|
357
|
+
interpolateFill(_: boolean): this;
|
|
358
|
+
interpolateFill_default(): boolean;
|
|
359
|
+
interpolateFill_default(_: boolean): this;
|
|
360
|
+
interpolateFillOpacity(): number;
|
|
361
|
+
interpolateFillOpacity(_: number): this;
|
|
362
|
+
|
|
363
|
+
// INDChart
|
|
364
|
+
fillColor(row, column, value, origRow): string;
|
|
365
|
+
strokeColor(row, column, value, origRow): string;
|
|
366
|
+
textColor(row, column, value, origRow): string;
|
|
367
|
+
dblclick(row, column, selected): void;
|
|
368
|
+
|
|
369
|
+
// ITooltip
|
|
370
|
+
tooltip;
|
|
371
|
+
tooltipHTML(_): string;
|
|
372
|
+
tooltipFormat(_): string;
|
|
373
|
+
tooltipStyle(): "default" | "none" | "series-table";
|
|
362
374
|
}
|
|
363
375
|
Scatter.prototype.publish("paletteID", "default", "set", "Color palette for this widget", Scatter.prototype._palette.switch(), { tags: ["Basic", "Shared"] });
|
|
364
376
|
Scatter.prototype.publish("pointSizeScale", "linear", "set", "pointSizeScale", ["linear", "pow", "log", "sqrt"]);
|
package/src/StatChart.ts
CHANGED
|
@@ -221,8 +221,16 @@ export class StatChart extends HTMLWidget {
|
|
|
221
221
|
this.updateScatter();
|
|
222
222
|
this.updateCandle();
|
|
223
223
|
}
|
|
224
|
+
|
|
225
|
+
exit(domNode, element) {
|
|
226
|
+
this._bellCurve.target(null);
|
|
227
|
+
this._candle.target(null);
|
|
228
|
+
this._selectElement.remove();
|
|
229
|
+
|
|
230
|
+
super.exit(domNode, element);
|
|
231
|
+
}
|
|
224
232
|
}
|
|
225
|
-
StatChart.prototype._class += "
|
|
233
|
+
StatChart.prototype._class += " chart_StatChart";
|
|
226
234
|
|
|
227
235
|
export interface StatChart {
|
|
228
236
|
view(): StatChartView;
|