"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
function ChartComponentAdapter(input) {
    const type = input.accessor.value('GUI_renderType', 'string');
    const { accessor, variable, extraOptions } = input;
    let chartComponent = {
        type: 'VariableChart',
        variable: `${variable.name}`,
        label: `${variable.name}`,
        valueFormatting: input.accessor.value('GUI_valueFormatting', 'string', undefined),
        options: {
            "xaxislabel": `${variable.name}`,
            '[showLegend]': !extraOptions.showInCard
        }
    };
    return chartComponent;
}
exports.default = ChartComponentAdapter;
//# sourceMappingURL=ChartAdapter.js.map