You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/en-US/guide/v9-to-v10.md
+11-7Lines changed: 11 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,23 +3,27 @@ This document will help you upgrade from klinecharts version 9.x to klinecharts
3
3
4
4
## Style configuration adjustment
5
5
+ Remove `yAxis.position` , `yAxis.type` , `yAxis.inside` and `yAxis.inside` . Please use the properties in the window configuration `axis` instead. For details, see the chart API [init(dcs, options)](/en-US/api/chart/init#parameters), instance API [createIndicator(value, isStack, paneOptions)](/en-US/api/instance/createIndicator#parameters) and [setPaneOptions(options)](/en-US/api/instance/setPaneOptions#parameters) .
+`init(dcs, options)`, `position` in `options.layout` sub-item changed to `order` , `formatDate(dateTimeFormat, timestamp, format, type)`in `options.customApi`changed to `formatDate(timestamp, format, type)`, `options.thousandsSeparator` changed to object `{ sign, format }`, `options.decimalFoldThreshold` changed to `options.decimalFold`.
16
+
+`init(dcs, options)`, `position` in `options.layout` sub-item changed to `order`, `options.customApi` changed to `options.formatter`, among which `formatDate(dateTimeFormat, timestamp, format, type)` changed to `formatDate({ dateTimeFormat, timestamp, format, type })`, `options.thousandsSeparator` changed to object `{ sign, format }`, `options.decimalFoldThreshold` changed to `options.decimalFold`.
14
17
15
18
### Instance API
16
-
+ Remove `setPriceVolumePrecision(pricePrecision, volumePrecision)`, please use `setPrecision(precision)` instead.
17
-
+ Remove `applyMoreData(dataList, more, callback)` , `setLoadDataCallback(cb)` and `loadMore(cb)` , please use `setLoadMoreDataCallback(cb)` instead.
19
+
+ Remove `setCustomApi(api)`, please use `setFormatter(formatter)` instead.
20
+
+ Remove `getCustomApi(api)`, please use `getFormatter(formatter)` instead.
21
+
+ Remove `setPriceVolumePrecision(pricePrecision, volumePrecision)`, please use `setSymbol(symbolInfo)` instead.
22
+
+ Remove `applyNewData(dataList, data, callback)`, `applyMoreData(dataList, more, callback)`, `updateData(data, callback)`, `setLoadDataCallback(cb)` and `loadMore(cb)`, please use `setDataLoader(loader)` instead.
23
+
+ Remove `clearData()`
18
24
+ Remove `getIndicatorByPaneId(paneId, name)`, please use `getIndicators(filter)` instead.
19
25
+ Remove `getOverlayById(id)`, please use `getOverlays(filter)` instead.
20
-
+ Remove `onTooltipIconClick` in `subscribeAction` and `unsubscribeAction`, use `onCandleTooltipFeatureClick` and `onClick` in indicators instead.
21
-
+`applyNewData(dataList, more, callback)` is changed to `applyNewData(dataList, more)` .
22
-
+`updateData(data, callback)` is changed to `updateData(data)` .
26
+
+ Remove `onTooltipIconClick` in `subscribeAction` and `unsubscribeAction`, please use `onCandleTooltipFeatureClick` and `onIndicatorTooltipFeatureClick` in indicators instead.
23
27
+`getBarSpace()` return value changed to object.
24
28
+`createIndicator` return value changed to return indicator id.
0 commit comments