Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function _cargarTop($texto2,$texto3,$valor1,$valor2,$valor3){
- var solotop = $('#solotopcanvas');
- /*var Chart = require('chart.js');*/
- var solotopChart = new Chart(solotop, {
- type: 'doughnut',
- data: {
- labels: ["Top 1",$texto2,$texto3],
- datasets: [{
- data: [$valor1, $valor2, $valor3],
- backgroundColor: [
- '#26C6DA',
- '#66BB6A',
- '#ef5350'
- ],
- borderColor: [
- '#909090',
- '#909090',
- '#909090'
- ],
- borderWidth: 2
- }]
- },
- options: {
- responsive: true,
- maintainAspectRatio: false/*,
- legend: {
- display: false,
- }*/
- }
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement