Skip to content

Releases: klinecharts/KLineChart

Version 8.0.0-alpha1

07 Sep 12:49
Compare
Choose a tag to compare
  • 🆕 New features
    • Added getDataSpace and getBarSpace.
    • 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.
  • 👉 Change
    • extension.addTechnicalIndicator changed to extension.addTechnicalIndicatorTemplate.
    • extension.addGraphicMark changed to extension.addShapeTemplate.
    • Chart instance
      • createGraphicMark is changed to createShape, and the parameters are merged.
      • addCustomGraphicMark changed to addShapeTemplate.
      • getGraphicMark changed to getShape.
      • removeGraphicMark changed to removeShape.
      • setGraphicMarkOptions changed to setShapeOptions.
      • addCustomTechnialIndicator changed to addTechnicalIndicatorTemplate.
      • getTechnicalIndicatorByName changed to getTechnicalIndicatorTemplate.
      • Added parameter paneId in removeAnnotation.
      • Added parameter paneId to removeTag.
      • scrollToPosition changed to scrollToDataIndex.
      • zoomAtPosition changed to zoomAtDataIndex.
      • getConvertPictureUrl parameters includeTooltip and includeGraphicMark are merged into includeOverlay.
      • subscribeAction and unsubscribeAction, remove the drawCandle and drawTechnicalIndicator types.
      • convertToPixel and convertFromPixel, the input parameters are changed to { timestamp, dataIndex, value } and { paneId, absoluteYAxis }.
    • Shape
      • checkMousePointOn is changed to checkEventCoordinateOnShape, and the parameter is changed to object.
      • The createShapeDataSource parameter is changed to object.
      • performMouseMoveForDrawing is changed to performEventMoveForDrawing, and the parameter is changed to object.
      • performMousePressedMove is changed to performEventPressedMove, and the parameter is changed to object.
      • The drawExtend parameter is changed to object.
    • Technical indicators
      • The property calcParamsAllowDecimal is merged into calcParams.
      • The attribute baseValue is merged into plots.
      • Property plots, color callback parameters are changed to { prev, current, next }.
      • The calcTechnicalIndicator parameter is changed to object.
      • The render parameter is changed to object.
    • Style configuration
      • candle.tooltip.rect.fillColor changed to candle.tooltip.rect.backgroundColor.
      • candle.area.fillColor changed to candle.area.backgroundColor.
      • annotation.symbol.position changed to annotation.position.
      • annotation.symbol.offset changed to annotation.offset.
    • Shape assistance API
      • getRotatePoint changed to getRotateCoordinate.
      • getLinearYFromPoints changed to getLinearYFromCoordinates.
      • checkPointOnStraightLine changed to checkCoordinateOnStraightLine.
      • checkPointOnRayLine changed to checkCoordinateOnRayLine.
      • checkPointOnSegment changed to checkCoordinateOnSegment.
      • checkPointOnArc changed to checkCoordinateOnArc.
      • checkPointInCircle changed to checkCoordinateInCircle.
      • checkPointOnCircle changed to checkCoordinateOnCircle.
      • checkPointInTriangle changed to checkCoordinateInTriangle.
      • 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.

Version 7.5.0

16 Jun 11:38
Compare
Choose a tag to compare
  • 🆕 Add tag, new api createTag and removeTag.
  • 🐞 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 and tooltip.
  • 💄 Optimize the y-axis display when there is no data.
  • 💄 Optimize the interaction of the cross cursor on the mobile.

Version 7.3.3

03 Jun 11:53
Compare
Choose a tag to compare

🐞 Fix the inaccurate calculation of the coordinate point parameters of the annotation callback method.
💄 Optimize the y-axis display.

Version 7.3.2

01 Jun 02:13
Compare
Choose a tag to compare

👉 The default style is changed to be suitable for light theme.
🐞 Fix the problem of technicalIndicator.tooltip.showType: rect.

Version 7.3.1

31 May 09:50
Compare
Choose a tag to compare

💄 Optimize the display of yAxis.type:log.

Version 7.3.0

28 May 05:46
Compare
Choose a tag to compare
  • 🆕 Add api scrollByDistance, scrollToRealTime, scrollToPosition, zoomAtCoordinate and zoomAtPosition.
  • 🆕 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 and setOffsetRightSpace able to refresh in real time.

Version 7.2.0

20 May 13:14
Compare
Choose a tag to compare
  • 🆕 Add style configuration technicalIndicator.tooltip.showType.
  • 🆕 Api subscribeAction adds the new type pane_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

26 Apr 09:45
Compare
Choose a tag to compare
  • 🆕 Add annotation feature
    • createAnnotation is used to add annotations
    • removeAnnotation is used to delete annotations
    • Add annotation configuration for styles
  • 🆕 Add api, getGraphicMark, getWidth, getHeight, convertToPixel and convertFromPixel.
  • 🆕 Add onMouseEnter and onMouseLeave events to graphic markers.
  • 🆕 suscribeAction adds the new type crosshair.
  • 🆕 Custom indicator technical calculation parameters support decimals.
  • 💪 Enhanced unsubscribeAction to cancel events in batches.
  • 💪 Enhanced addCustomTechnicalIndicator and addCustomGraphicMark, which can be added in batches.

Version 7.0.2

07 Apr 09:39
Compare
Choose a tag to compare
  • 🛠 Rewrite technical indicator calculation EMV, ROC, WR, CR, PVT, DMI, MTM, PSY, VR, RSI, OBV, EMA, MACD, SMA, TRIX, CCI

Version 7.0.1

29 Mar 12:30
Compare
Choose a tag to compare
  • 🆕 Add lock for graphic markers.
  • 💄 getTechnicalIndicatorByPaneId is added to return calculation results.
  • 💄 The DIFF of the technical indicator MACD is changed to DIF.
  • 💄 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.