fenix-hub / godot-engine.easy-charts

A Godot Engine addon for plotting general purpose charts. A collection of Control, 2D and 3D Nodes to plot every chart possible.
MIT License
648 stars 48 forks source link

how to use this library? #49

Closed nosa999 closed 1 year ago

nosa999 commented 3 years ago

I want to plot Time series data. I have implemented my code as below image: image

but I don't know how I can give my data to the plot. and after running the code I get below error: image

Is there any tutorial for using this library?

nosa999 commented 3 years ago

I need an example how I should use easy chart, please?

fenix-hub commented 3 years ago

@nosa999 Hi, sorry to answer you back only now. You can find a few examples on how to use this library in the wiki. Anyway the library is now under refactoring, so with the new Godot version some features may not work. I suggest you to use Control charts instead of Node2D ones instead. During this week I'll make sure to update it and work on some other tutorials. Sorry for the inconvenience

nosa999 commented 3 years ago

@fenix-hub Hi, no problem. thank you for your response.

ArikRahman commented 3 years ago

+1 I'm confused on how to use the control line chart, sorry, beginner here

ArikRahman commented 3 years ago

@nosa999 By the way the reason why utilities isnt declared in the scope is likely due to no being loaded. Go to asset lib then plugins and then tick it on. Then go to autoload and make sure utilities is ticked. May fix it.

fenix-hub commented 2 years ago

@nosa999 hi, the plugin has been updated, let me know if you are still interested in getting helped :)

uiosun commented 2 years ago

@nosa999 hi, the plugin has been updated, let me know if you are still interested in getting helped :)

Hi, I want to use it.

Can I download same version: 2021.1 release or master lasted?

fenix-hub commented 2 years ago

@Sun-FreePort hi, for now you will have to download the one from main branch or this release. The asset library will be updated soon

uiosun commented 2 years ago

@Sun-FreePort hi, for now you will have to download the one from main branch or this release. The asset library will be updated soon

I will use pre-release, find some error:

  1. utilities namespace is Utilities -- "U". (I think you must rename to other, commit, and rename again to "utilities", commit again. because git can't find lower / upper word.)
  2. has class load error, maybe i must use instance() in script.
fenix-hub commented 2 years ago

@Sun-FreePort can you show me the class load error please?

uiosun commented 2 years ago
  1. unzip pre-release file.
  2. move addons to project root path.(the project has git plugins)
  3. project setting -> plugins -> open the charts.
  4. add RadarChart node, parent is root (Node2D).
  5. run.

Godot from steam store:

Godot Engine v3.4.2.stable.official.45eaa2daf - https://godotengine.org OpenGL ES 3.0 Renderer: NVIDIA GeForce GTX 1060/PCIe/SSE2 OpenGL ES Batching: ON

My system is Win10 (x64), use chinese.

This Project zip file: test.zip

uiosun commented 2 years ago

and I use instance, has error (you can see that, in the project file):

0220109230329 0220109230601

fenix-hub commented 2 years ago

Oh ok you are using the instance feature, I need to check that out again since I didn't refactor it yet. I think that the class cannot be loaded because in your project.settings it is missing the "RadarChart" class. About the error instancing it, the path has changed, so I'll update the method right now

uiosun commented 2 years ago

Oh ok you are using the instance feature, I need to check that out again since I didn't refactor it yet. I think that the class cannot be loaded because in your project.settings it is missing the "RadarChart" class. About the error instancing it, the path has changed, so I'll update the method right now

Right.

I use Discord find you, if has some fix / update, you can tell me, I can test it.