Diferencia entre revisiones de «MediaWiki:Gadget-make-pie.js»

Ir a la navegación Ir a la búsqueda
m (absolutely sliced up)
m (color me surprised)
const data = []
/// add a slice to the pie
svg.add_data_entry = function(count, name, label, fill) { data.push({ count: count, name: name, label: label || name, fillcolor: fill, }) }
/// wedge all the slices into the pie
svg.render = function() { console.debug('make-pie:', 'rendering', svg, data)