make graph size to preset html dimensions