đ ī¸ From 9.x to 10.x â
This document will help you upgrade from klinecharts version 9.x to klinecharts version 10.x. If you are using version 8.x or older, please refer to v8 to v9 to upgrade to 9.x first.
Style configuration adjustment â
- Remove
yAxis.position
,yAxis.type
,yAxis.inside
andyAxis.inside
. Please use the properties in the window configurationaxis
instead. For details, see the chart API init(dcs, options), instance API createIndicator(value, isStack, paneOptions) and setPaneOptions(options) . - Remove
overlay.rectText
.
API adjustment â
Chart API â
- Remove
utils.drawArc(ctx, arc, styles)
,utils.drawCircle(ctx, circle, styles)
,utils.drawLine(ctx, line, styles)
,utils.drawPolygon(ctx, polygon, styles)
,utils.drawRect(ctx, rect, styles)
,utils.drawText(ctx, text, styles)
,utils.drawRectText(ctx, rectText, styles)
, please usegetFigureClass(name)
instead. init(dcs, options)
,position
inoptions.layout
sub-item changed toorder
,formatDate(dateTimeFormat, timestamp, format, type)
inoptions.customApi
changed toformatDate(timestamp, format, type)
,options.thousandsSeparator
changed to object{ sign, format }
,options.decimalFoldThreshold
changed tooptions.decimalFold
.
Instance API â
- Remove
setPriceVolumePrecision(pricePrecision, volumePrecision)
, please usesetPrecision(precision)
instead. - Remove
applyMoreData(dataList, more, callback)
,setLoadDataCallback(cb)
andloadMore(cb)
, please usesetLoadMoreDataCallback(cb)
instead. - Remove
getIndicatorByPaneId(paneId, name)
, please usegetIndicators(filter)
instead. - Remove
getOverlayById(id)
, please usegetOverlays(filter)
instead. applyNewData(dataList, more, callback)
is changed toapplyNewData(dataList, more)
.updateData(data, callback)
is changed toupdateData(data)
.getBarSpace()
return value changed to object.
Extension adjustment â
- The indicator
createTooltipDataSource
method return valuevalues
changed tolegends
. - Remove the built-in basic graphic
rectText
, please usetext
instead.