Commit Graph

25 Commits

Author SHA1 Message Date
Jorge
e298e88231 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.
2021-03-17 00:05:36 +01:00
Jorge
dde7c16989 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.
2021-03-05 03:29:03 +01:00
Jorge
16d144f418 Add autoscale or user-defined range 2021-03-02 20:18:31 +01:00
Jorge
1252fe7a59 Add new plotting methods
Also renamed identifiers array to the already existing y_labels and a fix to correctly calculate tics.
2021-03-01 23:00:27 +01:00
Jorge
d4dd6367fb structure_datas rework
structure_datas structure the data to match the new format.
2021-02-26 00:26:34 +01:00
Jorge
5b97c528fe 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)
2021-02-25 21:57:05 +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
d934b5ed6b fix linechart datatype bug 2021-01-12 15:02:55 +01:00
Nicolò Santilio
79661f34d4 renamed BarChart -> ColumnChart 2020-12-31 15:07:26 +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
899c34d9fa
Add files via upload 2020-12-30 15:29:05 +01:00
Nicolò Santilio
a1d0f4c922
applied automatic resize on Control charts 2020-12-21 18:43:21 +01:00
Nicolò Santilio
1b7bf2f376
fix templates 2020-12-21 18:13:41 +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
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
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