"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getAvailableChartTypes = void 0;
const isMetricsOnlyFunnel_1 = require("../../shared/isMetricsOnlyFunnel");
/**
 * Gets all available chart types for a query
 */
const getAvailableChartTypes = (metricQuery) => {
    const types = ['table'];
    if (metricQuery.metrics.length > 0 && metricQuery.dimensions.length > 0) {
        types.push('bar', 'horizontal', 'line', 'scatter', 'pie', 'funnel');
    }
    else if ((0, isMetricsOnlyFunnel_1.isMetricsOnlyFunnel)(metricQuery)) {
        // Single-row results can still render a funnel with one stage per metric
        types.push('funnel');
    }
    return types;
};
exports.getAvailableChartTypes = getAvailableChartTypes;
//# sourceMappingURL=getAvailableChartTypes.js.map