Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement with Blazor #7

Open
objorke opened this issue Oct 19, 2019 · 5 comments
Open

Implement with Blazor #7

objorke opened this issue Oct 19, 2019 · 5 comments

Comments

@objorke
Copy link
Member

objorke commented Oct 19, 2019

Add another implementation with Blazor

oxyplot/oxyplot#1311

@VisualMelon
Copy link

VisualMelon commented Oct 26, 2019

Very basic implementation at https://github.com/VisualMelon/oxyplot-fiddle/tree/BasicBlazor using the SVG Exporter (no plot interactivity). Would be possible to add PNG export using the ImageSharp APIs (for now its using 2.0). (blazor fiddle at /blazor.html)

I can't seem to get the scripting APIs to work in Blazor, but the existing code (from https://github.com/Suchiman/Runny) should hopefully be modifiable to allow the scripting syntax.

@belucha
Copy link

belucha commented Dec 1, 2019

I implement a sketch for a Blazor based Plotview that also handles some interactions. It's quite easy to use....

It's still not done, only mouse event interaction, but it's fantastic to use.
Just add as Blazor Component to your Blazor Page

https://github.com/belucha/oxyplot.blazor/blob/0a87dd0f1d4975105383d0ea74ba95f768247788/oxyplot-blazor/Pages/Index.razor#L8

@objorke
Copy link
Member Author

objorke commented Dec 2, 2019

@belucha We would love to see a PR for OxyPlot.Razor in the core repository! Even if it is just a sketch and not feature complete.

@belucha
Copy link

belucha commented Dec 3, 2019

@objorke I think OxyPlot and Blazor behave quite well together. I will try to find a place to load an online demo within the next couple of days.

I think it is not too much work left, to get a good start. The main things left to do is implementing all other interactions Keyboard and Wheel. Also I have to find a way to supress the default reaction of the browser (e.g. opening up the context menu). This will require some Clientside Javascript (event though I tried to avoid that where possible).

Besides that I integrated the OxyPlot Example project into the repo and most them seem to work out of the box.

@belucha
Copy link

belucha commented Dec 4, 2019

.NET CORE 3.1 addresses the problem of default event propagation, so I will upgrade to 3.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants