mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-15 04:33:51 +00:00
chore: add default symbol size, simplify plotIndicators page
This commit is contained in:
parent
8a87258076
commit
286db84cc5
|
@ -1,10 +1,6 @@
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { ChartType, ChartTypeString, IndicatorConfig } from '@/types';
|
import { ChartType, ChartTypeString, IndicatorConfig } from '@/types';
|
||||||
|
|
||||||
import { watchDebounced } from '@vueuse/core';
|
|
||||||
|
|
||||||
const DEFAULT_SCATTER_SYMBOL_SIZE = 3;
|
|
||||||
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
modelValue: { required: true, type: Object as () => Record<string, IndicatorConfig> },
|
modelValue: { required: true, type: Object as () => Record<string, IndicatorConfig> },
|
||||||
columns: { required: true, type: Array as () => string[] },
|
columns: { required: true, type: Array as () => string[] },
|
||||||
|
@ -18,7 +14,7 @@ const availableGraphTypes = ref<ChartTypeString[]>(Object.keys(ChartType) as Cha
|
||||||
const selAvailableIndicator = ref('');
|
const selAvailableIndicator = ref('');
|
||||||
const cancelled = ref(false);
|
const cancelled = ref(false);
|
||||||
const fillTo = ref('');
|
const fillTo = ref('');
|
||||||
const scatterSymbolSize = ref(DEFAULT_SCATTER_SYMBOL_SIZE);
|
const scatterSymbolSize = ref(3);
|
||||||
|
|
||||||
function newColor() {
|
function newColor() {
|
||||||
selColor.value = randomColor();
|
selColor.value = randomColor();
|
||||||
|
|
|
@ -25,7 +25,7 @@ export function generateCandleSeries(
|
||||||
showSymbol: false,
|
showSymbol: false,
|
||||||
};
|
};
|
||||||
if (value.type === ChartType.scatter) {
|
if (value.type === ChartType.scatter) {
|
||||||
sp['symbolSize'] = value.scatterSymbolSize;
|
sp['symbolSize'] = value.scatterSymbolSize ?? 3;
|
||||||
sp['emphasis'] = {
|
sp['emphasis'] = {
|
||||||
disabled: true,
|
disabled: true,
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue
Block a user