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

use y_labels_function in calculate_plotbox_margins #107

Closed rpaciorek closed 3 months ago

rpaciorek commented 3 months ago

What kind of change does this PR introduce?

Bug fix

What is the current behavior?

While using custom y-labels format via:

chart.y_labels_function = func (value):
    return "%.6f" % value

only 2.5 chars of y labels is shown:

current

due to use ECUtilities._format_value instead of y_labels_function to calculate margins

What is the new behavior?

fixed