Auto-resize chart when resizing container

This is useful for when the dashboard's container is being resized.