mirror of
https://github.com/Relintai/pandemonium_engine_easy_charts.git
synced 2024-12-23 13:57:01 +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
92 lines
2.8 KiB
Plaintext
92 lines
2.8 KiB
Plaintext
[gd_scene load_steps=4 format=2]
|
||
|
||
[ext_resource path="res://addons/easy_charts/Utilities/Point/point_data.tscn" type="PackedScene" id=1]
|
||
[ext_resource path="res://addons/easy_charts/LineChart/line_chart.gd" type="Script" id=4]
|
||
|
||
|
||
[sub_resource type="Theme" id=1]
|
||
|
||
[node name="LineChart" type="Control"]
|
||
anchor_right = 1.0
|
||
anchor_bottom = 1.0
|
||
rect_min_size = Vector2( 70, 50 )
|
||
mouse_filter = 2
|
||
script = ExtResource( 4 )
|
||
__meta__ = {
|
||
"_edit_use_anchors_": false,
|
||
"_editor_description_": "[Linechart] - General purpose node for Line Charts
|
||
A line chart or line plot or line graph or curve chart is a type of chart which
|
||
displays information as a series of data points called 'markers'
|
||
connected by straight line segments.
|
||
It is a basic type of chart common in many fields. It is similar to a scatter plot
|
||
except that the measurement points are ordered (typically by their x-axis value)
|
||
and joined with straight line segments.
|
||
A line chart is often used to visualize a trend in data over intervals of time –
|
||
a time series – thus the line is often drawn chronologically.
|
||
In these cases they are known as run charts."
|
||
}
|
||
Chart_Properties/are_values_columns = false
|
||
Chart_Properties/labels_index = 0
|
||
Chart_Properties/show_x_values_as_labels = true
|
||
Chart_Display/x_decim = 5.0
|
||
Chart_Display/y_decim = 1.0
|
||
Chart_Style/points_shape = [ 0 ]
|
||
Chart_Style/function_colors = [ Color( 0.117647, 0.117647, 0.117647, 1 ) ]
|
||
Chart_Style/box_color = Color( 0.117647, 0.117647, 0.117647, 1 )
|
||
Chart_Style/v_lines_color = Color( 0.792157, 0.792157, 0.792157, 1 )
|
||
Chart_Style/h_lines_color = Color( 0.792157, 0.792157, 0.792157, 1 )
|
||
Chart_Style/font = null
|
||
Chart_Style/bold_font = null
|
||
Chart_Style/font_color = Color( 0.117647, 0.117647, 0.117647, 1 )
|
||
Chart_Style/use_template = true
|
||
Chart_Style/template = 0
|
||
Chart_Modifiers/treshold = Vector2( 0, 0 )
|
||
Chart_Modifiers/only_disp_values = Vector2( 0, 0 )
|
||
Chart_Modifiers/invert_chart = false
|
||
|
||
[node name="Background" type="ColorRect" parent="."]
|
||
visible = false
|
||
show_behind_parent = true
|
||
anchor_right = 1.0
|
||
anchor_bottom = 1.0
|
||
color = Color( 0.882353, 0.882353, 0.882353, 1 )
|
||
__meta__ = {
|
||
"_edit_use_anchors_": false
|
||
}
|
||
|
||
[node name="ChartName" type="Label" parent="."]
|
||
anchor_right = 1.0
|
||
margin_bottom = 14.0
|
||
align = 1
|
||
valign = 1
|
||
__meta__ = {
|
||
"_edit_use_anchors_": false
|
||
}
|
||
|
||
[node name="Points" type="Control" parent="."]
|
||
anchor_right = 1.0
|
||
anchor_bottom = 1.0
|
||
__meta__ = {
|
||
"_edit_use_anchors_": false
|
||
}
|
||
|
||
[node name="Legend" type="HBoxContainer" parent="."]
|
||
visible = false
|
||
margin_right = 1024.0
|
||
margin_bottom = 64.0
|
||
alignment = 1
|
||
__meta__ = {
|
||
"_edit_use_anchors_": false
|
||
}
|
||
|
||
[node name="PointData" parent="." instance=ExtResource( 1 )]
|
||
|
||
[node name="PointData" parent="PointData" index="0"]
|
||
margin_left = -257.531
|
||
margin_top = -244.08
|
||
margin_right = -257.667
|
||
margin_bottom = -243.28
|
||
theme = SubResource( 1 )
|
||
|
||
[editable path="PointData"]
|