     }]
                };

                const barOption = {
                    xAxis: {
                        type: 'category',
                        data: ['Female', 'Male']
                    },
                    yAxis: {},
                    series: [{
                        type: 'bar',
                        id: 'total',
                        data: [{
                            value: calculateAverage(maleDeta, 0),
                            groupId: 'male'
                        },