All files / src/plugins/highcharts/mocks pie-with-totals.ts

0% Statements 0/1
100% Branches 0/0
100% Functions 0/0
0% Lines 0/1

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46                                                                                           
import {HighchartsWidgetData} from '../types';
 
export const data: HighchartsWidgetData = {
    data: {
        graphs: [
            {
                name: 'Number of requests',
                tooltip: {
                    chartKitFormatting: true,
                    chartKitPrecision: 0,
                },
                dataLabels: {
                    format: null,
                    chartKitFormatting: true,
                    chartKitPrecision: 0,
                    chartKitPrefix: '',
                    chartKitPostfix: '',
                    chartKitLabelMode: 'absolute',
                    chartKitFormat: 'number',
                    chartKitShowRankDelimiter: true,
                },
                data: [
                    {name: 'Furniture', y: 14344, label: 14344},
                    {name: 'Domestic chemistry', y: 14244, label: 14244},
                    {name: 'Household goods', y: 14181, label: 14181},
                ],
            },
        ],
        categories: ['Furniture', 'Domestic chemistry', 'Household goods'],
        totals: 42769,
    },
    config: {
        showPercentInTooltip: true,
    },
    libraryConfig: {
        chart: {
            type: 'pie',
        },
        plotOptions: {
            pie: {
                innerSize: '50%',
            },
        },
    },
};