merging both charts