Commit Graph

20 Commits

Author SHA1 Message Date
Jorge
1d31b3a7dc 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.
2021-03-25 03:06:55 +01:00
Jorge
16d144f418 Add autoscale or user-defined range 2021-03-02 20:18:31 +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
d85a85d71e @invert_chart and @are_values_columns fixed 2020-12-31 13:47:14 +01:00
Nicolò Santilio
b16e9ab259
Add files via upload 2020-12-30 15:30:42 +01:00
Nicolò Santilio
8e2cfeecf5
fix plotting with values below 1.0 2020-12-21 18:42:20 +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
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
eddex
fd1826beb7 refactor: rename LineChart.gd to line_chart.gd 2020-10-05 17:41:46 +02:00
Nicolò Santilio
6ebf8f823c minor fixes update 2020-08-04 15:22:30 +02:00
Nicolò Santilio
0cf6873d75 update v0.2.8 2020-05-30 01:42:58 +02:00
Nicolò Santilio
009488b43b *added*- radar chart- better charts implementation- chart and chart2D classes to identify each chart- function_names_index as parameter to determine what's the index of the function names (both rows or columns) 2020-05-26 23:52:45 +02:00
fenix-hub
9a199ff1c7 v0.2 update 2020-05-20 17:28:10 +02:00
fenix-hub
c5097b1987 linechart and birechart fix update 2020-05-18 07:46:26 +02:00
fenix-hub
529da43016
Add files via upload 2020-05-14 13:55:30 +02:00
fenix-hub
3397384582
Add files via upload 2020-05-14 02:36:45 +02:00