Modulo:Grafico XY: differenze tra le versioni
Contenuto cancellato Contenuto aggiunto
+controllo aree +minimoX |
m modulo no globals obsoleto |
||
(6 versioni intermedie di un altro utente non mostrate) | |||
Riga 1:
require("
local getArgs = require('Module:Arguments').getArgs
local p = {}
Riga 83 ⟶ 84:
scale = "x",
title = "",
format = args['formatoX'] or "d",
labelOverlap = "greedy",
grid = true,
properties = {
Riga 95 ⟶ 97:
title = "",
grid = true,
format = args['formatoY'] or "d",
labelOverlap = "greedy",
layer = "back",
properties = {
Riga 318 ⟶ 321:
if (args.massimoX and tonumber(args.massimoX)) then
graph['scales'][1]['domainMax'] = tonumber(args.massimoX)
end
if (args.minimoY and tonumber(args.minimoY)) then
graph['scales'][2]['domainMin'] = tonumber(args.minimoY)
end
if (args.massimoY and tonumber(args.massimoY)) then
graph['scales'][2]['domainMax'] = tonumber(args.massimoY)
end
Riga 339 ⟶ 349:
-- ======================================================================================================
-- Funzione di intefaccia con template:
-- ======================================================================================================
function p.grafico(frame)
|