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-expansion-panel-header>
<plotly-plot
[data]="page.plotData['data']"
[layout]="page.plotData['layout']"
[data]="page.plotData"
[layout]="page.plotLayout"
[config]="plotlyConfig"
>
</plotly-plot>

View file

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