Title: How do I stretch the Y axis in chart.js?
Tags: chart.js
Question: I'm looking to product a fairly small-sized comparative line chart where the actual data values aren't significant (the associated data table always accompanies the chart) but the point of the chart is to visually show the daily/weekly trend.
At full size the graph looks nice.
But when the containing div is constrained to shrink the size, the graph Y-scale shrinks much more in proportion than the X-scale.
What I need instead is something that looks like this.
What am I missing?  I can't find any options that affect this.



Here is another answer: You can set the ```maintainAspectRatio``` option to false in the root of the options object

Comment for this answer: Beautiful!

I assumed there had to be *something* that controlled this, just wasn't looking in the right place, or for the right concept.  Thanks!

{'source': 'StackExchangeDataset', 'subset': 'stackoverflow.com', 'metadata': {'AnswerCount': 1, 'CommentCount': 0, 'ContentLicense': 'CC BY-SA 4.0', 'CreationDate': '2022:00:07/22/22', 'FavoriteCount': None, 'PostTypeId': 1, 'Tags': '<chart.js>', 'Title': 'How do I stretch the Y axis in chart.js?', 'ViewCount': 20, 'id': 73085606, 'user_AboutMe': None, 'user_AccountId': 18798317.0, 'user_DisplayName': 'K Parker', 'user_Reputation': 1.0, 'user_Views': 1.0, 'user_id': 13709272.0}}