viewport of chart preview now adepts to element size