@gooddata/react-components
Version:
GoodData.UI - A powerful JavaScript library for building analytical applications
32 lines • 1.62 kB
JavaScript
;
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return extendStatics(d, b);
};
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
var PluggablePieChart_1 = require("../pieChart/PluggablePieChart");
var donutChartUiConfigHelper_1 = require("../../../utils/uiConfigHelpers/donutChartUiConfigHelper");
var visualizationTypes_1 = require("../../../../constants/visualizationTypes");
var PluggableDonutChart = /** @class */ (function (_super) {
__extends(PluggableDonutChart, _super);
function PluggableDonutChart(props) {
var _this = _super.call(this, props) || this;
_this.type = visualizationTypes_1.VisualizationTypes.DONUT;
return _this;
}
PluggableDonutChart.prototype.getExtendedReferencePoint = function (referencePoint) {
return _super.prototype.getExtendedReferencePoint.call(this, referencePoint).then(donutChartUiConfigHelper_1.setDonutChartUiConfig);
};
return PluggableDonutChart;
}(PluggablePieChart_1.PluggablePieChart));
exports.PluggableDonutChart = PluggableDonutChart;
//# sourceMappingURL=PluggableDonutChart.js.map