creating table chart