Coder Social home page Coder Social logo

unityguicharteditor's People

Contributors

alessandrotironi avatar bamboy avatar thsbrown avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

unityguicharteditor's Issues

Amazing work! Any way to push value labels as (x,y) coordinates?

First off just want to say you did an amazing job on this asset. Works great and the code seems to be well commented and architected. Just really incredible stuff.

I'm curious how I might go about adding a value label as an (x,y) coordinate and or if that's even possible. It looks like I can hack it up a bit using the current system (GUIChartEditor.PushValueLabel(...)) but as it stands now it doesn't look like it's possible.

Am I correct in my understanding?

Thanks in advance!

A little bug i found

First of all, thanks for this little great library!

I found a small bug about the background color of the chart, is currently a fixed value Color.Black, the line is 289 on the GUIChartEditor script, currently is

GL.Color(Color.black);

and should be

GL.Color(CurrentChart.currentBgColor);

Thanks again fo this great graph drawer!

BUG: Negative Cell Size Value Crashes Unity

A simple Mathf.Abs or Mathf.Max on the input values of ShowGrid() would fix this.

This issue can be produced easily by changing the values in the inspector of the example scene.

EDIT: During this crash, unity will have a memory leak as well, until the process is ended manually.

Positive values don't work for minimum chart bounds?

If I take this base code:

        GUIChartEditor.BeginChart(0, 400, 0, 200, Color.black,
            GUIChartEditorOptions.ChartBounds(0, 10, 0, 10),
            GUIChartEditorOptions.SetOrigin(ChartOrigins.BottomLeft),
            GUIChartEditorOptions.ShowAxes(Color.white)
        );

        GUIChartEditor.PushPoint(new Vector2(0, 5), Color.red);
        GUIChartEditor.PushPoint(new Vector2(5, 5), Color.red);
        GUIChartEditor.PushPoint(new Vector2(10, 5), Color.red);

        GUIChartEditor.EndChart();

I get:
952337b7e765fb77db15a5a543ed6319

Which is the expected result.

If I set a negative minimum X, like:

GUIChartEditorOptions.ChartBounds(-10, 10, 0, 10),

I get:
732ed1f311e6e5299844c0896d95784b

Also correct, expected result.

However, if I set a positive minimum value, like:

GUIChartEditorOptions.ChartBounds(5, 10, 0, 10),

I get an unexpected result:
2dbc86b06a99cb09a051b5d5b7989d48

I would expect to see a red dot on the left, and right in this case? Also I note the white y axis line is displaying on the right side of the image which is also unexpected?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.