123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- 'use strict';
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
- /*
- *+------------------------------------------------------------------------+
- *| Licensed Materials - Property of IBM
- *| IBM Cognos Products: Dashboard
- *| (C) Copyright IBM Corp. 2019
- *|
- *| US Government Users Restricted Rights - Use, duplication or disclosure
- *| restricted by GSA ADP Schedule Contract with IBM Corp.
- *+------------------------------------------------------------------------+
- */
- define([], function () {
- var VisRecommenderUtils = function () {
- function VisRecommenderUtils() {
- _classCallCheck(this, VisRecommenderUtils);
- }
- /**
- * Build a list of smart service chart types that dashboard supports
- * @param {Array<VisDefinitionAPI>} visDefinitions VisDefinitionAPI's
- * @returns {Array<String>} Smart service chart types supported by dashboard
- */
- VisRecommenderUtils.buildChartTypes = function buildChartTypes(visDefinitions) {
- var chartTypes = [];
- if (!visDefinitions) {
- return chartTypes;
- }
- chartTypes = visDefinitions.map(function (visDefinition) {
- return visDefinition.getType();
- });
- chartTypes.push('ClusteredBar', 'ClusteredColumn', 'ClusteredLine', 'ClusteredPoint', 'HierarchicalPie', 'StackedArea');
- return chartTypes;
- };
- return VisRecommenderUtils;
- }();
- return VisRecommenderUtils;
- });
- //# sourceMappingURL=VisRecommenderUtils.js.map
|