Releases: klinecharts/KLineChart
Releases ยท klinecharts/KLineChart
Version 7.0.0
- ๐ New features
- Add
removeGraphicMark
,setGraphicMarkOptions
, andcreateTechnicalIndicator
to the chart instance methods. - Chart instance methods
subscribeDrawAction
andunsubscribeDrawAction
are changed tosubscribeAction
andunsubscribeAction
, and new typeszoom
andscroll
are added. - Add
getDistance
,getRotatePoint
,checkPointOnArc
, andgetRayLine
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
andpolygon
.
- Add
- ๐ช 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.
- Chart instance method
- ๐ 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 tocreateTecchnicalIndicator
. - The chart instance method
getTechnicalIndicatorInfo
is changed togetTechnicalIndicatorByName
. - The chart instance method
getTechnicalIndicatorType
is changed togetTechnicalIndicatorByPaneId
. - The graphics mark assist method
checkPointOnSegmentLine
is changed tocheckPointOnSegment
. - Hot key zoom in is changed to
shift
++
. - Hot key zoom out is changed to
shift
+-
.
- The chart instance method
- ๐ 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.
- Fix the problem that the built-in technical indicator
- ๐ Delete
- Delete the chart instance methods
createPane
,removePane
,removeAllGraphicMark
.
- Delete the chart instance methods
Version 6.1.0
- ๐ Add
extension.addTechnicalIndicator
andextension.addGraphicMark
to the chart api. - ๐ Each item of the technical indicator
plots
addstitle
. - ๐ Add
styles
for technical indicators. - ๐ Add api
overrideTechnicalIndicator
, replace the apissetTechnicalIndicatorParams
andsetTechnicalIndicatorPrecision
. - ๐ 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 togetTechnicalIndicatorInfo
. - ๐ Api
addGraphicMark
is changed tocreateGraphicMark
. - ๐ 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.
Version 6.0.5
- ๐ Add configuration
candle.margin
,candle.tooltip.defaultValue
,technicalIndicator.margin
,technicalIndicator.tooltip.defaultValue
andseparator.activeBackgroundColor
. - ๐ Optimize drag and drop to adjust chart display.
- ๐ Fix the problem of custom colors in
candle.tooltip.values
.
Version 6.0.2
- ๐ Optimize the time display of the x-axis cross cursor.
- ๐ Optimize technical indicator
plot
type isbar
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.
Version 6.0.1
- ๐ 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.
Version 6.0.0
- ๐จ New style configuration
- ๐ All
display
is changed toshow
. - ๐
candleStick
is changed tocandle
. - ๐
candleStick.bar.style
is changed tocandle.type
. - ๐
realTime
is changed tocandle.area
. - ๐
floatLayer.prompt.candleStick
is changed tocandle.tooltip
. - ๐
floatLayer.prompt.technicalIndicator
is changed totechnicalIndicator.tooltip
. - ๐
floatLayer.crossHair
is changed tocrosshair
.
- ๐ All
- ๐ง New API
- ๐
createTechnicalIndicator
is changed tocreatePane
. - ๐
setPrecision
is changed tosetPriceVolumePrecision
. - ๐ช
setTechnicalIndicatorType
andremoveTechnicalIndicator
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.
Version 5.7.0
- ๐ Refactor marking graphics module.
- ๐ Configuration item
realTime.timeLine.areaFillColor
supports gradient. - ๐ Add
dataIndex
in the callback parameterdata
of thesubscribeDrawAction
method. - ๐ Add api
setZoomEnabled
andisZoomEnabled
,setScrollEnabled
andisScrollEnabled
. - ๐ Optimize the chart display of the y-axis value very small.
Version 5.6.0
- ๐ Add
render
property for custom technical indicators. - ๐ Custom indicator api
calcTechnicalIndicator
, add parameterplots
. - ๐ Add
xAxis.height
andyAxis.width
to configuration items. - ๐ Add api
subscribeDrawAction
andunsubscribeDrawAction
for drawing monitoring and cancellation. - ๐ Add api
getTimezone
. - ๐ Api
getTechnicalIndicatorParamOptions
changed togetTechnicalIndicatorParams
ใ - ๐ The built-in indicator text prompt shows that
xxxMa
is changed tomaXxx
. - ๐ Remove the configuration item
floatLayer.prompt.technicalIndicator.point
.
Version 5.5.1
- ๐ 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 toxAxis.tickText.paddingTop
andxAxis.tickText.paddingBottom
. - ๐
yAxis.tickText.margin
changed toyAxis.tickText.paddingLeft
andyAxis.tickText.paddingRight
.
Version 5.5.0
- ๐ 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 toyAxis.inside
. - ๐ The default font family is changed from
Arial
toHelvetica Neue
. - ๐ The custom technical indicator attribute
isPriceTechnicalIndicator
becomesseries
, and the value is changed toprice
,volume
andnormal
. - ๐ Remove the x-axis
minHeight
andmaxHeight
configuration, change to height adaptive. - ๐ Remove the y-axis
minWidth
andmaxWidth
configuration, change to width adaptive.