Errors trying to replicate the example solution #473
Replies: 1 comment
-
|
Found the problem, had to @Inject IJSRuntime JsRunTime in my _Imports. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I've installed the plotly.blazor nuget packages into my .net9 webapp project in rendermode InteractiveAuto. I've added a scatterplot.razor page and copied all the code from the ScatterChart.razor page from the example solution.
In OnInitialized() in the layout declaration the line :
var interop = new PlotlyJsInterop(this.JsRunTime, new PlotlyChart(), true);
is giving the error "'type' does not contain a definition for 'JsRunTime' and no accessible extension method 'JsRunTime' accepting a first argument of type 'type' could be found (are you missing a using directive or an assembly reference?).
Is there some component I need to add or am I just missing a using statement? (I have @using Plotly.Blazor.Interop)
Thanks
Beta Was this translation helpful? Give feedback.
All reactions