Modulo:Demografia/sandbox: differenze tra le versioni
Contenuto cancellato Contenuto aggiunto
aggiungo parametro fonte previsto dal template attuale |
opzioni di visualizzazione etichette |
||
Riga 40:
local values = { }
for i =1,#populations do
values[i] = { year = years[i], population = populations[i], num = i }
end
return values
Riga 108:
marks = {
{
type = "
from = {data = "table" },
properties = {
Riga 115:
x = {scale = "x",field = "year"},
y = {scale = "y",field = "population"},
opacity = {value = 0.5}
}
}
Riga 201 ⟶ 202:
if args.etichette then
if args.etichette == "1" then
graph['marks'][4]['from']['transform'] = {{ type = "filter", test = "datum.
elseif args.etichette == "2" then
graph['marks'][4]['from']['transform'] = {{ type = "filter", test = "datum.
end
end
|