fix zoom out problem with no charts
speed up cache generation