mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-22 19:15:15 +00:00
Slightly improve PlotConfig
This commit is contained in:
parent
c7986e623b
commit
60620a8103
|
@ -20,7 +20,7 @@ import { format } from 'date-fns-tz';
|
|||
import { computed, onMounted, ref, watch } from 'vue';
|
||||
import ECharts from 'vue-echarts';
|
||||
|
||||
import { calculateDiff, getDiffColumns } from '@/shared/charts/areaPlotDataset';
|
||||
import { calculateDiff, getDiffColumnsFromPlotConfig } from '@/shared/charts/areaPlotDataset';
|
||||
import { dataZoomPartial } from '@/shared/charts/chartZoom';
|
||||
import { EChartsOption, ScatterSeriesOption } from 'echarts';
|
||||
import { BarChart, CandlestickChart, LineChart, ScatterChart } from 'echarts/charts';
|
||||
|
@ -120,7 +120,7 @@ const chartTitle = computed(() => {
|
|||
});
|
||||
|
||||
const diffCols = computed(() => {
|
||||
return getDiffColumns(props.plotConfig);
|
||||
return getDiffColumnsFromPlotConfig(props.plotConfig);
|
||||
});
|
||||
|
||||
function updateChart(initial = false) {
|
||||
|
|
|
@ -23,7 +23,7 @@ export function calculateDiff(
|
|||
});
|
||||
}
|
||||
|
||||
export function getDiffColumns(plotConfig: PlotConfig): string[][] {
|
||||
export function getDiffColumnsFromPlotConfig(plotConfig: PlotConfig): string[][] {
|
||||
const result: string[][] = [];
|
||||
if ('main_plot' in plotConfig) {
|
||||
Object.entries(plotConfig.main_plot).forEach(([key, value]) => {
|
||||
|
@ -41,8 +41,5 @@ export function getDiffColumns(plotConfig: PlotConfig): string[][] {
|
|||
});
|
||||
});
|
||||
}
|
||||
console.log('getDiffColumns', result);
|
||||
return result;
|
||||
}
|
||||
|
||||
export default calculateDiff;
|
||||
|
|
Loading…
Reference in New Issue
Block a user