We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
10.0.0-alpha2
`<script setup> import {onMounted, onUnmounted} from 'vue' import {init, dispose} from 'klinecharts'
onMounted(() => { const chart = init('chart')
chart.setLoadMoreDataCallback((data) => { console.log(data) });
chart.applyNewData([ {close: 4976.16, high: 4977.99, low: 4970.12, open: 4972.89, timestamp: 1587660000000, volume: 204}, {close: 4977.33, high: 4979.94, low: 4971.34, open: 4973.20, timestamp: 1587660060000, volume: 194}, {close: 4977.93, high: 4977.93, low: 4974.20, open: 4976.53, timestamp: 1587660120000, volume: 197}, {close: 4966.77, high: 4968.53, low: 4962.20, open: 4963.88, timestamp: 1587660180000, volume: 28}, {close: 4961.56, high: 4972.61, low: 4961.28, open: 4961.28, timestamp: 1587660240000, volume: 184}, {close: 4964.19, high: 4964.74, low: 4961.42, open: 4961.64, timestamp: 1587660300000, volume: 191}, {close: 4968.93, high: 4972.70, low: 4964.55, open: 4966.96, timestamp: 1587660360000, volume: 105}, {close: 4979.31, high: 4979.61, low: 4973.99, open: 4977.06, timestamp: 1587660420000, volume: 35}, {close: 4977.02, high: 4981.66, low: 4975.14, open: 4981.66, timestamp: 1587660480000, volume: 135}, {close: 4985.09, high: 4988.62, low: 4980.30, open: 4986.72, timestamp: 1587660540000, volume: 76} ])
chart.subscribeAction('onScroll', (data) => { console.log(data) }) })
onUnmounted(() => { dispose('chart') }) </script>
setLoadMoreDataCallback在左右滑动的时候不触发
可以加载更多数据
- OS: - Browser: - Framework:
No response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Version
10.0.0-alpha2
Steps to Reproduce
`<script setup>
import {onMounted, onUnmounted} from 'vue'
import {init, dispose} from 'klinecharts'
onMounted(() => {
const chart = init('chart')
chart.setLoadMoreDataCallback((data) => {
console.log(data)
});
chart.applyNewData([
{close: 4976.16, high: 4977.99, low: 4970.12, open: 4972.89, timestamp: 1587660000000, volume: 204},
{close: 4977.33, high: 4979.94, low: 4971.34, open: 4973.20, timestamp: 1587660060000, volume: 194},
{close: 4977.93, high: 4977.93, low: 4974.20, open: 4976.53, timestamp: 1587660120000, volume: 197},
{close: 4966.77, high: 4968.53, low: 4962.20, open: 4963.88, timestamp: 1587660180000, volume: 28},
{close: 4961.56, high: 4972.61, low: 4961.28, open: 4961.28, timestamp: 1587660240000, volume: 184},
{close: 4964.19, high: 4964.74, low: 4961.42, open: 4961.64, timestamp: 1587660300000, volume: 191},
{close: 4968.93, high: 4972.70, low: 4964.55, open: 4966.96, timestamp: 1587660360000, volume: 105},
{close: 4979.31, high: 4979.61, low: 4973.99, open: 4977.06, timestamp: 1587660420000, volume: 35},
{close: 4977.02, high: 4981.66, low: 4975.14, open: 4981.66, timestamp: 1587660480000, volume: 135},
{close: 4985.09, high: 4988.62, low: 4980.30, open: 4986.72, timestamp: 1587660540000, volume: 76}
])
chart.subscribeAction('onScroll', (data) => {
console.log(data)
})
})
onUnmounted(() => {
dispose('chart')
})
</script>
Current Behavior
setLoadMoreDataCallback在左右滑动的时候不触发
Expected Behavior
可以加载更多数据
Environment
Any additional comments?
No response
The text was updated successfully, but these errors were encountered: