Repository navigation
Stretch beyond chart limits #92
Closed
jashan12345
started this conversation in
General
Replies: 1 comment 9 replies
|
Hey @jashan12345, unfortunately, I don't really see a simple way for achieving this. The most common way is to "force" axis boundaries using const myChartOptions = {
type: 'line', // or radar, bar, horizontalBar, bubble
data: {...},
options: {
plugins: {dragData: true},
scales: {
y: {
max: 25,
min: 0
}
}
}
}This way, you can tell Chart.js to increase the padding of the chart to your desired range. |
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I Have Line Chart , Suppose there is data up to 100 amount and user want to drag beyond the 100 say 200 , how will it be possible for user to go beyond chart limits?
All reactions