hide_legend: hide legend if graph's height under value