Version 10.0.0-beta2
-
🆕 New Features
- Support multiple y-axes. Multiple y-axes can be created in the same pane, and indicators can be bound to a specified y-axis through
yAxisId. - Add instance methods
overrideXAxis(options)andoverrideYAxis(options)for independently configuring the x-axis and y-axis. - The chart now supports automatically listening to container size changes and calling
resize(). - Add the
texttype to indicator figures, allowing indicatorfiguresto draw text directly.
- Support multiple y-axes. Multiple y-axes can be created in the same pane, and indicators can be bound to a specified y-axis through
-
👉 Changes
- In the chart method
init(ds, options),options.layouthas been changed from an array structure to an object structure, withbasicParamsandpanesadded:basicParamssupports configuringbarSpaceLimitMin,barSpaceLimitMax,yAxisPosition,yAxisInside,paneMinHeight, andpaneHeight.panesis used to configure pane layout, and pane content supports specifying a y-axis configuration for an indicator through{ indicator, yAxis }.
- The instance method
createIndicator(indicator, isStack?, paneOptions?)has been changed tocreateIndicator(indicator, options?), andoptionssupportsisStack,pane, andyAxis. setPaneOptions(options)no longer includes axis configuration. UseoverrideXAxis(options)oroverrideYAxis(options)for axis configuration.- Add
yAxisIdto thefilterparameter ofconvertToPixel(value, filter?)andconvertFromPixel(coordinate, filter?).
- In the chart method
-
🐞 Fixed the parameter type error of the instance API
setZoomAnchor. -
💄 Optimized the build process. The build tool has been changed from rollup to Vite, and
type-checkhas been added.