diff --git a/src/components/ftbot/CandleChart.vue b/src/components/ftbot/CandleChart.vue index a3c23fbc..d09187ff 100644 --- a/src/components/ftbot/CandleChart.vue +++ b/src/components/ftbot/CandleChart.vue @@ -32,12 +32,21 @@ const plotConfig = { export default { name: 'CandleChart', components: { 'v-chart': ECharts }, + props: { + pair: { + type: String, + required: false, + default: 'XRP/USDT', + }, + timeframe: { + type: String, + required: false, + default: '5m', + }, + }, data() { - return { - pair: 'XRP/USDT', - timeframe: '5m', - }; + return {}; }, computed: { ...mapState('ftbot', ['history']), diff --git a/src/views/Graphs.vue b/src/views/Graphs.vue index 833afd7b..a536bced 100644 --- a/src/views/Graphs.vue +++ b/src/views/Graphs.vue @@ -1,11 +1,19 @@