Releases: klinecharts/KLineChart
Releases · klinecharts/KLineChart
Version 9.3.0
- 🆕 Add chart API
utils.calcTextWidth
. - 🆕 The instance APIs
createIndicator(value, isStack, options)
andsetPaneOptions(options)
have addedoptions. axisOptions
. - 🆕 The indicator graphic configuration supports customization.
- 💄 Optimize the bar width ratio.
- 💄 Optimize internal acquisition of screen pixel ratio.
- 💄 Optimize internal ID generation.
Version 9.2.2
- 🐞 Fix figure
line
check event error. - 💄 Optimize type check.
Version 9.2.1
- 💄 Optimize the default style by changing
#EF5350
to#F92855
and#26A69A
to#2DC08E
. - 💄 Optimize typescript declarations.
Version 9.2.0
- 🆕 Add instance API
getOffsetRightDistance
andexecuteAction
. - 🆕 Add success callback for instance API
applyNewData
,applyMoreData
andupdateData
. - 🆕 Support the display of thousands.
- 🆕 Add style configuration
candle.bar.upBorderColor
,candle.bar.downBorderColor
,candle.bar.noChangeBorderColor
,candle.bar.upWickColor
,candle.bar.downWickColor
,candle.bar.noChangeWickColor
,candle.tooltip.rect.position
andcandle.tooltip.rect.offsetBottom
. - 🆕 Add
realFrom
andrealTo
to allvisibleRange
. - 💄 Optimize API,
klinecharts.utils.isValid
andklinecharts.utils.formatBigNumber
. - 💄 Optimize the log output in the development environment.
Version 9.1.3
- 🐞 Fix the issue of not refreshing when the input parameter of the chart API
applyNewData
is an empty array. - 🐞 Fix the issue of cross cursor text not displaying on the y-axis when there is no data.
- 💄 Optimize the display of area chart.
- 💄 Optimize coverage event callback parameters and add
figureKey
andfigureIndex
. - 💄 Optimize typescript overlay style types, as well as base types
DeepPartial
andDeepRequired
.
Version 9.1.2
- 🐞 Fix the issue of inaccurate triggering events for the built-in figure
line
. - 🐞 Fix the issue of triggering events for the first time after the
simpleAnnotation
andsimpleTag
built-in overlays are drawn. - 💄 Optimize overlay figure to ignore events and support event selection.
Version 9.1.1
- 🐞 Fix the invalidity of the built-in figure
arc
. - 💄 Optimize rendering updates.
Version 9.1.0
- 🆕 The chart instance method
subscribeAction
andunsubscribeAction
types addonCandleBarClick
. - 🆕 The overlay supports double-clicking to force the end of drawing.
- 💄 Optimize event handling.
Version 9.0.1
🐞 Fix the introduction of typescript.
Version 9.0.0
- 🛠 Typescript refactoring.
- 🆕 New features
- Add Y axis direction zoom and scroll.
- API
- New chart methods
registerFigure
,getSupportFigures
,getFigureClass
,rigiderOverlay
,getSupportOverlays
,registerLocale
,getSupportLocales
,registerStyles
are added. - New instance methods,
getSize
,setLocale
,getLocal
,setCustomApi
,getVisibleRange
,createOverlay
,getOverlayById
,overrideOverlay
,removeOverlay
.
- New chart methods
- Style Configuration
- Add
candle.priceMark.last.text.borderStyle
,candle.tooltip.icons
,indicator.lastValueMark.text.borderStyle
,indicator.tooltip.icons
,crosshair.horizontal. text.borderStyle
,crosshair.vertical.text.borderStyle
.
- Add
- 👉 Change
- API
- Chart method
extension.addTechnicalIndicatorTemplate
is changed toregisterIndicator
. - Chart method
extension.addShapeTemplate
is changed toregisterOverlay
. - Instance method
setStyleOptions
is changed tosetStyles
. - Instance method
getStyleOptions
is changed togetStyles
. - Instance method
setPaneOptions(options)
,options
add new attributegap
. - Instance method
setOffsetRightSpace
is changed tosetOffsetRightDistance
. - Instance method
createTechnicalIndicator
is changed tocreateIndicator
- Instance method
overlayTechnicalIndicator
is changed tooverrideIndicator
. - Instance method
getTechnicalIndicatorByPaneId
is changed togetIndicatorByPaneId
. - Instance method
removeTechnicalIndicator
is changed toremoveIndicator
.
- Chart method
- Style Configuration
- All
line.style
options are changed tosolid
anddashed
. - All
dashValue
is changed todashedValue
. xAxis.height
is changed toxAxis.size
,xAxis.tickeText.paddingTop
is changed toxAxis.tickeText.marinStart
, andxAxis.tickeText.paddingBottom
is changed toxAxis.tickeText.marinEnd
.yAxis.height
is changed toyAxis.size
,yAxis.tickeText.paddingTop
is changed toyAxis.tickeText.marinStart
, andyAxis.tickeText.paddingBottom
is changed toyAxis.tickeText.marinEnd
.technicalIndicator.bar
is changed toindicator.bars
,technicalIndicator.line
is changed toindicator.lines
,technicalIndicator.circle
is changed toindicator.circles
- All
- Custom Extension
- The technical indicator attribute
calcParams
has been changed to support any type. - The technical indicator attribute
plots
is changed tofigures
. - The technical indicator attribute
regeneratePlots
is changed to' regeneratefigures'. - The technical indicator attribute
calcTechnicalIndicator
is changed tocalc
. - The technical indicator attribute
render
is changed to 'draw'.
- The technical indicator attribute
- API
- 🗑 Abandonment
- API
- Delete instance methods
getWidth
,getHeight
, and usegetSize
instead. - Delete instance methods
createShape
,createAnnotation
,createTag
, and usecreateOverlay
instead. - Delete instance methods
removeShape
,removeAnnotation
,removeTag
. UseremoveOverlay
instead. - Delete the instance method
setShapeOptions
and useoverrideOverlay
instead. - Delete instance methods
createHtml
,removeHtml
,addTechnicalIndicatorTemplate
,getTechnicalIndicatorTemplate
,addShapeTemplate
.
- Delete instance methods
- Style Configuration
- Delete
shape
,annotation
,tag
and useoverlay
instead. - Delete
candle.margin
,technicalIndicator.margin
。
- Delete
- Custom Extension
- The related attributes are no longer saved in the technical indicator template.
- Delete
Shape
and useOverlay
instead.
- API