Releases: klinecharts/KLineChart
Releases · klinecharts/KLineChart
Version 10.0.0-alpha4
- 🐞 Fix the issue that the parameter
more.backward
ofapplyNewData
instance method is incorrect. - 🐞 Fix the issue that a single piece of data causes a chart error.
Version 10.0.0-alpha3
- 👉 The return value of the instance api
createIndicator
is changed to return the indicator id. - 👉 The input parameter
paneId
of the instance apioverlayIndicator
is merged into the input parameterindicator
. - 👉 The return value of the instance api
getIndicators
is changed to return an array. - 👉 The return value of the instance api
getOverlays
is changed to return an array. - 🆕 The style configuration adds
candle.bar.compareRule
,indicator.ohlc.compareRule
andcandle.priceMark.last.compareRule
. - 🆕 Supports dragging the y-axis on mobile devices.
- 🆕 Supports creating multiple indicators with the same name on the same window.
- 💄 Optimize
figure
inoverlay
template to ignore event type, and the event name is consistent with the event name inoverlay
. - 🐞 Fix the problem that the indicator custom prompt information may be wrong.
- 🐞 Fix the problem that the overlay being drawn may not be deleted correctly.
- 🐞 Fix the problem that the api
createOverlay
may not be created correctly whenpoints
is specified. - 🐞 Fix the problem that the api
executeAction
may cause thesubscribeAction
to trigger infinitely.
Version 10.0.0-alpha2
- 🆕 The x-axis supports displaying future time.
- 🐞 Fix the issue that
subscribeAction
type isActionType.OnCandleBarClick
and it does not work.
Version 10.0.0-alpha1
- 🆕 New features
- Support thousand separators and custom decimal folding.
- Rewrite the axis module, and customize the y-axis to support setting ranges.
- Add instance methods
setPrecision(precision)
,getPrecision()
,setThousandsSeparator(thousandsSeparator)
,getThousandsSeparator()
,setDecimalFold(decimalFold)
,getDecimalFold()
andsetLoadMoreDataCallback(cb)
.
- 👉 Changes
- Chart api
init(dcs, options)
,position
inoptions.layout
child 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
applyNewData(dataList, more, callback)
changed toapplyNewData(dataList, more)
. - Instance api
updateData(data, callback)
changed toupdateData(data)
. - Instance api
getBarSpace()
return value changed to object. - The return value of the custom indicator
createTooltipDataSource
methodvalues
is changed tolegends
.
- Chart api
- 🗑 Deprecated
- Remove chart api
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. - Remove instance api
setPriceVolumePrecision(pricePrecision, volumePrecision)
, please usesetPrecision(precision)
instead. - Remove instance api
applyMoreData(dataList, more, callback)
,setLoadDataCallback(cb)
andloadMore(cb)
, please usesetLoadMoreDataCallback(cb)
instead. - Remove instance api
getIndicatorByPaneId(paneId, name)
, please usegetIndicators(filter)
instead. - Remove instance api
getOverlayById(id)
, please usegetOverlays(filter)
instead. - Remove style configuration
yAxis.position
,yAxis.type
,yAxis.inside
andyAxis.inside
, please use the properties in the window configurationaxis
instead. For details, refer to the chart API init(dcs, options), the instance API createIndicator(value, isStack, paneOptions) and setPaneOptions(options). - Remove
overlay.rectText
from style configuration. - Remove
rectText
from built-in basic graphics, please usetext
instead.
- Remove chart api
Version 9.8.10
- 🐞 Fix the issue of blurry drawing of basic graphics
rect
,line
. - 🐞 Fix the inaccurate zooming issue of instance methods
zoomAtCoordinate
,zoomAtDataIndex
andzoomAtTimestamp
. - 🐞 Fix the issue of possible error in x-axis zooming.
- 💄 Optimize the instance method
subscribeAction
. Whentype
is 'onScroll' and 'onZoom', the callback method adds a new parameter. - 💄 Optimize the sub-item
attrs
in the indicator attributefigures
. Add callback parameterdata
.
Version 9.8.9
- 🐞 Fix style configuration
yAxis.type: 'percentage'
error. - 🐞 Fix declaration issue in typescript.
Version 9.8.8
- 🐞 Fixed the problem that the style configuration
candle.tooltip.custom
cannot be overridden when it is an array. - 🐞 Fixed the issue of inaccurate decimal folding.
- 💄 Optimize the parameter
precision
in the overlay callback method.
Version 9.8.7
- 🐞 Fix the issue of unsynchronized price and volume precision in indicator precision.
Version 9.8.6
- 🐞 Fix an issue that chart API
registerIndicator
andregisterOverlay
parametersextendData
cannot take effect. - 🐞 Fix an issue of incorrect decimal folding when specifying
.
as the thousandth character. - 🐞 Fix an issue where overlays may not be moved after being created.
Version 9.8.5
- 💄 Optimize the default right offset distance of the chart.
- 🐞 Fix area chart display issue.
- 🐞 Fix occasional blank spaces in chart.