@carbon/charts-react 0.41.6 → 0.41.11
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/CHANGELOG.md +40 -0
- package/area-chart-stacked.d.ts +12 -0
- package/area-chart-stacked.js +39 -47
- package/area-chart.d.ts +12 -0
- package/area-chart.js +39 -47
- package/bar-chart-grouped.d.ts +12 -0
- package/bar-chart-grouped.js +39 -47
- package/bar-chart-simple.d.ts +12 -0
- package/bar-chart-simple.js +39 -47
- package/bar-chart-stacked.d.ts +12 -0
- package/bar-chart-stacked.js +39 -47
- package/base-chart.d.ts +17 -0
- package/base-chart.js +46 -53
- package/bubble-chart.d.ts +12 -0
- package/bubble-chart.js +39 -47
- package/bundle.js +1 -1
- package/combo-chart.d.ts +12 -0
- package/combo-chart.js +39 -47
- package/donut-chart.d.ts +12 -0
- package/donut-chart.js +39 -47
- package/gauge-chart.d.ts +12 -0
- package/gauge-chart.js +39 -47
- package/index.d.ts +17 -0
- package/index.js +38 -17
- package/line-chart.d.ts +12 -0
- package/line-chart.js +39 -47
- package/lollipop-chart.d.ts +12 -0
- package/lollipop-chart.js +39 -0
- package/meter-chart.d.ts +12 -0
- package/meter-chart.js +39 -47
- package/package.json +7 -3
- package/pie-chart.d.ts +12 -0
- package/pie-chart.js +39 -47
- package/radar-chart.d.ts +12 -0
- package/radar-chart.js +39 -47
- package/scatter-chart.d.ts +12 -0
- package/scatter-chart.js +39 -47
- package/treemap-chart.d.ts +12 -0
- package/treemap-chart.js +39 -47
package/scatter-chart.js
CHANGED
|
@@ -1,47 +1,39 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
className: "chart-holder" });
|
|
41
|
-
}
|
|
42
|
-
}]);
|
|
43
|
-
|
|
44
|
-
return ScatterChart;
|
|
45
|
-
}(BaseChart);
|
|
46
|
-
|
|
47
|
-
export default ScatterChart;
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
extendStatics(d, b);
|
|
11
|
+
function __() { this.constructor = d; }
|
|
12
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
13
|
+
};
|
|
14
|
+
})();
|
|
15
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
16
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
17
|
+
};
|
|
18
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
+
var react_1 = __importDefault(require("react"));
|
|
20
|
+
var charts_1 = require("@carbon/charts");
|
|
21
|
+
var base_chart_1 = __importDefault(require("./base-chart"));
|
|
22
|
+
var ScatterChart = /** @class */ (function (_super) {
|
|
23
|
+
__extends(ScatterChart, _super);
|
|
24
|
+
function ScatterChart() {
|
|
25
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
26
|
+
}
|
|
27
|
+
ScatterChart.prototype.componentDidMount = function () {
|
|
28
|
+
this.chart = new charts_1.ScatterChart(this.chartRef, {
|
|
29
|
+
data: this.props.data,
|
|
30
|
+
options: this.props.options,
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
ScatterChart.prototype.render = function () {
|
|
34
|
+
var _this = this;
|
|
35
|
+
return (react_1.default.createElement("div", { ref: function (chartRef) { return (_this.chartRef = chartRef); }, className: "chart-holder" }));
|
|
36
|
+
};
|
|
37
|
+
return ScatterChart;
|
|
38
|
+
}(base_chart_1.default));
|
|
39
|
+
exports.default = ScatterChart;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { TreemapChart as TC } from "@carbon/charts";
|
|
2
|
+
import BaseChart from "./base-chart";
|
|
3
|
+
import { ChartConfig, TreemapChartOptions } from "@carbon/charts/interfaces";
|
|
4
|
+
declare type TreemapChartProps = ChartConfig<TreemapChartOptions>;
|
|
5
|
+
export default class TreemapChart extends BaseChart<TreemapChartOptions> {
|
|
6
|
+
chartRef: HTMLDivElement;
|
|
7
|
+
props: TreemapChartProps;
|
|
8
|
+
chart: TC;
|
|
9
|
+
componentDidMount(): void;
|
|
10
|
+
render(): JSX.Element;
|
|
11
|
+
}
|
|
12
|
+
export {};
|
package/treemap-chart.js
CHANGED
|
@@ -1,47 +1,39 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
className: "chart-holder" });
|
|
41
|
-
}
|
|
42
|
-
}]);
|
|
43
|
-
|
|
44
|
-
return TreemapChart;
|
|
45
|
-
}(BaseChart);
|
|
46
|
-
|
|
47
|
-
export default TreemapChart;
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
extendStatics(d, b);
|
|
11
|
+
function __() { this.constructor = d; }
|
|
12
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
13
|
+
};
|
|
14
|
+
})();
|
|
15
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
16
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
17
|
+
};
|
|
18
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
+
var react_1 = __importDefault(require("react"));
|
|
20
|
+
var charts_1 = require("@carbon/charts");
|
|
21
|
+
var base_chart_1 = __importDefault(require("./base-chart"));
|
|
22
|
+
var TreemapChart = /** @class */ (function (_super) {
|
|
23
|
+
__extends(TreemapChart, _super);
|
|
24
|
+
function TreemapChart() {
|
|
25
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
26
|
+
}
|
|
27
|
+
TreemapChart.prototype.componentDidMount = function () {
|
|
28
|
+
this.chart = new charts_1.TreemapChart(this.chartRef, {
|
|
29
|
+
data: this.props.data,
|
|
30
|
+
options: this.props.options,
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
TreemapChart.prototype.render = function () {
|
|
34
|
+
var _this = this;
|
|
35
|
+
return (react_1.default.createElement("div", { ref: function (chartRef) { return (_this.chartRef = chartRef); }, className: "chart-holder" }));
|
|
36
|
+
};
|
|
37
|
+
return TreemapChart;
|
|
38
|
+
}(base_chart_1.default));
|
|
39
|
+
exports.default = TreemapChart;
|