first step to show plot on dashboard
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
<style>
|
||||
|
||||
</style>
|
||||
<p>{{data.config.query}}</p>
|
||||
@@ -0,0 +1,23 @@
|
||||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
|
||||
import { PlotWidgetComponent } from './plot-widget.component';
|
||||
|
||||
describe('PlotWidgetComponent', () => {
|
||||
let component: PlotWidgetComponent;
|
||||
let fixture: ComponentFixture<PlotWidgetComponent>;
|
||||
|
||||
beforeEach(async () => {
|
||||
await TestBed.configureTestingModule({
|
||||
declarations: [ PlotWidgetComponent ]
|
||||
})
|
||||
.compileComponents();
|
||||
|
||||
fixture = TestBed.createComponent(PlotWidgetComponent);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,13 @@
|
||||
import { Component, Input } from '@angular/core';
|
||||
import { PlotWidget } from 'src/app/dashboard.service';
|
||||
|
||||
@Component({
|
||||
selector: 'app-plot-widget',
|
||||
templateUrl: './plot-widget.component.html'
|
||||
})
|
||||
export class PlotWidgetComponent {
|
||||
@Input("data")
|
||||
data!: PlotWidget;
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user