Skip to content
Snippets Groups Projects
Unverified Commit 8b6abce3 authored by xgui3783's avatar xgui3783 Committed by GitHub
Browse files

Merge pull request #346 from HumanBrainProject/bugfix/chartsDisplay

chore: remove unused fn
parents a915331f 7a8eed29
No related branches found
No related tags found
No related merge requests found
......@@ -38,12 +38,13 @@ export class ChartBase{
interval(500).pipe(
map(() => this.canvas && this.canvas.nativeElement),
filter(v => !!v),
take(1),
switchMap(el =>
from(
new Promise(rs => el.toBlob(blob => rs(blob), 'image/png'))
) as Observable<Blob>
)
),
filter(v => !!v),
take(1)
)
),
map(blob => {
......
......@@ -111,10 +111,6 @@ export class LineChart extends ChartBase implements OnChanges, CommonChartInterf
super(sanitizer)
}
ngOnInit(){
this.pngUrl$.subscribe(console.log)
}
ngOnChanges(){
this.shapedLineChartDatasets = this.lineDatasets.map(lineDataset=>({
data: lineDataset.data.map((v,idx)=>({
......
:host
{
display: block;
}
:host
{
display: block;
}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment