update cube diagram