fixes for line chart legend