Fix dashstyle in legend item. Touch #6
Update legend with API methods