Releases: klinecharts/KLineChart
Releases · klinecharts/KLineChart
Version 8.1.0
- 🆕 Style configuration adds
tag.mark.offset
,tag.mark.borderColor
,tag.mark.borderSize
,tag.text.borderColor
,tag.text.borderSize
. - 🐞 Fix the data loading page refresh problem.
Version 8.0.0
- 🆕 New features
- Added
getDataSpace
andgetBarSpace
. createTechnicalIndicator
supports overwriting built-in attributes when creating.overrideTechnicalIndicator
supports overriding indicator properties on a certain window.getTechnicalIndicatorByPaneId
supports obtaining individual technical indicator information.- Shapes, annotations, and labels can be created on any window.
- Shapes support overall drag, support weak magnet and strong magnet mode, support custom data.
- Added
- 👉 Change
extension.addTechnicalIndicator
changed toextension.addTechnicalIndicatorTemplate
.extension.addGraphicMark
changed toextension.addShapeTemplate
.- Chart instance
createGraphicMark
is changed tocreateShape
, and the parameters are merged.addCustomGraphicMark
changed toaddShapeTemplate
.getGraphicMark
changed togetShape
.removeGraphicMark
changed toremoveShape
.setGraphicMarkOptions
changed tosetShapeOptions
.addCustomTechnialIndicator
changed toaddTechnicalIndicatorTemplate
.getTechnicalIndicatorByName
changed togetTechnicalIndicatorTemplate
.- Added parameter
paneId
inremoveAnnotation
. - Added parameter
paneId
toremoveTag
. scrollToPosition
changed toscrollToDataIndex
.zoomAtPosition
changed tozoomAtDataIndex
.getConvertPictureUrl
parametersincludeTooltip
andincludeGraphicMark
are merged intoincludeOverlay
.subscribeAction
andunsubscribeAction
, remove thedrawCandle
anddrawTechnicalIndicator
types.convertToPixel
andconvertFromPixel
, the input parameters are changed to{ timestamp, dataIndex, value }
and{ paneId, absoluteYAxis }
.
- Shape
checkMousePointOn
is changed tocheckEventCoordinateOnShape
, and the parameter is changed toobject
.- The
createShapeDataSource
parameter is changed toobject
. performMouseMoveForDrawing
is changed toperformEventMoveForDrawing
, and the parameter is changed toobject
.performMousePressedMove
is changed toperformEventPressedMove
, and the parameter is changed toobject
.- The
drawExtend
parameter is changed toobject
.
- Technical indicators
- The property
calcParamsAllowDecimal
is merged intocalcParams
. - The attribute
baseValue
is merged intoplots
. - Property
plots
,color
callback parameters are changed to{ prev, current, next }
. - The
calcTechnicalIndicator
parameter is changed toobject
. - The
render
parameter is changed toobject
.
- The property
- Style configuration
candle.tooltip.rect.fillColor
changed tocandle.tooltip.rect.backgroundColor
.candle.area.fillColor
changed tocandle.area.backgroundColor
.annotation.symbol.position
changed toannotation.position
.annotation.symbol.offset
changed toannotation.offset
.
- Shape assistance API
getRotatePoint
changed togetRotateCoordinate
.getLinearYFromPoints
changed togetLinearYFromCoordinates
.checkPointOnStraightLine
changed tocheckCoordinateOnStraightLine
.checkPointOnRayLine
changed tocheckCoordinateOnRayLine
.checkPointOnSegment
changed tocheckCoordinateOnSegment
.checkPointOnArc
changed tocheckCoordinateOnArc
.checkPointInCircle
changed tocheckCoordinateInCircle
.checkPointOnCircle
changed tocheckCoordinateOnCircle
.checkPointInTriangle
changed tocheckCoordinateInTriangle
.checkPointInDiamond
changed to. checkCoordinateInDiamond
.checkPointInRect
is changed to. checkCoordinateInRect
.
- 💄 optimization
- Optimize the rendering level.
- Optimize data storage of technical indicators.
- Optimize the response to mouse events of shapes.
- Optimize the drawing efficiency of shapes.
- 🐞 Bug fix
- Fixed the problem that the y-axis does not refresh when calling
setPaneOptions
.
- Fixed the problem that the y-axis does not refresh when calling
Version 8.0.0-alpha7
- 🆕 The technical indicators are added back to the attribute
series
. - 💄 Optimize data storage of technical indicators.
Version 8.0.0-alpha6
- 🐞 Fix the problem that all
shape
cannot be removed. - 🐞 Fix the problem of incorrect acquisition of technical indicators.
Version 8.0.0-alpha5
- 🐞 Fix the typescript declaration problem.
Version 8.0.0-alpha4
- 🐞 Fix the problem that loading more does not take effect.
- 🐞 Fix the problem that the time zone setting does not take effect.
Version 8.0.0-alpha3
- 🐞 Fix the problem of incorrect display of area chart.
- 🐞 Fix the problem that the latest price line of area chart is not displayed.
Version 8.0.0-alpha2
- 🐞 Fix the problem that the custom rendering callback parameters of the technical indicator template are not correct.
- 💄 Optimize the rendering level.
Version 8.0.0-alpha1
- 🆕 New features
- Added
getDataSpace
andgetBarSpace
. createTechnicalIndicator
supports overwriting built-in attributes when creating.overrideTechnicalIndicator
supports overriding indicator properties on a certain window.getTechnicalIndicatorByPaneId
supports obtaining individual technical indicator information.- Shapes, annotations, and labels can be created on any window.
- Shapes support overall drag, support weak magnet and strong magnet mode, support custom data.
- Added
- 👉 Change
extension.addTechnicalIndicator
changed toextension.addTechnicalIndicatorTemplate
.extension.addGraphicMark
changed toextension.addShapeTemplate
.- Chart instance
createGraphicMark
is changed tocreateShape
, and the parameters are merged.addCustomGraphicMark
changed toaddShapeTemplate
.getGraphicMark
changed togetShape
.removeGraphicMark
changed toremoveShape
.setGraphicMarkOptions
changed tosetShapeOptions
.addCustomTechnialIndicator
changed toaddTechnicalIndicatorTemplate
.getTechnicalIndicatorByName
changed togetTechnicalIndicatorTemplate
.- Added parameter
paneId
inremoveAnnotation
. - Added parameter
paneId
toremoveTag
. scrollToPosition
changed toscrollToDataIndex
.zoomAtPosition
changed tozoomAtDataIndex
.getConvertPictureUrl
parametersincludeTooltip
andincludeGraphicMark
are merged intoincludeOverlay
.subscribeAction
andunsubscribeAction
, remove thedrawCandle
anddrawTechnicalIndicator
types.convertToPixel
andconvertFromPixel
, the input parameters are changed to{ timestamp, dataIndex, value }
and{ paneId, absoluteYAxis }
.
- Shape
checkMousePointOn
is changed tocheckEventCoordinateOnShape
, and the parameter is changed toobject
.- The
createShapeDataSource
parameter is changed toobject
. performMouseMoveForDrawing
is changed toperformEventMoveForDrawing
, and the parameter is changed toobject
.performMousePressedMove
is changed toperformEventPressedMove
, and the parameter is changed toobject
.- The
drawExtend
parameter is changed toobject
.
- Technical indicators
- The property
calcParamsAllowDecimal
is merged intocalcParams
. - The attribute
baseValue
is merged intoplots
. - Property
plots
,color
callback parameters are changed to{ prev, current, next }
. - The
calcTechnicalIndicator
parameter is changed toobject
. - The
render
parameter is changed toobject
.
- The property
- Style configuration
candle.tooltip.rect.fillColor
changed tocandle.tooltip.rect.backgroundColor
.candle.area.fillColor
changed tocandle.area.backgroundColor
.annotation.symbol.position
changed toannotation.position
.annotation.symbol.offset
changed toannotation.offset
.
- Shape assistance API
getRotatePoint
changed togetRotateCoordinate
.getLinearYFromPoints
changed togetLinearYFromCoordinates
.checkPointOnStraightLine
changed tocheckCoordinateOnStraightLine
.checkPointOnRayLine
changed tocheckCoordinateOnRayLine
.checkPointOnSegment
changed tocheckCoordinateOnSegment
.checkPointOnArc
changed tocheckCoordinateOnArc
.checkPointInCircle
changed tocheckCoordinateInCircle
.checkPointOnCircle
changed tocheckCoordinateOnCircle
.checkPointInTriangle
changed tocheckCoordinateInTriangle
.checkPointInDiamond
changed to. checkCoordinateInDiamond
.checkPointInRect
is changed to. checkCoordinateInRect
.
- 💄 optimization
- Optimize the response to mouse events of shapes.
- Optimize the drawing efficiency of shapes.
- 🐞 Bug fix
- Fixed the problem that the y-axis does not refresh when calling
setPaneOptions
.
- Fixed the problem that the y-axis does not refresh when calling
Version 7.5.0
- 🆕 Add tag, new api
createTag
andremoveTag
. - 🐞 Fix the problem that the
onRemove
method does not trigger when deleting all graphic marks. - 🐞 Fix the problem of incorrect return of
getConvertPictureUrl
. - 💄 Combine
overlay
andtooltip
. - 💄 Optimize the y-axis display when there is no data.
- 💄 Optimize the interaction of the cross cursor on the mobile.