chart and input
sort of working now but ugly