mirror of
https://github.com/Relintai/pandemonium_engine_easy_charts.git
synced 2024-11-12 10:15:19 +01:00
fix linechart datatype bug
This commit is contained in:
parent
a1bea161fa
commit
d934b5ed6b
@ -9,7 +9,7 @@
|
|||||||
# Easy Charts
|
# Easy Charts
|
||||||
A library of Charts plotted in Control, 2D and 3D nodes to visualize general purpose datasets.
|
A library of Charts plotted in Control, 2D and 3D nodes to visualize general purpose datasets.
|
||||||
Author: *"Nicolo (fenix) Santilio"*
|
Author: *"Nicolo (fenix) Santilio"*
|
||||||
Version: *0.5.3*
|
Version: *0.5.6*
|
||||||
Wiki: *[wip](https://github.com/fenix-hub/godot-engine.easy-charts/wiki)*
|
Wiki: *[wip](https://github.com/fenix-hub/godot-engine.easy-charts/wiki)*
|
||||||
Godot Version: *3.2stable*
|
Godot Version: *3.2stable*
|
||||||
|
|
||||||
|
@ -163,14 +163,14 @@ func structure_datas(database: Array):
|
|||||||
for column in database[row].size():
|
for column in database[row].size():
|
||||||
if column == labels_index:
|
if column == labels_index:
|
||||||
var x_data = database[row][column]
|
var x_data = database[row][column]
|
||||||
if x_data.is_valid_float() or x_data.is_valid_integer():
|
if typeof(x_data) == TYPE_INT or typeof(x_data) == TYPE_REAL:
|
||||||
x_datas.append(x_data as float)
|
x_datas.append(x_data as float)
|
||||||
else:
|
else:
|
||||||
x_datas.append(x_data)
|
x_datas.append(x_data)
|
||||||
else:
|
else:
|
||||||
if row != 0:
|
if row != 0:
|
||||||
var y_data = database[row][column]
|
var y_data = database[row][column]
|
||||||
if y_data.is_valid_float() or y_data.is_valid_integer():
|
if typeof(y_data) == TYPE_INT or typeof(y_data) == TYPE_REAL:
|
||||||
t_vals.append(y_data as float)
|
t_vals.append(y_data as float)
|
||||||
else:
|
else:
|
||||||
t_vals.append(y_data.replace(",", ".") as float)
|
t_vals.append(y_data.replace(",", ".") as float)
|
||||||
|
@ -57,9 +57,9 @@ __meta__ = {
|
|||||||
[node name="PointData" parent="." instance=ExtResource( 2 )]
|
[node name="PointData" parent="." instance=ExtResource( 2 )]
|
||||||
|
|
||||||
[node name="PointData" parent="PointData" index="0"]
|
[node name="PointData" parent="PointData" index="0"]
|
||||||
margin_left = -375.27
|
margin_left = -314.458
|
||||||
margin_top = -216.457
|
margin_top = -189.587
|
||||||
margin_right = -375.37
|
margin_right = -314.559
|
||||||
margin_bottom = -215.657
|
margin_bottom = -188.787
|
||||||
|
|
||||||
[editable path="PointData"]
|
[editable path="PointData"]
|
||||||
|
@ -359,7 +359,7 @@ func plot_from_array(array : Array) -> void:
|
|||||||
Utilities._print_message("Can't plot a chart with an empty Array.",1)
|
Utilities._print_message("Can't plot a chart with an empty Array.",1)
|
||||||
return
|
return
|
||||||
|
|
||||||
data = array.duplicate()
|
data = array.duplicate(true)
|
||||||
structure_datas(slice_data())
|
structure_datas(slice_data())
|
||||||
build_chart()
|
build_chart()
|
||||||
count_functions()
|
count_functions()
|
||||||
|
@ -3,5 +3,5 @@
|
|||||||
name="EasyCharts"
|
name="EasyCharts"
|
||||||
description=""
|
description=""
|
||||||
author="Nicolò \"fenix\" Santilio"
|
author="Nicolò \"fenix\" Santilio"
|
||||||
version="0.5.0"
|
version="0.5.6"
|
||||||
script="plugin.gd"
|
script="plugin.gd"
|
||||||
|
Loading…
Reference in New Issue
Block a user