improved legend...Now the legend is always positioned on top, so that no overlapping
with the plot occurs and it's always visible.
The legend is now composed of spans, not an SVG anymore.
Also increased the legend font size to 20px.
fix attribute coloring...also I found out that there are two legends shown simultaneously,
but one is suitable only for discrete values, and the other for
continuous; now only the suitable one is shown