Releases: klinecharts/KLineChart
Releases · klinecharts/KLineChart
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.
Version 7.3.3
🐞 Fix the inaccurate calculation of the coordinate point parameters of the annotation callback method.
💄 Optimize the y-axis display.
Version 7.3.2
👉 The default style is changed to be suitable for light theme.
🐞 Fix the problem of technicalIndicator.tooltip.showType: rect
.
Version 7.3.1
💄 Optimize the display of yAxis.type:log
.
Version 7.3.0
- 🆕 Add api
scrollByDistance
,scrollToRealTime
,scrollToPosition
,zoomAtCoordinate
andzoomAtPosition
. - 🆕 Add api
setPaneOptions
for setting windows. - 🆕 Add logarithmic coordinates for the axis,
yAxis.type: log
. - 🆕 Add style configuration,
candle.priceMark.last.text.borderRadius
,technicalIndicator.lastValueMark.text.borderRadius
,
crosshair.horizontal.text.borderRadius
,crosshair.vertical.text.borderRadius
. - 🆕 Add touchpad scrolling support.
- 💪 Api
createTechnicalIndicator
, window parameters can take effect in real time. - 💪 Api
setDataSpace
andsetOffsetRightSpace
able to refresh in real time.
Version 7.2.0
- 🆕 Add style configuration
technicalIndicator.tooltip.showType
. - 🆕 Api
subscribeAction
adds the new typepane_drag
. - 💄 Optimize window drag height adjustment rules.
- 🐞 Fix area chart display problem.
- 🐞 Fix the problem of incorrect callback parameters for annotation custom markers.
Version 7.1.0
- 🆕 Add annotation feature
createAnnotation
is used to add annotationsremoveAnnotation
is used to delete annotations- Add
annotation
configuration for styles
- 🆕 Add api,
getGraphicMark
,getWidth
,getHeight
,convertToPixel
andconvertFromPixel
. - 🆕 Add
onMouseEnter
andonMouseLeave
events to graphic markers. - 🆕
suscribeAction
adds the new typecrosshair
. - 🆕 Custom indicator technical calculation parameters support decimals.
- 💪 Enhanced
unsubscribeAction
to cancel events in batches. - 💪 Enhanced
addCustomTechnicalIndicator
andaddCustomGraphicMark
, which can be added in batches.
Version 7.0.2
- 🛠 Rewrite technical indicator calculation
EMV
,ROC
,WR
,CR
,PVT
,DMI
,MTM
,PSY
,VR
,RSI
,OBV
,EMA
,MACD
,SMA
,TRIX
,CCI
。
Version 7.0.1
- 🆕 Add lock for graphic markers.
- 💄
getTechnicalIndicatorByPaneId
is added to return calculation results. - 💄 The
DIFF
of the technical indicatorMACD
is changed toDIF
. - 💄 Adjust the display of
tooltip
. - 🐞 Fix the problem of incorrect display of the technical indicator
RSI
after adjusting the parameters. - 🐞 Fix the problem of incorrect calculation of the technical indicator
VR
. The default calculation parameters are changed to [26, 6]. - 🐞 Fix the display problem of the cross cursor on the mobile.