UNPKG

@dickyindra/klinecharts

Version:

Lightweight k-line chart built with html5 canvas

521 lines (456 loc) • 27.8 kB
# Change Log ## 8.3.6 `2022-03-23` + šŸž Fix shape issues on the mobile. ## 8.3.5 `2022-03-17` + šŸž Fix the issue that indicator stacking may not refresh in real time. + šŸ’„ Indicator parameters can be set to negative values. ## 8.3.3 `2022-02-21` + šŸž Fix the problem that the shape attribute lock does not take effect. + šŸ’„ Optimize the display of technical indicator names. ## 8.3.2 `2022-01-31` + šŸž Fix the problem that the technical indicator prompts are displayed incorrectly. ## 8.3.1 `2022-01-18` + šŸž Fix `createShape` attribute `mode` does not take effect. ## 8.3.0 `2022-01-16` + šŸ†• Export some basic chart methods. + šŸ†• Technical indicator template calculation supports asynchronous. + šŸ†• Add method `createTooltipDataSource` for technical template. + šŸ†• Add callback parameter `paneId` for chart action type `crosshair`. + šŸž Fix the problem that the independent style `line.colors` of technical indicators does not take effect. + šŸž Fix the problem of drawing error when the shape type is `polygon`. + šŸž Fix shape `mode` setting not taking effect. + šŸž Fix style configuration `candle.tooltip.showType` and `technicalIndicator.tooltip.showType` for 'rect' chart error. + šŸž Fix wrong typescript declaration. ## 8.2.0 `2022-01-10` + šŸ†• Add instance methods `createHtml` and `removeHtml`. + šŸ†• Instance methods `subscribeAction` and `unsubscribeAction` add type `tooltip`. + šŸ†• Technical indicator template add attribute `shortName`. + šŸ†• Technical indicator template attribute `plot.color` supports `line`. + šŸ†• Technical indicator template attribute `styles` supports `margin`. + šŸ’„ Optimize mobile scroll event response. ## 8.1.1 `2021-12-19` + šŸž Fix the problem that the style technicalIndicator.tooltip.defaultValue does not take effect. + šŸž Fix the problem that dragging on the axis may cause the chart to display abnormally. + šŸ’„ Optimize shape, `onPressedMove` event. ## 8.1.0 `2021-11-30` + šŸ†• 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. ## 8.0.0 `2021-10-29` + šŸ†• 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 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`. ## 8.0.0-alpha7 `2021-10-22` + šŸ†• The technical indicators are added back to the attribute `series`. + šŸ’„ Optimize data storage of technical indicators. ## 8.0.0-alpha6 `2021-10-08` + šŸž Fix the problem that all `shape` cannot be removed. + šŸž Fix the problem of incorrect acquisition of technical indicators. ## 8.0.0-alpha5 `2021-09-23` + šŸž Fix the typescript declaration problem. ## 8.0.0-alpha4 `2021-09-13` + šŸž Fix the problem that loading more does not take effect. + šŸž Fix the problem that the time zone setting does not take effect. ## 8.0.0-alpha3 `2021-09-13` + šŸž Fix the problem of incorrect display of area chart. + šŸž Fix the problem that the latest price line of area chart is not displayed. ## 8.0.0-alpha2 `2021-09-10` + šŸž Fix the problem that the custom rendering callback parameters of the technical indicator template are not correct. + šŸ’„ Optimize the rendering level. ## 8.0.0-alpha1 `2021-09-07` + šŸ†• 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`. ## 7.5.0 `2021-06-16` + šŸ†• 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. ## 7.3.3 `2021-06-03` + šŸž Fix the inaccurate calculation of the coordinate point parameters of the annotation callback method. + šŸ’„ Optimize the y-axis display. ## 7.3.2 `2021-06-01` + šŸ‘‰ The default style is changed to be suitable for light theme. + šŸž Fix the problem of `technicalIndicator.tooltip.showType: rect`. ## 7.3.1 `2021-05-31` + šŸ’„ Optimize the display of `yAxis.type:log`. ## 7.3.0 `2021-05-28` + šŸ†• 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. ## 7.2.0 `2021-05-20` ā¤ļøļø 520 + šŸ†• 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. ## 7.1.0 `2021-04-26` + šŸ†• 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. ## 7.0.2 `2021-04-07` - šŸ›  Rewrite technical indicator calculation `EMV`, `ROC`, `WR`, `CR`, `PVT`, `DMI`, `MTM`, `PSY`, `VR`, `RSI`, `OBV`, `EMA`, `MACD`, `SMA`, `TRIX`, `CCI`怂 ## 7.0.1 `2021-03-29` - šŸ†• 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. ## 7.0.0 `2021-02-25` + šŸ†• New features + Add `removeGraphicMark`, `setGraphicMarkOptions`, and `createTechnicalIndicator` to the chart instance methods. + Chart instance methods `subscribeDrawAction` and `unsubscribeDrawAction` are changed to `subscribeAction` and `unsubscribeAction`, and new types `zoom` and `scroll` are added. + Add `getDistance`, `getRotatePoint`, `checkPointOnArc`, and `getRayLine` to the graphics mark auxiliary methods. + When creating technical indicators, if it is a new window, you can customize the window id. + Built-in technical indicator `BOLL`, new calculation parameters. + When creating a graphic mark, you can customize the id and add event callbacks: `onDrawStart`, `onDrawing`, `onDrawEnd`, `onClick`, `onRightClick`, `onPressedMove`, `onRemove`. + Customize graphic markers, and add batch drawing of `conntinuous_line` and `polygon`. + šŸ’Ŗ Function enhancement + Chart instance method `removeTechnicalIndicator`, when there is no technical indicator in the window, the window will be automatically removed. + The data source `volume` is no longer an unnecessary field. + Customized graphic marking method `checkPointOn` added parameter key. + šŸ’„ Optimize + Optimize the sensitivity of checking whether the mouse point is on the drawing module. + Optimize the rendering of graphic markers. + Optimize the mouse operation of graphic marking. + Optimize the display of the cross cursor. + Optimize the calculation of technical indicators when data is updated. + šŸ‘‰ Change + The chart instance method `setTechnicalIndicatorType` is changed to `createTechnicalIndicator`. + The chart instance method `getTechnicalIndicatorInfo` is changed to `getTechnicalIndicatorByName`. + The chart instance method `getTechnicalIndicatorType` is changed to `getTechnicalIndicatorByPaneId`. + The graphics mark assist method `checkPointOnSegmentLine` is changed to `checkPointOnSegment`. + Hot key zoom in is changed to `shift` + `+`. + Hot key zoom out is changed to `shift` + `-`. + šŸž Bug fix + Fix the problem that the built-in technical indicator `VOL`, volume prompt does not display. + Fix the problem of determining the graphic mark point. + Fix the problem that an error may be reported when the comparison type of custom graphics is `line`. + Fix the problem of adding graphic marks and technical indicators globally, which may report errors. + šŸ—‘ Delete + Delete the chart instance methods `createPane`, `removePane`, `removeAllGraphicMark`. ## 6.1.0 `2021-01-06` + šŸ†• Add `extension.addTechnicalIndicator` and `extension.addGraphicMark` to the chart api. + šŸ†• Each item of the technical indicator `plots` adds `title`. + šŸ†• Add `styles` for technical indicators. + šŸ†• Add api `overrideTechnicalIndicator`, replace the apis `setTechnicalIndicatorParams` and `setTechnicalIndicatorPrecision`. + šŸ†• Add api `addCustomGraphicMark` to add custom chart mark. + šŸ†• Add api `removePane` to remove the window. + šŸ†• Add configuration `graphicMark.polygon`和`graphicMark.arc`. + šŸ‘‰ Api `getTechnicalIndicatorParams` is changed to `getTechnicalIndicatorInfo`. + šŸ‘‰ Api `addGraphicMark` is changed to `createGraphicMark`. + šŸ’„ Optimize the display of `tooltip`. + šŸž Fix method `dispose` call may report an error problem. + šŸž Fix the problem that the prototype extension may not be compatible with other plugins. + šŸž Fix typescript reference problem. ## 6.0.5 `2020-12-28` + šŸ†• Add configuration `candle.margin`, `candle.tooltip.defaultValue`, `technicalIndicator.margin`, `technicalIndicator.tooltip.defaultValue` and `separator.activeBackgroundColor`. + šŸ’„ Optimize drag and drop to adjust chart display. + šŸž Fix the problem of custom colors in `candle.tooltip.values`. ## 6.0.2 `2020-12-17` + šŸ’„ Optimize the time display of the x-axis cross cursor. + šŸ’„ Optimize technical indicator `plot` type is `bar` aligned display. + šŸ’„ Optimize the display of the highest and lowest prices of candlestick charts. + šŸž Fix the problem that the cross cursor on the mobile terminal needs to be clicked twice for the first time to disappear. ## 6.0.1 `2020-12-06` + šŸ‘‰ The minimum drawing pixel of a single data is changed to 1. + šŸ’„ Optimize the y-axis display of the secondary fill empty data. + šŸ’„ Optimize the calculation of some built-in technical indicators. + šŸž Fix the problem that the same data may cause the y-axis scale to not be calculated. ## 6.0.0 `2020-11-29` + šŸŽØ New style configuration + šŸ‘‰ All `display` is changed to `show`. + šŸ‘‰ `candelStick` is changed to `candle`. + šŸ‘‰ `candleStick.bar.style` is changed to `candle.type`. + šŸ‘‰ `realTime` is changed to `candle.area`. + šŸ‘‰ `floatLayer.prompt.candleStick` is changed to `candle.tooltip`. + šŸ‘‰ `floatLayer.prompt.technicalIndicator` is changed to `technicalIndicator.tooltip`. + šŸ‘‰ `floatLayer.crossHair` is changed to `crosshair`. + šŸ”§ New API + šŸ‘‰ `createTechnicalIndicator` is changed to `createPane`. + šŸ‘‰ `setPrecision` is changed to `setPriceVolumePrecision`. + šŸ’Ŗ `setTechnicalIndicatorType` and `removeTechnicalIndicator` added new parameters and enhanced functions. + šŸ†• Add `getTechnicalIndicatorType`. + šŸ—‘ Remove `setCandleStickChartType`. + šŸ—‘ Remove `setCandleStickTechnicalIndicatorType`. + šŸ†• The main picture and the picture support the setting of multiple technical indicator types. + šŸ’„ Optimize initialization method `init` error parameter prompt. + šŸž Fix the problem that the gap between the name and value of the technical indicator prompt is incorrect. ## 5.7.0 `2020-11-13` + šŸ›  Refactor marking graphics module. + šŸ†• Configuration item `realTime.timeLine.areaFillColor` supports gradient. + šŸ†• Add `dataIndex` in the callback parameter `data` of the `subscribeDrawAction` method. + šŸ†• Add api `setZoomEnabled` and `isZoomEnabled`, `setScrollEnabled` and `isScrollEnabled`. + šŸ’„ Optimize the chart display of the y-axis value very small. ## 5.6.0 `2020-08-29` + šŸ†• Add `render` property for custom technical indicators. + šŸ†• Custom indicator api `calcTechnicalIndicator`, add parameter `plots`. + šŸ†• Add `xAxis.height` and `yAxis.width` to configuration items. + šŸ†• Add api `subscribeDrawAction` and `unsubscribeDrawAction` for drawing monitoring and cancellation. + šŸ†• Add api `getTimezone`. + šŸ‘‰ Api `getTechnicalIndicatorParamOptions` changed to `getTechnicalIndicatorParams`怂 + šŸ‘‰ The built-in indicator text prompt shows that `xxxMa` is changed to `maXxx`. + šŸ—‘ Remove the configuration item `floatLayer.prompt.technicalIndicator.point`. ## 5.5.1 `2020-08-16` + šŸ’„ When there is no data, the y-axis is displayed. + šŸ’„ Optimize the default main chart technical indicator type, the default chart is simpler. + šŸ’„ Optimize performance and reduce useless calculations. + šŸž Fix the problem that the y-axis cannot be displayed and displayed incorrectly when switching the chart type and the newly added secondary chart indicator. + šŸž Fix the problem that cannot be merged correctly when configuration is a method. + šŸ‘‰ `xAxis.tickText.margin` changed to `xAxis.tickText.paddingTop` and `xAxis.tickText.paddingBottom`. + šŸ‘‰ `yAxis.tickText.margin` changed to `yAxis.tickText.paddingLeft` and `yAxis.tickText.paddingRight`. ## 5.5.0 `2020-07-26` + šŸ†• Add back the technical indicator ohlc display. + šŸ†• Add text `weight` configuration. + šŸ†• A new `shouldFormatBigNumber` property is added to the custom technical indicators, which is used to inform the chart whether larger numbers need to be formatted. + šŸ†• New api `setTechnicalIndicatorPrecision`. + šŸ’„ Optimize the data display after moving the mouse over the chart, and display the last data instead. + šŸ’„ Optimize the starting position of chart drawing when loading new data. + šŸ’„ Optimize the internal dom element level to reduce nesting. + šŸ’„ Optimize the prompt text display of `VOL`. + šŸž Fix the problem that illegal technical indicator calculation parameters may cause the chart to crash. + šŸ‘‰ The style configuration `yAxis.tickText.position` is changed to `yAxis.inside`. + šŸ‘‰ The default font family is changed from `Arial` to `Helvetica Neue`. + šŸ‘‰ The custom technical indicator attribute `isPriceTechnicalIndicator` becomes `series`, and the value is changed to `price`, `volume` and `normal`. + šŸ—‘ Remove the x-axis `minHeight` and `maxHeight` configuration, change to height adaptive. + šŸ—‘ Remove the y-axis `minWidth` and `maxWidth` configuration, change to width adaptive. ## 5.3.0 `2020-05-26` + šŸ›  Refactoring technical indicator module. + šŸ’„ The optimization method `formatDate` is called frequently and the resource occupation is too high. + šŸ’„ Optimized to load more trigger mechanisms, instead of zooming, scrolling will trigger. + šŸ’„ Optimize the Y axis to calculate the maximum and minimum values. + šŸ†• The new method `addCustomTechnicalIndicator` is used to add custom technical indicators to the chart. + šŸ‘‰ The method `addTechnicalIndicator` was changed to` createTechnicalIndicator`. + šŸ—‘ Remove the technical indicators and draw ohlc. ## 5.2.2 `2020-05-11` + šŸž Solve the problem that some browsers can't render the chart without `Intl`. ## 5.2.1 `2020-05-09` + šŸž Fix the problem that the prompt text of `showType: 'rect'` is not displayed when the main image is a time-sharing image. + šŸž Fix the problem that the x-axis does not display time when there is only one data. + šŸž Fix the problem that the chart cannot be refreshed accurately when the data changes. + šŸ’„ Optimize x-axis split calculation. + šŸ’„ Optimized the display of `VOL` technical indicators. + šŸ†• The third parameter is added in the `addTechnicalIndicator` method to set whether the technical indicator graph can be dragged to adjust the height. ## 5.2.0 `2020-04-25` + šŸž Fix the problem that the `setTimezone` method cannot take effect in real time. + šŸž Fix the problem that the entire chart will be exceeded when adjusting the height of the technical indicator chart. + šŸ’„ Optimize keyboard events `shift + ↑` and `shift + ↓` sensitivity. + šŸ’„ Optimize the width of the default candlestick. + šŸ’„ Optimize the mouse style when the chart is dragged and scrolled. + šŸ†• The `getConvertPictureUrl` method adds a new parameter to set the background color of the picture. + šŸ†• New method `setLeftMinVisibleBarCount` is used to set the minimum number of bars visible on the left. + šŸ†• New method `setRightMinVisibleBarCount` is used to set the minimum number of bars visible on the right. + šŸ†• Added font style attributes in style configuration. + šŸ†• Added the final value display configuration of technical indicators. + šŸ†• Added technical indicator `EMA`. ## 5.1.1 `2020-04-10` + šŸž Fix the issue of invalid method call of removeTechnicalIndicator. + šŸž Fix the problem that the chart cannot fill the root container in some specific cases. + šŸ’„ Optimize the minimum width of the candlestick. ## 5.1.0 `2020-03-27` + šŸž Fix the problem that `setStyleOptions` method is called and cannot take effect in real time. + šŸž Fix the problem that the text displayed by the cross cursor is incorrect when the configuration setting `{yAxis: {position: 'left'}}`. + šŸ’„ Optimized drag to adjust the height sensitivity of the technical indicator graph. + šŸ†• The style configuration adds the current technical indicator value indication point display configuration. + šŸ†• The style configuration adds a percentage y-axis configuration. ## 5.0.0 `2020-03-25` + šŸ›  The whole chart is refactored, and the new APIs are convenient for expanding functions. + šŸž Fix the mobile terminal zoom event response problem. + šŸ’„ Optimize scrolling and zoom fluency. + šŸ†• The style configuration adds no change color attribute `noChangeColor`. + šŸ†• New method `setTimezone` is used to set the chart time zone. + šŸ†• New method `setPrecision` is used to set price and quantity precision. + šŸ†• The number of technical indicator charts is not limited, and can be added by the method `addTechnicalIndicator`. + šŸ†• The technical indicator chart can be adjusted in height by dragging. ## 4.1.0 `2020-01-19` + šŸž Fix the display problem when the maximum and minimum values of the y-axis are all 0. + šŸ’„ Optimize the default configuration of dashed line parameters and time-sharing line colors. + šŸ’„ Optimized the problem that the chart will scroll up and down when scrolling on individual wheels. + šŸ’„ Optimize indicator calculation and call logic to reduce useless method calls. ## 4.0.0 `2019-12-30` + šŸž Fix the problem of `merge` method that cannot merge data correctly. + šŸ’„ Optimize the height of the default technical indicator graph. + šŸ†• New method `loadMore` is used to load historical data in sections. + šŸ†• Added keyboard shortcuts `shift + ←`, `shift + →`, `shift + ↑`, `shift + ↓` for zooming and scrolling. + šŸ†• Added the function of setting technical index calculation parameters. + šŸ†• Added technical indicator `SAR`. ## 3.0.0 `2019-12-16` + šŸ†• Support technical indicators. + šŸ†• Support custom styles. + šŸ†• Support mobile devices.