question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Force yaxis to start at 0

See original GitHub issue

Is your feature request related to a problem? Please describe. I’m making a chart where the data becomes hard to understand when it doesn’t start at 0.

Describe the solution you’d like Add an option (like yaxis.startAtZero: true|false) to force the chart to start drawing at 0.

Describe alternatives you’ve considered none

Additional context Seems like a pretty simple fix, in the part where it decides to not start at 0, do it only when the option is set to false.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

18reactions
junedchhipacommented, Feb 5, 2019

The new property will be

yaxis: {
  forceNiceScale: true
}
2reactions
junedchhipacommented, Feb 5, 2019

I just realized this is not possible currently. Thanks for pointing it out. Fixed it. Will be available in the next patch release.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Force the origin to start at 0 - Stack Overflow
The line of the x-axis should be exactly at y=Z . With Z=0 or another given value. r · plot · ggplot2 ·...
Read more >
Force Plot Axes to Start at Zero in R (2 Examples)
In this R tutorial you'll learn how to set the start of x- and y-axes to zero. The content looks as follows: 1)...
Read more >
Make Y Axis Start at 0 in Charts in Excel - TeachExcel.com
Select the Chart and go to the Layout tab (that is visible only when you select a chart). · Click the Axes button...
Read more >
force chart y-axis to start at 0 - Statalist
I'm plotting y values on a chart which all happen to be zeros, and Stata insists on scaling the y-axis from -1 to...
Read more >
How to adjust R ggplot2 axis to start at 0 or set other limits
If you want to create the R plotly plot with the vertical axis origin at zero, here is an easy way to do...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found