njakka
Topic Author
Posts: 4
Joined: 06 Jan 2021, 14:39

Draw charts in unity

06 Jan 2021, 14:44

I need to add line chart in my application. I can use oxyplot or livecharts to create the chart in WPF but when I load the xaml to unity, there are errors that these third party dlls are incompatible. What options do I have to create charts using noesis.

Tags:
 
User avatar
jsantos
Site Admin
Posts: 3015
Joined: 20 Jan 2012, 17:18
Contact:

Re: Draw charts in unity

06 Jan 2021, 15:32

Noesis is not binary compatible with WPF. But with modifications you can probably adapt any WPF library. There is a port of Oxyplot for NoesisGUI here

https://github.com/easylaser/OxyPlotNoesisGUI

If you need a different library, then you need to do the modifications needed to be compatible with Noesis. Any deviation from WPF in Noesis can be considered a bug, we will try to fix anything you report about this.
 
njakka
Topic Author
Posts: 4
Joined: 06 Jan 2021, 14:39

Re: Draw charts in unity

06 Jan 2021, 15:52

What are the steps to use this inside unity. If I copy the OxyPlotNoesisGUI to unity, it has a lot of errors.
 
User avatar
jsantos
Site Admin
Posts: 3015
Joined: 20 Jan 2012, 17:18
Contact:

Re: Draw charts in unity

06 Jan 2021, 15:58

We are not the developers of this port, but reading the README.MD
This repo contains a version of the OxyPlot charting library modified to use NoesisGUI (http://www.noesisengine.com/noesis_gui_features.htm) for rendering inside Unity3D. You need to provide your own implementation of some classes in the .Net framework that are not included in Unity3D. You can use the .Net reference source (http://referencesource.microsoft.com) as reference (doh), but its license prohibits use other than that.

This is still very much a work in progress. There is a LOT of code that is commented out to get the project to compile, and a lot of things will probably not work at all or start falling apart if changing even simple things.

Any contributions are welcome!

Who is online

Users browsing this forum: MiBa and 0 guests