Display line chart legend correctly