Releases: klinecharts/KLineChart
Releases · klinecharts/KLineChart
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.
Version 9.8.3
- 💄 Optimize styles by adding
offsetLeft
,offsetTop
,offsetRight
andoffsetBottom
tocandle.tooltip
andindicator.tooltip
. - 💄 Optimize figure and support array for attrs.
- 💄 Optimize y-axis render.
- 💄 Optimize default display, change the default candle width to 8.
- 🐞 Fix
applyMoreData
add duplicate data issue. @cryptotooltop
Version 9.8.2
- 💄 Optimize the display of the area chart.
- 💄 Optimize smooth line drawing.
- 🐞 Fix the overlay and drawing it to future time may not be an issue.