Commit Graph

409 Commits

Author SHA1 Message Date
fenix-hub
4983f61f5c add BarChart 2023-01-22 16:35:25 +01:00
fenix-hub
558e978723 refactor spline 2023-01-21 14:29:45 +01:00
fenix-hub
876f78598d remove unused methods 2023-01-17 21:35:00 +01:00
fenix-hub
a911385a32 add spline to linechart 2023-01-17 21:34:32 +01:00
fenix-hub
006fa4de7f add matrix methods 2023-01-15 23:21:25 +01:00
fenix-hub
59a98fc8d8 update readme 2023-01-14 18:43:27 +01:00
fenix-hub
bbef3f90f4 remove unused imgs 2023-01-14 18:42:31 +01:00
fenix-hub
46ce5a53b2 Merge branch 'main' of github.com:fenix-hub/godot-engine.easy-charts 2023-01-14 18:37:29 +01:00
fenix-hub
73bccecfe9 update readme 2023-01-14 18:35:09 +01:00
Nicolò Santilio
17151cba95
Update FUNDING.yml 2023-01-14 18:18:47 +01:00
fenix-hub
bc4c066c02 + LineChart, (up) chart 2023-01-14 18:11:59 +01:00
fenix-hub
f7864e4755 update drawing options + example 2023-01-12 19:48:57 +01:00
fenix-hub
86359cf83f improve x_labels and y_labels drawing 2023-01-12 00:32:44 +01:00
fenix-hub
221609ea95 + x_labels and y_labels 2023-01-11 23:59:37 +01:00
fenix-hub
274c32f15e scatter chart feature complete 2023-01-11 23:09:45 +01:00
fenix-hub
38225536d1 scatter chart freature compleat 2023-01-11 21:40:52 +01:00
fenix-hub
d648b5d228 update point signals 2023-01-11 13:04:20 +01:00
fenix-hub
cb8c52ac35 update v2 2023-01-11 12:11:20 +01:00
Norodix
ded2538ef0
Remove merge conflict messages and temporary fixes (#56)
* Fix merge conflict mistakes and bugfixes/workarounds

* Revert tabs/spaces indentation
2022-01-19 22:59:22 +01:00
fenix-hub
3d6a73d81b remove prints 2022-01-10 19:20:42 +01:00
fenix-hub
67b12be831 fix top displacement 2022-01-10 19:05:45 +01:00
fenix-hub
bc72106178 add frame_to_file function 2022-01-10 18:32:27 +01:00
fenix-hub
2303617e90 update dataframe plotting 2022-01-10 18:19:59 +01:00
fenix-hub
0d44e72b7c update asserts 2022-01-10 18:08:47 +01:00
fenix-hub
514f42d29f update plotting 2022-01-10 17:54:03 +01:00
fenix-hub
90128adb3c update dataframe 2022-01-10 15:14:09 +01:00
fenix-hub
ef76c04470 update scatter_chart_base 2022-01-10 00:01:10 +01:00
fenix-hub
a5ce0a5cd6 update slicing 2022-01-09 20:53:37 +01:00
fenix-hub
f16becf79e update dataframe print 2022-01-09 20:01:31 +01:00
fenix-hub
161757cca9 update dataframe and matrix 2022-01-09 19:38:53 +01:00
fenix-hub
ef0c1dba93 add assert 2022-01-09 19:16:41 +01:00
fenix-hub
687562a7a2 fix plot updating 2022-01-09 19:12:10 +01:00
fenix-hub
38b78bfd64 update reading methods 2022-01-09 18:47:39 +01:00
fenix-hub
e48083802e add tooltip 2022-01-09 17:00:25 +01:00
fenix-hub
5621f59e30 remove line 2022-01-09 16:35:12 +01:00
fenix-hub
20dc80b4b6 fix .instance() and RadarChart scene 2022-01-09 16:32:44 +01:00
fenix-hub
c7ab170ceb rename back 2022-01-09 16:02:36 +01:00
fenix-hub
cd31d7d0aa rename 2022-01-09 16:02:18 +01:00
fenix-hub
fe8b19d7b6 Merge branch 'main' of https://github.com/fenix-hub/godot-engine.easy-charts 2022-01-09 16:01:36 +01:00
Nicolò Santilio
462bb4f901
Refactor (#54)
fix #48  fix #52 

* Refactor so it works with the new data format.

Restructured some functions in smaller pieces and changed it so they can work with data in the new format.

Main way to use it will be with the new plot_function but old functions support is requiered through structure_datas (WIP)

* structure_datas rework

structure_datas structure the data to match the new format.

* Add new plotting methods

Also renamed identifiers array to the already existing y_labels and a fix to correctly calculate tics.

* Add autoscale or user-defined range

* Add color definition from plot_function call

Introduction of a param_dic parameter on plot_function that allows for specific parameters definitions for that curve only without changing the full Chart.

Also moved the label identier string to a parameter on this dicionary so it can be called without specifying a label name.

* Fix representation of negative values

Using negative numbers should now work on both axis. For this I created two new methods calcualte_interval_tics and calculate_number_integer_digits to avoid code repetition.

I'd like to work more on this, since now the representation is correct but can look very weird for some values with a lot of empty space on the chart.

* Correctly calculates tics for numbers between 0 and 1

Also some small fixes to update_function and delete_function. Changed the tic little line to point outside the chart instead of inside so it doesn't overlap with the grid line.

* Correctly (almost) center axis labels

Needs a little of research for the vertical centering since get_string_size doesn't behave as expected.

* Add some style representation customization

Width of the grid and function lines.

Made drawing points for LineChart optional (especially useful when using a huge number of points to avoid overclustering). For this I had to rewrite the draw_lines function to work similar to draw_points using point_positions instead of information of the point nodes.

The string position of the labels is correctly calculated now. It uses a new variable: label_displacement so it don't look too close to the axis and the border.

Set some default values  that make more sense to the instanciable scenes.

* Fix clearing of data structures with multiple calls to plot_from_x

* Fix show_x_values_as_labels

Correctly sets the x position when show_x_values_as_labels is active.

* Fix show_x_values_as_labels when the label is a String

* restructure folder

* refactor scatter_chart and line_chart

* finish 1st refactoring

* finish 1st refactoring

* finish 1st refactoring

* remove .tmp

* fix min errors

* refactor column chart

* fix are_values_columns

Co-authored-by: Jorge <63685920+JFerrerBeired@users.noreply.github.com>
2022-01-08 21:15:05 +01:00
Nicolò Santilio
7c73e92f8f
1st Refactor (#53)
fix #48 #52 #46 

* Refactor so it works with the new data format.

Restructured some functions in smaller pieces and changed it so they can work with data in the new format.

Main way to use it will be with the new plot_function but old functions support is requiered through structure_datas (WIP)

* structure_datas rework

structure_datas structure the data to match the new format.

* Add new plotting methods

Also renamed identifiers array to the already existing y_labels and a fix to correctly calculate tics.

* Add autoscale or user-defined range

* Add color definition from plot_function call

Introduction of a param_dic parameter on plot_function that allows for specific parameters definitions for that curve only without changing the full Chart.

Also moved the label identier string to a parameter on this dicionary so it can be called without specifying a label name.

* Fix representation of negative values

Using negative numbers should now work on both axis. For this I created two new methods calcualte_interval_tics and calculate_number_integer_digits to avoid code repetition.

I'd like to work more on this, since now the representation is correct but can look very weird for some values with a lot of empty space on the chart.

* Correctly calculates tics for numbers between 0 and 1

Also some small fixes to update_function and delete_function. Changed the tic little line to point outside the chart instead of inside so it doesn't overlap with the grid line.

* Correctly (almost) center axis labels

Needs a little of research for the vertical centering since get_string_size doesn't behave as expected.

* Add some style representation customization

Width of the grid and function lines.

Made drawing points for LineChart optional (especially useful when using a huge number of points to avoid overclustering). For this I had to rewrite the draw_lines function to work similar to draw_points using point_positions instead of information of the point nodes.

The string position of the labels is correctly calculated now. It uses a new variable: label_displacement so it don't look too close to the axis and the border.

Set some default values  that make more sense to the instanciable scenes.

* Fix clearing of data structures with multiple calls to plot_from_x

* Fix show_x_values_as_labels

Correctly sets the x position when show_x_values_as_labels is active.

* Fix show_x_values_as_labels when the label is a String

* restructure folder

* refactor scatter_chart and line_chart

* finish 1st refactoring

* finish 1st refactoring

* finish 1st refactoring

* remove .tmp

* fix min errors

Co-authored-by: Jorge <63685920+JFerrerBeired@users.noreply.github.com>
2022-01-08 19:10:31 +01:00
fenix-hub
108b42b737 resolve conflicts 2022-01-08 19:03:05 +01:00
fenix-hub
70a36d2156 remove .tmp 2022-01-08 18:56:19 +01:00
fenix-hub
edf0d14614 finish 1st refactoring 2022-01-08 18:55:53 +01:00
fenix-hub
d590262dbc finish 1st refactoring 2022-01-08 18:55:27 +01:00
fenix-hub
e2651f2fce finish 1st refactoring 2022-01-08 18:55:22 +01:00
fenix-hub
9d4d31fd2c refactor scatter_chart and line_chart 2022-01-08 18:46:03 +01:00
fenix-hub
e3a78ed60a restructure folder 2022-01-08 16:34:36 +01:00
Nicolò Santilio
1e388f49a0
Scatter (#51)
* Refactor so it works with the new data format.

Restructured some functions in smaller pieces and changed it so they can work with data in the new format.

Main way to use it will be with the new plot_function but old functions support is requiered through structure_datas (WIP)

* structure_datas rework

structure_datas structure the data to match the new format.

* Add new plotting methods

Also renamed identifiers array to the already existing y_labels and a fix to correctly calculate tics.

* Add autoscale or user-defined range

* Add color definition from plot_function call

Introduction of a param_dic parameter on plot_function that allows for specific parameters definitions for that curve only without changing the full Chart.

Also moved the label identier string to a parameter on this dicionary so it can be called without specifying a label name.

* Fix representation of negative values

Using negative numbers should now work on both axis. For this I created two new methods calcualte_interval_tics and calculate_number_integer_digits to avoid code repetition.

I'd like to work more on this, since now the representation is correct but can look very weird for some values with a lot of empty space on the chart.

* Correctly calculates tics for numbers between 0 and 1

Also some small fixes to update_function and delete_function. Changed the tic little line to point outside the chart instead of inside so it doesn't overlap with the grid line.

* Correctly (almost) center axis labels

Needs a little of research for the vertical centering since get_string_size doesn't behave as expected.

* Add some style representation customization

Width of the grid and function lines.

Made drawing points for LineChart optional (especially useful when using a huge number of points to avoid overclustering). For this I had to rewrite the draw_lines function to work similar to draw_points using point_positions instead of information of the point nodes.

The string position of the labels is correctly calculated now. It uses a new variable: label_displacement so it don't look too close to the axis and the border.

Set some default values  that make more sense to the instanciable scenes.

* Fix clearing of data structures with multiple calls to plot_from_x

* Fix show_x_values_as_labels

Correctly sets the x position when show_x_values_as_labels is active.

* Fix show_x_values_as_labels when the label is a String

Co-authored-by: Jorge <63685920+JFerrerBeired@users.noreply.github.com>
2021-08-09 20:09:49 +02:00
Jorge
bbfe1c4783 Fix show_x_values_as_labels when the label is a String 2021-05-04 03:28:19 +02:00