fenix-hub / godot-engine.easy-charts

A Godot Engine addon for plotting general purpose charts. A collection of Control, 2D and 3D Nodes to plot every chart possible.
MIT License
638 stars 48 forks source link

[BUG] bar chart labels not displayed x axis, y axis doesn't start at zero #94

Closed el-falso closed 11 months ago

el-falso commented 11 months ago

Describe the bug

  1. When you add labels to the different bars in the bar chart they are not being displayed on the x axis.
  2. Scaling of the y axis is wrong in the bar chart, when you have a value which isn't zero: var y: Array = [20, 10, 50, 30] Here the y axis starts at 10 and not at zero, causing some other bugs: Bars going visually negative, origin of the bar chart not being displayed.

To Reproduce Start the bar chart example project provided with the addon.

Expected behavior

  1. Labels on the x axis being displayed correctly.
  2. That the y axis starts at 0.

Screenshots Screenshot 2023-10-05 135705

Desktop (please complete the following information):