@gooddata/react-components
Version:
GoodData.UI - A powerful JavaScript library for building analytical applications
44 lines • 2.12 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 });
// (C) 2019 GoodData Corporation
var cloneDeep = require("lodash/cloneDeep");
var PluggableColumnBarCharts_1 = require("../PluggableColumnBarCharts");
var axis_1 = require("../../../constants/axis");
var supportedProperties_1 = require("../../../constants/supportedProperties");
var uiConfig_1 = require("../../../constants/uiConfig");
var visualizationTypes_1 = require("../../../../constants/visualizationTypes");
var PluggableColumnChart = /** @class */ (function (_super) {
__extends(PluggableColumnChart, _super);
function PluggableColumnChart(props) {
var _this = _super.call(this, props) || this;
_this.secondaryAxis = axis_1.AXIS_NAME.SECONDARY_Y;
_this.type = visualizationTypes_1.VisualizationTypes.COLUMN;
_this.defaultControlsProperties = {
stackMeasures: false,
};
_this.initializeProperties(props.visualizationProperties);
return _this;
}
PluggableColumnChart.prototype.getUiConfig = function () {
return cloneDeep(uiConfig_1.COLUMN_BAR_CHART_UICONFIG);
};
PluggableColumnChart.prototype.getSupportedPropertiesList = function () {
return supportedProperties_1.COLUMN_CHART_SUPPORTED_PROPERTIES[this.axis || axis_1.AXIS.DUAL] || [];
};
return PluggableColumnChart;
}(PluggableColumnBarCharts_1.PluggableColumnBarCharts));
exports.PluggableColumnChart = PluggableColumnChart;
//# sourceMappingURL=PluggableColumnChart.js.map