add chart
set min and max