| | |
| | | </template> |
| | | <script> |
| | | import { init, dispose } from 'klinecharts' |
| | | // import KLineChart from 'klinecharts' |
| | | // const chart = new KLineChart(document.getElementById('kline')); |
| | | |
| | | // chart.setOptions({ |
| | | // interaction: { |
| | | // // 禁用手势的恢复功能 |
| | | // restore: false, |
| | | // } |
| | | // }); |
| | | let chart = null |
| | | |
| | | import { _getKline } from '@/API/trade.api' |
| | | import config from './config' |
| | | import { Loading } from 'vant'; |
| | |
| | | chart.applyNewData(data); |
| | | this.$emit('updataLine', false) |
| | | }) |
| | | }, 1000); |
| | | }, 10000); |
| | | }, |
| | | setChartType() { |
| | | let type = 'area' |