jeffreywallphd / AutoProphet

A repository for code and documentation for the open-source Auto Prophet financial analytics tool
GNU General Public License v3.0
6 stars 8 forks source link

Volume Chart Labels Cut Off #127

Open SRuss76 opened 7 months ago

SRuss76 commented 7 months ago

Describe the bug When the volume gets high for a stock, usually when looking at the 5D or 1M charts, the y-axis label gets so long that it gets cut off by the sidebar.

To Reproduce Steps to reproduce the behavior:

  1. Go to the "Stock & Fund" page.
  2. Search for a relatively common stock. (NVDA, IBM, TSLA, AMZN, etc)
  3. Click on the 1M chart.
  4. See that the volume labels do not include the higher place digits. Can be seen when looking at the actual values of soem of the volume bars.

Expected behavior Either the volume chart needs to shift left to make room, or the volume labels should be at an angle to fit.

Screenshots image

Desktop (please complete the following information):

jeffreywallphd commented 7 months ago

Created slanted chart numbers on the y-axis and added margin-left to the chart container. Although this helps, the numbers are still cut off for multi-year charts. May need to calculate volume in millions if the max volume is greater than 1 million. The chart will need to display this, such as text under the volume bar chart.