Microcharts icon indicating copy to clipboard operation
Microcharts copied to clipboard

Bring Maui to Microcharts !

Open Seuleuzeuh opened this issue 4 years ago • 15 comments

Implementing Maui plaform for Microcharts.

Adding 2 more supported platforms :

  • [X] Maui
  • [X] WinUI

Adding 2 more sample :

  • [X] Maui (including Maui.WinUI)
  • [ ] WinUI

Platform tested :

  • [X] Android
  • [ ] iOS
  • [ ] MacOS
  • [ ] Windows

Fix :

  • #189
  • #282

Troubleshooting :
I'm unable to launch WinUI project for the moment, need more investigation.

Visuals :

  • Android Screenshot_1627331106

Seuleuzeuh avatar Jul 26 '21 20:07 Seuleuzeuh

Awesome! FYI @brminnick.

By proxy for the Windows part this should enable Microcharts for WinUI 3! FYI @azchohfi

ShiaSharp already has a WinUI View NuGet so hopefully that should help with the Windows side of this PR. 🎉🎉🎉

michael-hawker avatar Jul 26 '21 22:07 michael-hawker

Very cool, I'll take a look at this tonight

eman1986 avatar Jul 26 '21 22:07 eman1986

@Seuleuzeuh This looks good, should I assume you're still working on this since it's WIP?

eman1986 avatar Jul 27 '21 03:07 eman1986

@Seuleuzeuh This looks good, should I assume you're still working on this since it's WIP?

Yes I will work on it again today

Seuleuzeuh avatar Jul 27 '21 06:07 Seuleuzeuh

Awesome! FYI @brminnick.

By proxy for the Windows part this should enable Microcharts for WinUI 3! FYI @azchohfi

ShiaSharp already has a WinUI View NuGet so hopefully that should help with the Windows side of this PR. 🎉🎉🎉

This PR will include WinUI support too @michael-hawker :smile:

Seuleuzeuh avatar Jul 28 '21 21:07 Seuleuzeuh

@eman1986 i'm unable to test it on WinUI (bad VS 2022 installation) and iOS/MacOs version (error with Pair to Mac). I don't know if you want to merge it anyway ?

I've updated all the Skia dependencies to the 2.88.0-preview.61, necessary for Maui. We'll need to make update each preview version of .Net-6 and finally when the RC will come. I can handle that update part every new version.

I've attached all the nuspec file in the Solution (Solution items) for quicker update.

I've updated the readme and adding specific instruction for maui install.

Without the mac connection i can't generate a proper usable nuget, i'm working on it, but for now i didn't have luck. If you are able to generate the Maui-preview nuget it would be great !

Keep me inform :wink:

Seuleuzeuh avatar Aug 08 '21 14:08 Seuleuzeuh

I can give it a try, with MAUI being still preview as is our 1.0 codebase I'm ok with merging it in, .NET 6 is right around the corner so we should be fine.

eman1986 avatar Aug 08 '21 14:08 eman1986

@Seuleuzeuh

You can probably also add Blazor to your list. First preview nuget released enabling Skia support for Blazor.

https://www.nuget.org/packages/SkiaSharp.Views.Blazor

Pinox avatar Oct 19 '21 17:10 Pinox

We're not really looking to support web things at this time

eman1986 avatar Oct 19 '21 17:10 eman1986

I'm currently working on a project based on MAUI and would like to use the lib to display some graphs. Any updates on the state of this PR?

LarsBehl avatar Nov 28 '21 20:11 LarsBehl

There's currently a merge conflict that needs to be fixed.

eman1986 avatar Nov 28 '21 23:11 eman1986

I'm currently working on a project based on MAUI and would like to use the lib to display some graphs. Any updates on the state of this PR?

Once the PR is fixed up, I can get it merged in. It'd be in a preview release so bare that in mind.

eman1986 avatar Nov 28 '21 23:11 eman1986

Thanks. I'll keep in mind that it still is in preview.

LarsBehl avatar Nov 29 '21 11:11 LarsBehl

Hello, any updates on the merge status?

I'm starting a new MAUI project and would appreciate having the possibility to use this awesome library.

pavlobielousov avatar Jan 24 '22 09:01 pavlobielousov

Same here, would like to start a next project with .NET MAUI, but I'm only able to work with .NET MAUI if this great control set is ported to .NET 6! Hopefully a preview release can be distributed soon! :)

jBijsterboschNL avatar Feb 02 '22 08:02 jBijsterboschNL

Is this dead? I'm porting my app to MAUI and .NET 7, but it seems I'll have to find another library.

Ghostbird avatar Nov 24 '22 11:11 Ghostbird

Is this dead? I'm porting my app to MAUI and .NET 7, but it seems I'll have to find another library.

there is AlohaKit that has some controls

acaliaro avatar Nov 24 '22 11:11 acaliaro

Sadly this lost progress, but if someone could help out with it, it'd be a major help. I unfortunately have shifted to doing native mobile development and no longer have xamarin on my machine.

eman1986 avatar Nov 24 '22 15:11 eman1986

@eman1986 Thanks for the heads up. @acaliaro Thanks for the tip. I'm going to have a look at it. I don't have time to contribute outside of work. I was trying to port it to MAUI with feature parity, however as the charts feature isn't even officially supported in our app, I think we'll drop it, if we can't find a quick replacement library. If we get a customer willing to pay for this feature, I might actually get an opportunity to contribute.

Ghostbird avatar Nov 24 '22 22:11 Ghostbird

In case anyone is interested, I'm trying to see if I can port this to .NET MAUI 6.0 with some updated code.

Eilon avatar Jan 25 '23 17:01 Eilon

WinUI and Android working in my branch:

Here's WinUI:

image

And Android:

image

I'll pull out my Mac a bit later to test iOS/MacCatalyst.

Eilon avatar Jan 25 '23 18:01 Eilon

Unfortunately mixed status for iOS/MacCatalyst. On both platforms the MAUI sample app loads, but it then immediately hangs and I can't click on anything in the app, so I have to kill it.

MacCatalyst (hung):

image

iOS (hung in Simulator):

image

Eilon avatar Jan 25 '23 18:01 Eilon

My PR that updates this PR is available here: https://github.com/microcharts-dotnet/Microcharts/pull/325

Eilon avatar Jan 25 '23 18:01 Eilon