From bbfe1c47839801b31b10c50e3205c352ed850bb1 Mon Sep 17 00:00:00 2001 From: Jorge <63685920+JFerrerBeired@users.noreply.github.com> Date: Tue, 4 May 2021 03:28:19 +0200 Subject: [PATCH] Fix show_x_values_as_labels when the label is a String --- addons/easy_charts/Utilities/Scripts/scatter_chart_base.gd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/easy_charts/Utilities/Scripts/scatter_chart_base.gd b/addons/easy_charts/Utilities/Scripts/scatter_chart_base.gd index a0082f3..7a66d82 100644 --- a/addons/easy_charts/Utilities/Scripts/scatter_chart_base.gd +++ b/addons/easy_charts/Utilities/Scripts/scatter_chart_base.gd @@ -500,9 +500,9 @@ func calculate_tics(): for i in y_chors.size(): y_chors[i] = String(y_chors[i]) #Can't cast directly on calculate_interval_tics because it mess up with the sorting - x_margin_min = x_range[0] - var x_margin_max = x_range[1] if not show_x_values_as_labels: + x_margin_min = x_range[0] + var x_margin_max = x_range[1] h_dist = x_decim * pow(10.0, calculate_position_significant_figure(x_margin_max - x_margin_min) - 1) if x_margin_min < 0 and x_margin_max >= 0: