draw chart when select tab 2 or 3