Dashboard: fix plots

This commit is contained in:
phil 2024-03-25 10:12:02 +05:30
parent 89eae25604
commit 5d67b8a9dc
2 changed files with 4 additions and 3 deletions

View file

@ -26,8 +26,8 @@
<mat-panel-title>Plot</mat-panel-title> <mat-panel-title>Plot</mat-panel-title>
</mat-expansion-panel-header> </mat-expansion-panel-header>
<plotly-plot <plotly-plot
[data]="page.plotData['data']" [data]="page.plotData"
[layout]="page.plotData['layout']" [layout]="page.plotLayout"
[config]="plotlyConfig" [config]="plotlyConfig"
> >
</plotly-plot> </plotly-plot>

View file

@ -11,7 +11,8 @@ export type Dashboard = {
html?: (string | null); html?: (string | null);
attachment?: (string | null); attachment?: (string | null);
dfData?: Array<any>; dfData?: Array<any>;
plotData?: (string | null); plotData?: null;
plotLayout?: (Record<string, any> | null);
notebook?: (string | null); notebook?: (string | null);
expandedPanes?: (Array<string> | null); expandedPanes?: (Array<string> | null);
sections?: (Array<DashboardSection> | null); sections?: (Array<DashboardSection> | null);