preparing global chart