Skip to content

Version 10.0.0-alpha1

Compare
Choose a tag to compare
@liihuu liihuu released this 01 Dec 19:45
· 18 commits to main since this release
  • 🆕 New features
    • Support thousand separators and custom decimal folding.
    • Rewrite the axis module, and customize the y-axis to support setting ranges.
    • Add instance methods setPrecision(precision) , getPrecision() , setThousandsSeparator(thousandsSeparator) , getThousandsSeparator() , setDecimalFold(decimalFold) , getDecimalFold() and setLoadMoreDataCallback(cb) .
  • 👉 Changes
    • Chart api init(dcs, options), position in options.layout child changed to order , formatDate(dateTimeFormat, timestamp, format, type) in options.customApi changed to formatDate(timestamp, format, type) , options.thousandsSeparator changed to object { sign, format } , options.decimalFoldThreshold changed to options.decimalFold .
    • Instance api applyNewData(dataList, more, callback) changed to applyNewData(dataList, more) .
    • Instance api updateData(data, callback) changed to updateData(data) .
    • Instance api getBarSpace() return value changed to object.
    • The return value of the custom indicator createTooltipDataSource method values is changed to legends .
  • 🗑 Deprecated
    • Remove chart api utils.drawArc(ctx, arc, styles), utils.drawCircle(ctx, circle, styles), utils.drawLine(ctx, line, styles), utils.drawPolygon(ctx, polygon, styles), utils.drawRect(ctx, rect, styles), utils.drawText(ctx, text, styles), utils.drawRectText(ctx, rectText, styles), please use getFigureClass(name) instead.
    • Remove instance api setPriceVolumePrecision(pricePrecision, volumePrecision), please use setPrecision(precision) instead.
    • Remove instance api applyMoreData(dataList, more, callback), setLoadDataCallback(cb) and loadMore(cb), please use setLoadMoreDataCallback(cb) instead.
    • Remove instance api getIndicatorByPaneId(paneId, name), please use getIndicators(filter) instead.
    • Remove instance api getOverlayById(id), please use getOverlays(filter) instead.
    • Remove style configuration yAxis.position , yAxis.type , yAxis.inside and yAxis.inside , please use the properties in the window configuration axis instead. For details, refer to the chart API init(dcs, options), the instance API createIndicator(value, isStack, paneOptions) and setPaneOptions(options).
    • Remove overlay.rectText from style configuration.
    • Remove rectText from built-in basic graphics, please use text instead.