This commit is contained in:
Matthias 2021-05-24 19:23:29 +02:00
parent 8ed1929f27
commit 44485bbfbb

View File

@ -107,7 +107,6 @@ export default class CandleChart extends Vue {
show: true,
},
],
// backgroundColor: '#1b1b1b',
useUTC: this.useUTC,
animation: false,
legend: {
@ -210,6 +209,7 @@ export default class CandleChart extends Vue {
// ],
// },
};
console.log('Initialized');
this.updateChart(true);
}
@ -221,6 +221,9 @@ export default class CandleChart extends Vue {
if (this.chartOptions?.title) {
this.chartOptions.title[0].text = this.chartTitle;
}
if (this.theme === 'dark') {
this.chartOptions.backgroundColor = '#3c3c3c';
}
const colDate = this.dataset.columns.findIndex((el) => el === '__date_ts');
const colOpen = this.dataset.columns.findIndex((el) => el === 'open');
const colHigh = this.dataset.columns.findIndex((el) => el === 'high');