Charts and Graphs for unity3d [Released]

The idea is that the text always faces the camera so it is easier to see it. If you are looking for a different behavior I can help you with this. Please contact me at support@prosourcelabs.com for more details.

Hi, my client needs a 3D line Plot. ĀæIs possible to make it using the bubble chart and apply a Line Render to each buble to connect the objects?

Yes. Thatā€™s possible. The bubble chart is an extention for the graph chart were you can control the point sizes. You can use it and add a line prefab to it. And that will get you a bubble chart with a line plot. Natuarally you can also have a 3d line plot without the bubbles if you want to.
If you need assistance in setting this up , please contact me on support@prosourcelabs.com

1 Like

I bought Thisā€¦
itā€™s great!!
but,
ā€˜online manualā€™ is too weak.
need supplement. (descirbe all [public propertys] at least.)

Thank you for your feedback. I have worked hard to add new features to Graph and Chart since it was initially realesed. the documention was updated a couple of times , but still lacks some of the newer features. anyway , the next version will include an up to date version of the mannual , and will include new tutorials. and as always , if you have some questions you can feel free to contact me at support@prosourcelabs.com.

Thamks.

1 Like

Iā€™m thinking of getting this package. Does it support line graphs that double back on itself? Can I draw a circle with the line graph?
Thanks

All graphs are sorted by x coordinate. This could theoritically be disabled , depending on your actual use of the graph chart. please contact me on support@prosourcelabs.com for more information

Hi there, I just bought your charts asset, and I have a doubt. I want to set data from code, not manually from the editor, but I canā€™t figure it out how to do it. Also I need to create more bars from code (in barchart case). Can you give me some help with that?

Thanks you.

check you the online docs and quick start guides : http://prosourcelabs.com/ChartAndGraph5/mannual.pdf

Also in order to add or remove categories and groups from the bar chart use the appropriate methods in the data source

bar.DataSource.AddCategory(ā€œcategory nameā€,UnityMaterial);

bar.DataSource.AddGroup(ā€œgroup nameā€);

Hi,

Just saw this chart & graph system on store today , before buying it want to ask couple of questions :-

  • How performance efficient this chart system is on mobile devices?
  • Can it plot 2d graphs chart at run-time and update it every frame? Example scenario plotting players heartbeat or plotting players emotional status.

Thanks.

  1. Yes ,It is tuned to perform on mobile. a lot of my customers use this on mobile.
  2. It allows you to stream data to the graph simialr to this example : http://prosourcelabs.com/ChartAndGraphRealtime/index.html

I create a Pie chart in Unity editor , hide it by default, and call SetActive(true) in runtime. The code work well in unity, However, when run it in webplayer, the
chart disappears.

Hereā€™s the snapshot in unity editor

Hereā€™s the one in webplayer

I found the error message in webplayerā€™s log:

NullReferenceException: Object reference not set to an instance of an object
  at ChartAndGraph.PieChart.GeneratePie (Boolean update) [0x00000] in <filename unknown>:0
  at ChartAndGraph.PieChart.OnPropertyChanged () [0x00000] in <filename unknown>:0
  at ChartAndGraph.PieChart.set_AngleSpan (Single value) [0x00000] in <filename unknown>:0
  at ChartAndGraph.PieAnimation.Animate () [0x00000] in <filename unknown>:0
  at ChartAndGraph.PieAnimation.OnEnable () [0x00000] in <filename unknown>:0
UnityEngine.GameObject:SetActive(Boolean)
FMEngine.UI.UiManager:SetRoomStaticInfoValue(RoomStaticInfo)
UiInterface:SetRoomStaticInfo(String)
(Filename:  Line: -1)

NullReferenceException: Object reference not set to an instance of an object
  at ChartAndGraph.PieChart.GeneratePie (Boolean update) [0x00000] in <filename unknown>:0
  at ChartAndGraph.PieChart.OnPropertyChanged () [0x00000] in <filename unknown>:0
  at ChartAndGraph.PieChart.set_AngleSpan (Single value) [0x00000] in <filename unknown>:0
  at ChartAndGraph.PieAnimation.Animate () [0x00000] in <filename unknown>:0
  at ChartAndGraph.PieAnimation.OnEnable () [0x00000] in <filename unknown>:0
UnityEngine.GameObject:SetActive(Boolean)
FMEngine.UI.UiManager:SetRoomStaticInfoValue(RoomStaticInfo)
UiInterface:SetRoomStaticInfo(String)
(Filename:  Line: -1)

Please help!

similar to my replay via email. This is most likely due to not using the latest version of unity. please update

Itā€™s a bug of unity, has been work around by a patch from the author. Thanks a lot.

I have some Matlab data (x and y coordinates, ie. 2d data) which I would like to stream from Matlab on one computer to Unity on another pc. Iā€™d like Unity to create and visualize a graph of this data ā€˜real-timeā€™, eventually for visualization in the HoloLens. Im quite new to Unity and C# but Im wondering if anyone can give me some tips on how to read data from the stream and plot this in realtime. Ive read about the linerenderer and GI options, however I cant find a tutorial on updating the graph real-time with new incoming data from a network stream. In Matlab I created a tcpipserver to stream a dataset and in Visual Studio Ive got a client. Is it possible to use this product for this project?

Yes. This is possible. Once you have a network stream you can send x and y coordinates to your client, Just add a canvas graph chart to your scene (set the canvas to world space for VR and AR). read the network stream and apply the data to the graph. Here is a simple example on how to do that , when the server sends two double coordinates at a time. Also make sure to check the endianess of the data.

    int bufferOffset = 0;
    byte[] buffer = new byte[sizeof(double) * 2];
    private void Update()
    {
        bufferOffset += netwrokStream.Read(buffer, bufferOffset, buffer.Length - bufferOffset);
        if(bufferOffset >= buffer.Length)
        {
            double x = BitConverter.ToDouble(buffer, 0);
            double y = BitConverter.ToDouble(buffer, sizeof(double);
            GraphChartBase graph = GetComponent<GraphChartBase>();
            graph.DataSource.AddPointToCategoryRealtime("Category", x, y, 1f);
            bufferOffset = 0;
        }
    }

Thanks for the update! Im wondering if this code wil work for a standard tcp server? At last, this will work completely fine for UWP (Hololens)? Thanks in advance!

This would depend on the setup of your server. This is an example of how one could implement this behavior. if you connect to a tcp server and take a network stream this will work ( again depending on the setup of the server). Hololens is supported as well as any platform supported by unity. I have customers using hololens.

On Unity 2017.1.1f1, if I simply import the asset and run the Tutorials/Graph scene (as well as most of the others), I get a bunch of warning on startup:

I get thatā€™s probably not hurting anything, but can you quiet those?

Yes , these apread in the latest version. I have already solved this issue for the dev version. Please contact me via email with your recipt Id and Iā€™ll send you the dev version.