Modulo:Demografia/sandbox: differenze tra le versioni
Contenuto cancellato Contenuto aggiunto
m resto non può essere 2 :) |
vero, ma c'erano altri errori :D |
||
Riga 196:
graph['height'] = args.dimy and tonumber(args.dimy) and tonumber(args.dimy)
if args.etichette then
graph['marks'][4]['
▲ graph['marks'][4]['properties']['transform'] = string.format('{{ type = "filter", test: "datum._id %% 2 == %d"}}', 2-etichette)
graph['marks'][4]['from']['transform'] = {{ type = "filter", test = "datum._id % 2 == 0"}}
end
end
|