Skip to content

plotly-plot is not a known element issue in Angular 11 #150

@vikramgeek

Description

@vikramgeek
plotlygraph.component.html :- 
 <plotly-plot [data]="graph.data" [layout]="graph.layout"></plotly-plot>

In plotlygraph.component.ts :-
graph object is already declared there.

In app.module.ts:-
 import * as PlotlyJS from 'plotly.js/dist/plotly.js'; 
 import { PlotlyModule } from 'angular-plotly.js';

 PlotlyModule.plotlyjs = PlotlyJS;

 imports: [
  BrowserModule,
  AppRoutingModule,
  BrowserAnimationsModule,
  HttpClientModule,
  PlotlyModule,
 ],

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions