mirror of
https://github.com/Relintai/pandemonium_engine_easy_charts.git
synced 2024-12-25 13:57:23 +01:00
d46e099717
* 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
67 lines
2.2 KiB
Plaintext
67 lines
2.2 KiB
Plaintext
[gd_scene load_steps=3 format=2]
|
|
|
|
[ext_resource path="res://addons/easy_charts/ColumnChart2D/column_chart2D.gd" type="Script" id=1]
|
|
[ext_resource path="res://addons/easy_charts/Utilities/Point/point_data.tscn" type="PackedScene" id=2]
|
|
|
|
|
|
|
|
|
|
|
|
[node name="BarChart2D" type="Node2D"]
|
|
script = ExtResource( 1 )
|
|
__meta__ = {
|
|
"_edit_group_": true,
|
|
"_editor_description_": "[BarChart2D] - General purpose node for Bar Charts
|
|
|
|
A bar chart or bar graph is a chart or graph that presents categorical data with
|
|
rectangular bars with heights or lengths proportional to the values that they represent.
|
|
The bars can be plotted vertically or horizontally. A vertical bar chart is sometimes
|
|
called a column chart.
|
|
A bar graph shows comparisons among discrete categories. One axis of the chart shows
|
|
the specific categories being compared, and the other axis represents a measured value.
|
|
Some bar graphs present bars clustered in groups of more than one, showing the
|
|
values of more than one measured variable."
|
|
}
|
|
function_colors = [ "#1e1e1e", "#1e1e1e", "#1e1e1e", "#1e1e1e" ]
|
|
|
|
[node name="Grid" type="Node2D" parent="."]
|
|
|
|
[node name="VLine" type="Line2D" parent="Grid"]
|
|
points = PoolVector2Array( 0, 0, 0, 0 )
|
|
width = 1.0
|
|
default_color = Color( 0.792157, 0.792157, 0.792157, 1 )
|
|
|
|
[node name="HLine" type="Line2D" parent="Grid"]
|
|
points = PoolVector2Array( 0, 0, 0, 0 )
|
|
width = 1.0
|
|
default_color = Color( 0.792157, 0.792157, 0.792157, 1 )
|
|
|
|
[node name="Outlines" type="Line2D" parent="."]
|
|
points = PoolVector2Array( 0, 0, 2, 0, 2, 2, 0, 2, 0, 0 )
|
|
width = 2.0
|
|
default_color = Color( 0.117647, 0.117647, 0.117647, 1 )
|
|
|
|
[node name="Functions" type="Node2D" parent="."]
|
|
|
|
[node name="Function" type="Line2D" parent="Functions"]
|
|
points = PoolVector2Array( 0, 0, 0, 0 )
|
|
width = 5.0
|
|
default_color = Color( 0.117647, 0.117647, 0.117647, 1 )
|
|
|
|
[node name="FunctionsTween" type="Tween" parent="."]
|
|
|
|
[node name="OutlinesTween" type="Tween" parent="."]
|
|
|
|
[node name="GridTween" type="Tween" parent="."]
|
|
|
|
[node name="PointData" parent="." instance=ExtResource( 2 )]
|
|
|
|
[node name="PointData" parent="PointData" index="0"]
|
|
visible = false
|
|
margin_left = 48.6217
|
|
margin_top = -122.631
|
|
margin_right = 48.4856
|
|
margin_bottom = -121.831
|
|
|
|
[editable path="PointData"]
|