AnyChart
API Reference
Still have questions?
Contact support
Top
You are looking at an outdated 7.1.0 version of this document. Switch to the 8.3.0 version to see the up to date information.

[enum] anychart.graphics.vector.Image.FittingImprove this Doc

ValueDescriptionExample
aspect ratio is preserved the entire ‘viewBox’ is visible within the viewport the ‘viewBox’ is scaled up as much as possible, while still meeting the other criteria
aspect ratio is preserved the entire viewport is covered by the ‘viewBox’ the ‘viewBox’ is scaled down as much as possible, while still meeting the other criteria