renamed BarChart -> ColumnChart

This commit is contained in:
Nicolò Santilio 2020-12-31 15:07:26 +01:00
parent c9023e2dac
commit 79661f34d4
6 changed files with 17 additions and 15 deletions

View File

@ -1,11 +1,11 @@
[gd_scene load_steps=4 format=2] [gd_scene load_steps=4 format=2]
[ext_resource path="res://addons/easy_charts/Utilities/Point/PointData.tscn" type="PackedScene" id=1] [ext_resource path="res://addons/easy_charts/Utilities/Point/PointData.tscn" type="PackedScene" id=1]
[ext_resource path="res://addons/easy_charts/BarChart/bar_chart.gd" type="Script" id=2] [ext_resource path="res://addons/easy_charts/ColumnChart/column_chart.gd" type="Script" id=2]
[sub_resource type="Theme" id=1] [sub_resource type="Theme" id=1]
[node name="BarChart" type="Control"] [node name="ColumnChart" type="Control"]
anchor_right = 1.0 anchor_right = 1.0
anchor_bottom = 1.0 anchor_bottom = 1.0
rect_min_size = Vector2( 70, 50 ) rect_min_size = Vector2( 70, 50 )
@ -82,10 +82,10 @@ __meta__ = {
[node name="PointData" parent="." instance=ExtResource( 1 )] [node name="PointData" parent="." instance=ExtResource( 1 )]
[node name="PointData" parent="PointData" index="0"] [node name="PointData" parent="PointData" index="0"]
margin_left = -32.6676 margin_left = -593.381
margin_top = -84.4238 margin_top = -80.9071
margin_right = -32.8033 margin_right = -593.517
margin_bottom = -83.6237 margin_bottom = -80.107
theme = SubResource( 1 ) theme = SubResource( 1 )
[editable path="PointData"] [editable path="PointData"]

View File

@ -1,9 +1,9 @@
tool tool
extends Chart extends Chart
class_name BarChart class_name ColumnChart
""" """
[BarChart] - General purpose node for Bar Charts [ColumnChart] - General purpose node for Column Charts
A bar chart or bar graph is a chart or graph that presents categorical data with 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. rectangular bars with heights or lengths proportional to the values that they represent.
@ -25,7 +25,7 @@ func _get_property_list():
{ {
"hint": PROPERTY_HINT_NONE, "hint": PROPERTY_HINT_NONE,
"usage": PROPERTY_USAGE_CATEGORY, "usage": PROPERTY_USAGE_CATEGORY,
"name": "BarChart", "name": "ColumnChart",
"type": TYPE_STRING "type": TYPE_STRING
}, },
{ {

View File

@ -1,9 +1,9 @@
tool tool
extends Chart2D extends Chart2D
class_name BarChart2D class_name ColumnChart2D
""" """
[BarChart2D] - General purpose node for Bar Charts [ColumnChart2D] - General purpose node for Bar Charts
A bar chart or bar graph is a chart or graph that presents categorical data with 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. rectangular bars with heights or lengths proportional to the values that they represent.

View File

@ -1,8 +1,10 @@
[gd_scene load_steps=3 format=2] [gd_scene load_steps=3 format=2]
[ext_resource path="res://addons/easy_charts/BarChart2D/BarChart2D.gd" type="Script" id=1] [ext_resource path="res://addons/easy_charts/ColumnChart2D/ColumnChart2D.gd" type="Script" id=1]
[ext_resource path="res://addons/easy_charts/Utilities/Point/PointData.tscn" type="PackedScene" id=2] [ext_resource path="res://addons/easy_charts/Utilities/Point/PointData.tscn" type="PackedScene" id=2]
[node name="BarChart2D" type="Node2D"] [node name="BarChart2D" type="Node2D"]
script = ExtResource( 1 ) script = ExtResource( 1 )
__meta__ = { __meta__ = {

View File

@ -2,9 +2,9 @@ tool
extends Node2D extends Node2D
var LineChart = preload("LineChart2D/LineChart2D.tscn") var LineChart = preload("LineChart2D/LineChart2D.tscn")
var ColumnChart = preload("BarChart2D/BarChart2D.tscn") var ColumnChart = preload("ColumnChart2D/ColumnChart2D.tscn")
export (String,"None","LineChart2D","BarChart2D") var chart_type : String setget set_type,get_type export (String,"None","LineChart2D","ColumnChart2D") var chart_type : String setget set_type,get_type
var chart : Node2D setget set_chart,get_chart var chart : Node2D setget set_chart,get_chart
# Called when the node enters the scene tree for the first time. # Called when the node enters the scene tree for the first time.

View File

@ -5,7 +5,7 @@ var plugin_name : String = "Easy Charts"
var templates : Dictionary = {} var templates : Dictionary = {}
var chart_types : Dictionary = { var chart_types : Dictionary = {
0:"LineChart", 0:"LineChart",
1:"BarChart", 1:"ColumnChart",
2:"ScatterChart", 2:"ScatterChart",
3:"RadarChart", 3:"RadarChart",
4:"PieChart" 4:"PieChart"