KLineChart
KLineChart copied to clipboard
[Bug] Kline as line when precision as 8
Version
10.0.0-alpha2
Steps to Reproduce
- from the api example: https://klinecharts.com/api/chart/registerIndicator
- fork code from https://klinecharts.com/api/chart/registerIndicator#draw
- set data as small Demo: https://stackblitz.com/edit/pmkh6xgh?file=index.js
- then the kLine shows as line
Already setPrecision
chart.setPrecision({
price: 8,
volume: 8,
});
Current Behavior
Expected Behavior
Environment
- OS:Mac
- Browser:Chrome
- Framework:React@19
Any additional comments?
No response
Change the precision of this indicator.
Change the precision of this indicator.
You can see the online demo, already setting precision set data as small Demo: https://stackblitz.com/edit/pmkh6xgh?file=index.js
https://stackblitz.com/edit/pmkh6xgh-wr4uhrjn?file=index.js
@liihuu Is it possible to dynamically change precision based on the chart precision? I have a chart indicator that gets precision from the chart price.