// if ($("#share-of-media-chart").length) { // var ctx4 = $("#share-of-media-chart")[0].getContext("2d"); // var myChart4 = new Chart(ctx4, { // type: "doughnut", // data: { // labels: @json($data['grafico2_labels']), // datasets: [ // { // data: @json($data['grafico2_dataset']), // borderWidth: 0, // hoverBackgroundColor:@json($data['grafico2_colors']), // backgroundColor: @json($data['grafico2_colors']), // borderColor:@json($data['grafico2_colors']), // }, // ], // }, // options: { // maintainAspectRatio: false, // plugins: { // legend: { // labels: { // color: '#35495e', // }, // }, // }, // cutout: "0%", // }, // }); // }