Modulo:Graph: differenze tra le versioni
Contenuto cancellato Contenuto aggiunto
aggiorno alla nuova versione con anche grafici a linea |
fix |
||
Riga 12:
-- ===============================================================================
-- Add error message to errors list, mgs_key must be a error key listed in
-- cfg.errors_key, args is an optional array of string
-- ===============================================================================
Riga 55:
-- ===============================================================================
-- Return an array of numbers splitting a string at ","
-- For localization purpose check for the presence of an alternative separator
-- and alternative symbol for decimal separator
-- ===============================================================================
Riga 270:
if args[cfg.localization.other] then
local total = 0
for _,val in ipairs(arguments.values) do total = total + val end
if total > 0 and total < 100 then
arguments.values[#arguments.values+1]= math.max(0, 100 - total)
arguments.labels[#arguments.values] =
end
end
Riga 322:
-- ===================================================================================
-- Return a json structure to generate a a line/area/bar chart
-- Imported and modified from en:Module:Chart revision 670068988 of 5 july 2015
-- ===================================================================================
|