Modulo:Graph: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
altre correzioni
m correggo
 
(2 versioni intermedie di uno stesso utente non sono mostrate)
Riga 31:
if #errors > 0 then
local out = string.format('<strong class="error">%s</strong>', table.concat(errors, "; "))
if nocat or not cfg.uncategorized_namespaces[mw.title.getCurrentTitle().nsnsText] then
out = out .. '[[Category:' .. cfg.errors_category .. ']]'
end
Riga 456:
end
-- Color scale
local colorScale = {
name = "color",
type = "ordinal",
range = args.colors },
___domain = { data = "chart", field = "series" }
}
local alphaScale
if args.alphas then alphaScale = { name = "transparency", graph_type = "ordinal", range = args.alphas } end
Line 753 ⟶ 758:
end
local chart = frame:extensionTag('graph', chart_json)
local align = args[cfg.localization.:value('thumb]')
return wrap_graph(chart, external_legend, align, chart_arg.graphwidth) .. errors_output(args:value('NoTracking'))
end
Line 772 ⟶ 777:
___domain = { data = "highlights", field = "v" },
range = args.colorScale,
nice = true,
zero = false
}
}