import { ZoneConverterBase } from './base';
/**
 * @description 分区柱状图转换器
 * @export
 * @class ZoneColConverter
 * @extends {ZoneConverterBase}
 */
export class ZoneColConverter extends ZoneConverterBase {
    constructor() {
        super(...arguments);
        /**
         * @description 仿真模型
         * @type {IModel}
         * @memberof ZoneColConverter
         */
        this.mockModel = {
            userParam: {},
            dechartLegend: {
                id: 'legend',
                showLegend: false,
                appId: this.appBIReport.appId,
            },
            dechartTitle: {
                id: 'title',
                showTitle: false,
                appId: this.appBIReport.appId,
            },
            chartXAxises: [
                {
                    id: '0',
                    type: 'category',
                    position: 'bottom',
                    echartsPos: 'xAxis',
                    name: 'axis_xAxis_0',
                    echartsType: 'category',
                    appId: this.appBIReport.appId,
                },
            ],
            chartYAxises: [
                {
                    id: '0',
                    type: 'numeric',
                    position: 'left',
                    echartsPos: 'yAxis',
                    echartsType: 'value',
                    name: 'axis_yAxis_0',
                    appId: this.appBIReport.appId,
                },
            ],
            readOnly: true,
            autoLoad: true,
            dechartSerieses: [],
            controlType: 'CHART',
            id: this.appBIReport.id,
            showBusyIndicator: true,
            name: this.appBIReport.id,
            appId: this.appBIReport.appId,
            codeName: this.appBIReport.id,
            caption: this.appBIReport.name,
            logicName: this.appBIReport.name,
            appDataEntityId: this.appBIReport.appDataEntityId,
        };
        /**
         * @description 仿真序列模型
         * @type {IModel}
         * @memberof ZoneColConverter
         */
        this.mockSerieModel = {
            chartSeriesEncode: {
                id: '0',
                type: 'XY',
                name: '坐标系编码',
                chartXAxisId: '0',
                chartYAxisId: '0',
                appId: this.appBIReport.appId,
            },
            seriesType: 'bar',
            echartsType: 'bar',
            chartDataSetId: '0',
            seriesLayoutBy: 'column',
            enableChartDataSet: true,
            chartCoordinateSystemId: '0',
            appId: this.appBIReport.appId,
        };
    }
}
