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.

Padding impact translation of Axis?

See original GitHub issue

Seems that padding is used in setting the range of scale, but have not been considered in the the translation of axes canvas ctx. I try to set a non-0 padding of Chart and the two axis will not join together

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
WaiSiuKeicommented, Mar 30, 2016

Thans for you explaination of the usage of padding, maybe I am using a wrong padding in some place.I want to use the padding to add white space between charts, and I should specify the origin and height of charts.

0reactions
rragcommented, Mar 29, 2016

this padding is useful for charts like MACD, RSI, which are oscillators, so a padding of 20px top and bottom will let the line not touch the xaxis.

Even in Candlestick charts, a padding will help in making the high/low wick from not touching the xaxis

Read more comments on GitHub >

github_iconTop Results From Across the Web

translate() - CSS: Cascading Style Sheets - MDN Web Docs
The translate() CSS function repositions an element in the horizontal and/or vertical directions. Its result is a data type.
Read more >
translate - CSS-Tricks
The translate CSS property allows you to transfer an element from one place to another along the X (horizontal) axis, the Y (vertical)...
Read more >
Understanding the differences between Margin & Padding ...
There are two properties for Translation for both the Y and the X axis (TranslationY & TranslationX), these properties allows us to translate...
Read more >
mind the pad – cnns can develop blind spots - arXiv
This directly impacts the padding-induced variation at each border. Such asymmetries are related to uneven application of padding as we explain ...
Read more >
A Zero-Padding Frequency Domain Convolutional Neural ...
Because the spectrum calculated by discrete Fourier transform (DFT) has Picket Fence Effect, padding zeros at the end of the signal can ...
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