mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-25 20:45:15 +00:00
Improve candleChart behavior
This commit is contained in:
parent
6230abedab
commit
94d0fd5bb5
|
@ -489,13 +489,17 @@ export default defineComponent({
|
|||
chartOptions.value.series.push(tradesSeries);
|
||||
}
|
||||
|
||||
console.log('chartOptions', chartOptions.value);
|
||||
if (candleChart.value) {
|
||||
candleChart.value.setOption(chartOptions.value);
|
||||
}
|
||||
// console.log('chartOptions', chartOptions.value);
|
||||
candleChart.value?.setOption(chartOptions.value, {
|
||||
replaceMerge: ['series', 'grid', 'yAxis', 'xAxis', 'legend'],
|
||||
noMerge: !initial,
|
||||
});
|
||||
};
|
||||
|
||||
const initializeChartOptions = () => {
|
||||
// Ensure we start empty.
|
||||
candleChart.value?.setOption({}, { noMerge: true });
|
||||
|
||||
chartOptions.value = {
|
||||
title: [
|
||||
{
|
||||
|
@ -706,7 +710,6 @@ export default defineComponent({
|
|||
candleChart,
|
||||
buyData,
|
||||
sellData,
|
||||
chartOptions,
|
||||
strategy,
|
||||
pair,
|
||||
timeframe,
|
||||
|
|
Loading…
Reference in New Issue
Block a user