merges base and chart html