tried to fix the resize issue with histogram but failed

I dont under how the chart is connect with the mainctrl, so for now, the
issue is there still