xPercent)
                array.push(val)
            }

            var chart = c3.generate({
                bindto: '#chart-pie', // id of chart wrapper
                data: {
                    columns: array,
                    type: 'pie', // default type of chart
                    colors: {
                        'data1': tabler.colors["blue-darker"],
                        'data2': tabler.colors["blue"],
                        'data3': tabler.colors["blue-light"],
                        'da