mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-10 18:23:50 +00:00
Add empty candles at end to allow scroll past
This commit is contained in:
parent
f8918db078
commit
8b78a87e06
|
@ -175,12 +175,16 @@ export default defineComponent({
|
|||
});
|
||||
}
|
||||
}
|
||||
|
||||
const dataset = props.heikinAshi
|
||||
? heikinashi(datasetColumns.value, props.dataset.data)
|
||||
: props.dataset.data.slice();
|
||||
// Add new rows to end to allow slight "scroll past"
|
||||
const newArray = Array(dataset[dataset.length - 2].length);
|
||||
newArray[colDate] = dataset[dataset.length - 1][colDate] + props.dataset.timeframe_ms * 3;
|
||||
dataset.push(newArray);
|
||||
const options: EChartsOption = {
|
||||
dataset: {
|
||||
source: props.heikinAshi
|
||||
? heikinashi(datasetColumns.value, props.dataset.data)
|
||||
: props.dataset.data,
|
||||
source: dataset,
|
||||
},
|
||||
grid: [
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user