@hpcc-js/chart 2.76.1 → 2.78.1
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/README.md +64 -22
- package/dist/index.es6.js +27 -8
- package/dist/index.es6.js.map +1 -1
- package/dist/index.js +27 -8
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/package.json +6 -6
- package/src/Area.md +176 -0
- package/src/Bar.md +91 -0
- package/src/Bubble.md +69 -0
- package/src/Bullet.md +104 -0
- package/src/Bullet.ts +2 -2
- package/src/Column.md +90 -0
- package/src/Contour.md +88 -0
- package/src/Gantt.md +119 -0
- package/src/Gauge.md +148 -0
- package/src/HalfPie.md +62 -0
- package/src/Heat.md +1 -0
- package/src/HexBin.md +88 -0
- package/src/HexBin.ts +2 -2
- package/src/Line.md +170 -0
- package/src/Pie.md +88 -0
- package/src/Pie.ts +23 -0
- package/src/QuarterPie.md +61 -0
- package/src/QuartileCandlestick.md +129 -0
- package/src/Radar.md +104 -0
- package/src/RadialBar.md +91 -0
- package/src/Scatter.md +163 -0
- package/src/StatChart.md +117 -0
- package/src/Step.md +163 -0
- package/src/Summary.md +219 -0
- package/src/SummaryC.md +154 -0
- package/src/WordCloud.md +144 -0
- package/src/XYAxis.md +149 -0
- package/src/XYAxis.ts +1 -2
- package/src/__package__.ts +2 -2
- package/src/test.ts +31 -0
- package/types/Pie.d.ts +3 -0
- package/types/Pie.d.ts.map +1 -1
- package/types/XYAxis.d.ts.map +1 -1
- package/types/__package__.d.ts +2 -2
- package/types/test.d.ts +6 -0
- package/types/test.d.ts.map +1 -0
- package/types-3.4/Pie.d.ts +3 -0
- package/types-3.4/__package__.d.ts +2 -2
- package/types-3.4/test.d.ts +6 -0
package/dist/index.js
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
})(this, (function (exports, api, common, util) { 'use strict';
|
|
6
6
|
|
|
7
7
|
var PKG_NAME = "@hpcc-js/chart";
|
|
8
|
-
var PKG_VERSION = "2.
|
|
9
|
-
var BUILD_VERSION = "2.
|
|
8
|
+
var PKG_VERSION = "2.78.1";
|
|
9
|
+
var BUILD_VERSION = "2.103.1";
|
|
10
10
|
|
|
11
11
|
/*! *****************************************************************************
|
|
12
12
|
Copyright (c) Microsoft Corporation.
|
|
@@ -2466,7 +2466,6 @@
|
|
|
2466
2466
|
var currSel = common.brushSelection(this.focusChart.svgBrush.node());
|
|
2467
2467
|
if (currSel) {
|
|
2468
2468
|
if (this.focusChart.xAxisType() !== "ordinal") {
|
|
2469
|
-
console.log(JSON.stringify([this.focusChart.xAxis.invert(currSel[0]), this.focusChart.xAxis.invert(currSel[1])]));
|
|
2470
2469
|
this.xAxis.domain([this.focusChart.xAxis.invert(currSel[0]), this.focusChart.xAxis.invert(currSel[1])]);
|
|
2471
2470
|
}
|
|
2472
2471
|
else {
|
|
@@ -2562,7 +2561,7 @@
|
|
|
2562
2561
|
};
|
|
2563
2562
|
// Events ---
|
|
2564
2563
|
XYAxis.prototype.click = function (row, column, selected) {
|
|
2565
|
-
console.log("Click: " + JSON.stringify(row) + ", " + column + ", " + selected);
|
|
2564
|
+
// console.log("Click: " + JSON.stringify(row) + ", " + column + ", " + selected);
|
|
2566
2565
|
};
|
|
2567
2566
|
return XYAxis;
|
|
2568
2567
|
}(common.SVGWidget));
|
|
@@ -4459,10 +4458,10 @@
|
|
|
4459
4458
|
};
|
|
4460
4459
|
// Events ---
|
|
4461
4460
|
Bullet.prototype.click = function (row, column, selected) {
|
|
4462
|
-
console.log("Click: " + JSON.stringify(row) + ", " + column + "," + selected);
|
|
4461
|
+
// console.log("Click: " + JSON.stringify(row) + ", " + column + "," + selected);
|
|
4463
4462
|
};
|
|
4464
4463
|
Bullet.prototype.dblclick = function (row, column, selected) {
|
|
4465
|
-
console.log("Double click: " + JSON.stringify(row) + ", " + column + "," + selected);
|
|
4464
|
+
// console.log("Double click: " + JSON.stringify(row) + ", " + column + "," + selected);
|
|
4466
4465
|
};
|
|
4467
4466
|
__decorate([
|
|
4468
4467
|
common.publish(null, "set", "Title Column", function () { return this.columns(); }, { optional: true }),
|
|
@@ -8565,6 +8564,26 @@
|
|
|
8565
8564
|
}
|
|
8566
8565
|
return label;
|
|
8567
8566
|
};
|
|
8567
|
+
Pie.prototype.selection = function (_) {
|
|
8568
|
+
var _a;
|
|
8569
|
+
if (!arguments.length) {
|
|
8570
|
+
try {
|
|
8571
|
+
return (_a = this._selection.selection2()[0]) === null || _a === void 0 ? void 0 : _a.data;
|
|
8572
|
+
}
|
|
8573
|
+
catch (e) {
|
|
8574
|
+
return undefined;
|
|
8575
|
+
}
|
|
8576
|
+
}
|
|
8577
|
+
// Stringify to enable a deep equal
|
|
8578
|
+
var strRow = JSON.stringify(_);
|
|
8579
|
+
this._selection.selection2(function (d) { return strRow === JSON.stringify(d.data); });
|
|
8580
|
+
};
|
|
8581
|
+
Pie.prototype.selectByLabel = function (_) {
|
|
8582
|
+
var row = this.data().filter(function (row) { return row[0] === _; })[0];
|
|
8583
|
+
if (row) {
|
|
8584
|
+
this.selection(row);
|
|
8585
|
+
}
|
|
8586
|
+
};
|
|
8568
8587
|
Pie.prototype.enter = function (_domNode, element) {
|
|
8569
8588
|
_super.prototype.enter.call(this, _domNode, element);
|
|
8570
8589
|
this._selection.widgetElement(element);
|
|
@@ -9276,10 +9295,10 @@
|
|
|
9276
9295
|
};
|
|
9277
9296
|
// Events ---
|
|
9278
9297
|
HexBin.prototype.click = function (row, column, selected) {
|
|
9279
|
-
console.log("Click: " + JSON.stringify(row) + ", " + column + ", " + selected);
|
|
9298
|
+
// console.log("Click: " + JSON.stringify(row) + ", " + column + ", " + selected);
|
|
9280
9299
|
};
|
|
9281
9300
|
HexBin.prototype.dblclick = function (row, column, selected) {
|
|
9282
|
-
console.log("Click: " + JSON.stringify(row) + ", " + column + ", " + selected);
|
|
9301
|
+
// console.log("Click: " + JSON.stringify(row) + ", " + column + ", " + selected);
|
|
9283
9302
|
};
|
|
9284
9303
|
HexBin.__inputs = [{
|
|
9285
9304
|
id: "x",
|