ASE Home Page Products Download Purchase Support About ASE
ChartDirector Support
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  .net core 3.1 Blazor
Posted by Craig Roberts on Feb-02-2020 08:06
Hello Peter,

What do you think your plans are for .net Blazor.
Will it require its own viewer or will it be implemented through MVC.

Regards
Craig Roberts

  Re: .net core 3.1 Blazor
Posted by Peter Kwan on Feb-03-2020 03:25
Hi Craig Roberts,

We have not yet investigate Blazor in detail. Based on information available online, Blazor is a class of new .NET web frameworks. Initially, it contains at least two different frameworks - Blazor running on Server, and Blazor running as a WebAssembly. The Blazor on Server is introduced in .NET Core 3, while Blazor running as a WebAssembly has not yet formally released.

At the moment, we will probably wait until Blazor is more mature before we will consider it.
As we have not tried it yet, we are not sure if the current ChartDirector ASP.NET Core support can be used with Blazor.

Regards
Peter Kwan

  Re: .net core 3.1 Blazor
Posted by Philip on Jun-02-2021 01:38
Hi Peter,

Do you have an update for your support for Blazor?

Cheers,
Philip

  Re: .net core 3.1 Blazor
Posted by Peter Kwan on Jun-03-2021 00:31
Hi Philip,

Unluckily, we still have not yet investigate Blazor in detail, and so we have not got any update.

Regards
Peter Kwan

  Re: .net core 3.1 Blazor
Posted by Suria on Aug-03-2021 14:56
Hi petter. We got an requirement to upgrade our existing system to blazor wasm. Is there any pipeline for this release ?

Thanks

  Re: .net core 3.1 Blazor
Posted by Peter Kwan on Aug-05-2021 00:23
Hi Suria,

We will consider Blazor WASM when .NET 6 is available, so even if we decide to support Blazor, it will not be available within this year.

Regards
Peter Kwan

  Re: .net core 3.1 Blazor
Posted by Suria on Apr-14-2022 14:02
Hi Peter,

Would like to know if there is Any progress with Blazor ? .

We also planning to develop a web application using latest Asp.Net. We are planning to use your Realtime chart with viewport to load and display atleast 48hours of ecg with frequency in seconds. We are experienced of using your in realtime chart in client server which is working flawlessly until now.  So we would like to know if your chart has the capabilities in rendering the chart at client side now ? as we afraid if it renders at server there will some performance  issues.

Please advise, how to we handle this
Thanks
Suria

  Re: .net core 3.1 Blazor
Posted by suria on Oct-24-2023 20:35
Do you have update on blazor or client side rendering ?

  Re: .net core 3.1 Blazor
Posted by Peter Kwan on Oct-26-2023 03:25
Hi Suria,

By just using the current ChartDirector 7.1 for .NET, we are able to display all the chart types with Blazor Web Assembly and also with MAUI. However, we have not yet implemented the "user interaction" part, such as programming track cursor, drag to zoom/scroll, etc..

Best Regards
Peter Kwan

  Re: .net core 3.1 Blazor
Posted by Ole on Apr-24-2024 10:50
Hi,

We finally settled on blazor as a UI framework. Do you have any C# example code how to setup chart director and blazor? Also, is there an update on supporting user interactions?

  Re: .net core 3.1 Blazor
Posted by Peter Kwan on Apr-25-2024 15:56
Hi Ole,

I will post an sample project by Friday. Currently, the unmodified ChartDirector can draw all chart types of Blazor, but the fonts are limited to the only font built into Microsoft SkiaSharp. We need to modify ChartDirector a little bit to make it support embedded fonts.

For the user interaction, we think supporting tooltips and track cursors should be doable with the unmodified ChartDirector, but drag to zoom/scroll may need more work.

Best Regards
Peter Kwan

  Re: .net core 3.1 Blazor
Posted by Ole on Apr-25-2024 16:02
Hi,

I've got basic chart rendering working using RazorChartViewer. I'm rendering into an image (chart.makeWebImage(Chart.PNG)) and then to HTML (viewer.RenderHTML()). Is this the right approach?

We would indeed need pan and zoom controls, is this on your roadmap?

  Re: .net core 3.1 Blazor
Posted by Peter Kwan on Apr-25-2024 16:27
Hi Ole,

There are two ways to use Blazor. It can be used in the server side or the browser side.

I was thinking about using Blazor WASM on the browser side. Now I read your message again and it seems you are using Blazor on the server side. I have not tried it myself, but I think server side usage should be much easier than browser side usage. I will try it myself and update you on Friday.

Best Regards
Peter Kwan

  Re: .net core 3.1 Blazor
Posted by Ole on Apr-25-2024 16:31
Yes, I indeed use server side rendering with .NET 8:

@attribute [StreamRendering]
@rendermode InteractiveServer

  Re: .net core 3.1 Blazor
Posted by Peter Kwan on May-01-2024 02:13
Attachments:
Hi Ole,

Sorry for the late reply.

I started from the Blazor example in the Microsoft web site:

https://dotnet.microsoft.com/en-us/learn/aspnet/blazor-tutorial/intro

The Microsoft Blazor example includes a counter. When a push button is pressed, the contour will increment by 1.

I modified the code by adding a simple bar chart with image map tooltip and track cursor. The push button handler is modified that it will also increment the data for the first bar. So as you press the button, the chart will change.

The code is more tricky than expected. Initially, all the Javascript mouse events will not work, because Blazor will intercept all events and route them to the server. Eventually we find out how to re-enable the mouse events on the browser side to make the code work.

The Blazor framework does make updating the chart much easier. In our ASP.NET sample code, Javsacript code is needed to request "partialUpdate" (update the chart without reload the entire page), and server side ASP.NET code will need to handle the partialUpdate. With Blazor, we just update the chart on the server side and it will automatically appear in the browser.

Best Regards
Peter Kwan
BlazorApp3.zip
BlazorApp3.zip

130.21 Kb

  Re: .net core 3.1 Blazor
Posted by ole on May-02-2024 10:04
Thank you Peter