Commit Graph

68 Commits

Author SHA1 Message Date
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
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
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
chrisskeddy
535edd5da9
changed to free since queue_free is not fast enough. Godot Doc: "Queues a node for deletion at the end of the current frame." (#43) 2021-03-13 11:05:46 +01:00
Nicolò Santilio
964ddacc1f
Rename Point.tscn to point.tscn 2021-03-12 22:46:15 +01:00
Nicolò Santilio
bb4f8a3c8b
Update scatter_chart3D.gd 2021-03-12 20:36:59 +01:00
Nicolò Santilio
1a370d608b
Rename Point.gd to point.gd 2021-03-12 20:00:06 +01:00
Nicolò Santilio
ab01011cfb
Rename point.tscn to Point.tscn 2021-03-12 19:37:10 +01:00
Nicolò Santilio
a15e0b850d
Rename Point.tscn to point.tscn 2021-03-12 19:37:00 +01:00
Jorge
d46e099717
Rework of ScatterChart and LineChart (#40)
* Fixed ScatterChart to work like LineChart when are_values_columns is true

* Fixed labeling spaguetti and added offset.

* Fixed indentation to match GDScript style guide

* Fix distances calculations

Note that I removed the origin_at_zero conditional at calculate_coordinates because I already fix y_margin_min to 0 at structure_datas.

* Add missing features to ScatterChart

I added the missing features from LineChart to ScatterChart (like treshold and some properties) in preparation to creation of a Parent Class common to both. This way the changes can be traced easily.

* Add BaseClass for Scatter and Line Charts

* Changes to property_list getter

* Rename ScatterChartBase.gd to scatter_chart_base.gd

* Filenames changed to match GDscript Style Guide

From Godot so it doesn't break  the links.

* Fixed some dependencies on chart and chart2D
2021-02-21 11:29:29 +01:00
Nicolò Santilio
7309517076 fix linechart borders and x_values 2021-01-17 00:48:15 +01:00
Nicolò Santilio
d934b5ed6b fix linechart datatype bug 2021-01-12 15:02:55 +01:00
Nicolò Santilio
ed90863a1d fix #36 - PieChart always getting input 2021-01-08 21:01:33 +01:00
Nicolò Santilio
dd6562bcba Control charts update 2020-12-31 15:17:38 +01:00
Nicolò Santilio
79661f34d4 renamed BarChart -> ColumnChart 2020-12-31 15:07:26 +01:00
Nicolò Santilio
c9023e2dac update samples 2020-12-31 15:02:54 +01:00
Nicolò Santilio
8646fcb6c6 @structure_data changed 2020-12-31 13:58:25 +01:00
Nicolò Santilio
215363ab67 @structure_data changed 2020-12-31 13:56:27 +01:00
Nicolò Santilio
d85a85d71e @invert_chart and @are_values_columns fixed 2020-12-31 13:47:14 +01:00
Nicolò Santilio
90f3ea8a56 git update 2 2020-12-31 13:21:08 +01:00
Nicolò Santilio
c7d0e56f4e git update 2020-12-31 13:10:20 +01:00
Nicolò Santilio
d2b04f0953
Update plugin.gd 2020-12-31 12:29:31 +01:00
Nicolò Santilio
757e99aaf9
Add files via upload 2020-12-30 15:34:13 +01:00
Nicolò Santilio
6986840501
Delete BarChart.gd 2020-12-30 15:31:09 +01:00
Nicolò Santilio
b16e9ab259
Add files via upload 2020-12-30 15:30:42 +01:00
Nicolò Santilio
899c34d9fa
Add files via upload 2020-12-30 15:29:05 +01:00
Nicolò Santilio
24c8a2ad56
plugin.cfg v0.5.0 2020-12-30 15:28:15 +01:00
Nicolò Santilio
536c11e5b5
update v0.4.6 2020-12-21 18:56:55 +01:00
Nicolò Santilio
6334de0b75
added DataFrame, Matrix, MatrixGenerator 2020-12-21 18:48:38 +01:00
Nicolò Santilio
6a3648544b
update v0.4.5 2020-12-21 18:44:15 +01:00
Nicolò Santilio
a1d0f4c922
applied automatic resize on Control charts 2020-12-21 18:43:21 +01:00
Nicolò Santilio
8e2cfeecf5
fix plotting with values below 1.0 2020-12-21 18:42:20 +01:00
Nicolò Santilio
1b7bf2f376
fix templates 2020-12-21 18:13:41 +01:00
Nicolò Santilio
2aafdd19c1
Add files via upload 2020-12-21 18:13:04 +01:00
Nicolò Santilio
60d0b98fd9
Delete utilities.gd 2020-12-21 18:12:14 +01:00
Nicolò Santilio
9bb96beb41
Delete ChartContainer2D.gd 2020-12-21 18:12:05 +01:00
Nicolò Santilio
a171315b6b
Delete ChartContainer.gd 2020-12-21 18:11:57 +01:00
Nicolò Santilio
a19ca39527
fix chart templates 2020-12-21 18:11:26 +01:00
Nicolò Santilio
e6d91dd707
Update 0.4.5
*added*:  
- class names for all custom Chart classes
- class name for LegendElement

*fixed*:
- minor bugs
- changed FunctionLegend to LegendElement
2020-11-09 18:16:36 +01:00
Nicolò Santilio
b098149e32
Update plugin.cfg 2020-11-06 19:50:42 +01:00
Nicolò Santilio
0ddd7da865
Add files via upload 2020-11-06 19:49:54 +01:00
Nicolò Santilio
624662e8a2
Update 0.4.1
- bugfix
- added PieChart
- implemented real time plotting
- implemented array plotting
2020-11-06 19:32:11 +01:00
Nicolò Santilio
ca7f3116b8
Fixed delimiter resetting 2020-10-22 18:03:10 +02:00
Nicolò Santilio
5814736ed6
Delete .gdignore 2020-10-21 17:19:03 +02:00
eddex
b871022ccb refactor: apply GDScript style guide to line_chart.gd 2020-10-05 18:12:23 +02:00
eddex
836efde1b6 refactor: convert indentation to tabs 2020-10-05 17:49:31 +02:00
eddex
79a2a6ff2e refactor: use # instread of """ for docstring 2020-10-05 17:44:20 +02:00