Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
init() {
this.chart = new Chart({
chart: {
type: 'line'
},
title: {
text: 'Linechart'
},
credits: {
enabled: false
},
series: [
{
name: 'Line 1',
data: [1, 2, 3],
type: 'line'
}
]
this.themeService.theme$.subscribe(theme => {
this.chart = new Chart(this.options);
});
}
this.themeService.theme$.subscribe(theme => {
this.chart = new Chart(this.options);
});
}
}) === -1) {
data.push([Date.parse(element.updated_at), null]);
}
}
});
series.push({
name: system,
data: data
});
});
this.options = {
xAxis: { type: 'datetime' },
title: { text: 'Influence trend' },
series: series
};
this.chart = new Chart(this.options);
}
}
},
legend: {
enabled: false
},
series: [{
name: 'ARK/USD',
data: currencyData,
color: '#f0373c',
animation: {
duration: 350
}
}]
};
options = this.toDarkMode(options);
this.chart = new Chart(options);
this.chartBuild(this.chart);
},
() => {
drawChart(data) {
this.chart = new Chart({
title: {text: ''},
credits: {enabled: false},
exporting: {enabled: false},
legend: {enabled: false},
chart: {
type: 'line',
backgroundColor: 'transparent',
height: null,
zoomType: null
},
yAxis: {
min: 0,
tickAmount: 5,
title: {
text: ''
this._themeService.isDarkThemeChange$.subscribe((data) => {
this.isDarkTheme = data;
if (this.chart) {
let options = this.chart['options'];
options = this.toDarkMode(options);
this.chart = new Chart(options);
this.chartBuild(this.chart);
}
});
}
this.themeService.theme$.subscribe(theme => {
this.chart = new Chart(this.options);
});
}
this.themeService.theme$.subscribe(theme => {
this.chart = new Chart(this.options);
});
}