mirror of
https://github.com/Relintai/pandemonium_engine_easy_charts.git
synced 2024-11-14 10:17:24 +01:00
1d31b3a7dc
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.
91 lines
2.9 KiB
Plaintext
91 lines
2.9 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/ScatterChart/scatter_chart.gd" type="Script" id=2]
|
|
|
|
[sub_resource type="Theme" id=1]
|
|
|
|
[node name="ScatterChart" type="Control"]
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
rect_min_size = Vector2( 70, 50 )
|
|
mouse_filter = 2
|
|
script = ExtResource( 2 )
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false,
|
|
"_editor_description_": "[ScatterChart] - General purpose node for Scatter Charts
|
|
|
|
A scatter plot (also called a scatterplot, scatter graph, scatter chart, scattergram, or scatter diagram)
|
|
is a type of plot or mathematical diagram using Cartesian coordinates to display values for typically two variables
|
|
for a set of data. If the points are coded (color/shape/size), one additional variable can be displayed.
|
|
The data are displayed as a collection of points, each having the value of one variable determining the position on
|
|
the horizontal axis and the value of the other variable determining the position on the vertical axis."
|
|
}
|
|
Chart_Properties/are_values_columns = false
|
|
Chart_Properties/labels_index = 0
|
|
Chart_Properties/show_x_values_as_labels = false
|
|
Chart_Display/autoscale_x = true
|
|
Chart_Display/x_decim = 1.0
|
|
Chart_Display/autoscale_y = true
|
|
Chart_Display/y_decim = 1.0
|
|
Chart_Style/points_shape = [ ]
|
|
Chart_Style/function_colors = PoolColorArray( )
|
|
Chart_Style/box_color = Color( 0.117647, 0.117647, 0.117647, 1 )
|
|
Chart_Style/grid_lines_width = 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="Points" type="Control" parent="."]
|
|
margin_right = 40.0
|
|
margin_bottom = 40.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="ChartName" type="Label" parent="."]
|
|
anchor_right = 1.0
|
|
margin_bottom = 14.0
|
|
align = 1
|
|
valign = 1
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="PointData" parent="." instance=ExtResource( 1 )]
|
|
|
|
[node name="PointData" parent="PointData" index="0"]
|
|
margin_left = -510.384
|
|
margin_top = -148.79
|
|
margin_right = -510.52
|
|
margin_bottom = -147.99
|
|
theme = SubResource( 1 )
|
|
|
|
[editable path="PointData"]
|