add_legend: don't examine scales until as.vega is called