made init chart work