# Basic auto-fit configuration with default settings
config <- auto_fit_config()
# Auto-fit with only centering (no scaling)
config <- auto_fit_config(type = "center")
# Auto-fit that always triggers when graph data changes
config <- auto_fit_config(when = "always")
# Auto-fit only in the x direction
config <- auto_fit_config(direction = "x")
# Auto-fit with a fast animation
config <- auto_fit_config(duration = 300, easing = "ease-out")
Run the code above in your browser using DataLab