"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getLineChartSettings = void 0;
var mdm_sdk_1 = require("@reltio/mdm-sdk");
var getLineChartSettings = function (_a) {
    var margin = _a.margin, isLabelRotated = _a.isLabelRotated;
    return {
        lineChart: {
            layout: 'horizontal',
            margin: margin
        },
        xAxis: {
            type: 'category',
            dataKey: 'label',
            tick: {
                fill: '#000',
                opacity: '0.54'
            },
            angle: isLabelRotated ? -45 : 0,
            textAnchor: isLabelRotated ? 'end' : 'middle',
            stroke: '#666'
        },
        yAxis: {
            dataKey: '',
            type: 'number',
            tick: {
                fill: '#000',
                opacity: '0.54',
                width: undefined
            },
            tickFormatter: function (value) { return (0, mdm_sdk_1.formatNumberAsMetric)(value); },
            stroke: '#666',
            tickCount: 8
        },
        cartesianGrid: {
            strokeDasharray: '3 3',
            stroke: '#666',
            strokeOpacity: '0.4'
        },
        tooltip: {
            cursor: {
                fill: '#000',
                opacity: '0.1'
            }
        },
        line: {
            type: 'linear',
            dataKey: 'value',
            stroke: '#4BAFFF',
            strokeWidth: 3,
            dot: {
                strokeWidth: 2,
                r: 5
            },
            activeDot: {
                strokeWidth: 2,
                r: 5,
                stroke: '#4BAFFF'
            }
        }
    };
};
exports.getLineChartSettings = getLineChartSettings;
