vl.markCircle({opacity: 0.6, tooltip: true})
.data(seattleWeatherTyped)
.title("Relationship Between Min/Max Temperatures in Seattle 2012 - 2015")
.encode(
vl.x().fieldQ('temp_min').title("Min Temp (C)"),
vl.y().fieldQ('temp_max').title("Max Temp (C)"),
vl.color().fieldN('weather').scale({range: weatherColorPalette }),
vl.size().fieldQ('precipitation').scale({range:[4, 500]}),
vl.tooltip([
{field : "date", type : "temporal"},
{field : "temp_max", title : "max temp" },
{field : "temp_min", title : "min temp" },
{field : "precipitation"},
{field : "wind"},
{field : "weather"},
])
).render();