fixed the problem with the legend not showing up. HTML legend still shows but may not be necessary.