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
647 stars 48 forks source link

[BUG] Scale of axis does not seem to be linear. #69

Closed Lexycon closed 1 year ago

Lexycon commented 1 year ago

Describe the bug The scale of both axis does not seem to be linear. It doesn't matter what I set at cp.x_scale_type. Scale is always strange and not linear.

on Y I expect: [0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100] on X I expect: [0, 6, 12, 18, 24, 30, 36, 42, 48, 54, 60]

Steps to reproduce My X axis values are: values = [0, 1, 2, 3, 4, 5, ... 60]. cp.x_scale = 10 LineChart.x = ArrayOperations.multiply_float(values, 0.1)

Screenshots chart

Additional context Maybe I am doing sth. wrong, but I can't figure it out tbh.

fenix-hub commented 1 year ago

@Lexycon Hi thank for your issue. This issue should be fixed in release v29.01.23. Let me know if you still encounter this

Lexycon commented 1 year ago

@fenix-hub

Wow, man, quick response 👍 I tried v29.01.23 and it looks good :)

fenix-hub commented 1 year ago

Amazing. Feel free to share your progress on questions on discord :)