PaneComponent
PaneComponent API
- PaneComponent.doActivate
- Returns
- void
PaneComponent.doActivate(): void
Method that activates the canvas bounds container and recalculates the zoom Y of the scale model.
- PaneComponent.toY
- Parameters
- price: number
- Returns
- number
PaneComponent.toY(price: number): number
- PaneComponent.createGridComponent
- Parameters
- uuid: string
- - The unique identifier of the pane.
- scale: ScaleModel
- - The scale model used to calculate the scale of the grid.
- yAxisState: YAxisConfig
- - y Axis Config
- yAxisLabelsGetter: () => NumericAxisLabel[]
- yAxisBaselineGetter: () => number
- Returns
- GridComponent
PaneComponent.createGridComponent(uuid: string, scale: ScaleModel, yAxisState: YAxisConfig, yAxisLabelsGetter: () => NumericAxisLabel[], yAxisBaselineGetter: () => number): GridComponent
Creates a new GridComponent instance with the provided parameters.
- PaneComponent.createYPanHandler
- Parameters
- uuid: string
- - The unique identifier of the chart pane.
- scale: ScaleModel
- - The scale model of the chart.
- Returns
- [Unsubscriber, DragNDropYComponent]
PaneComponent.createYPanHandler(uuid: string, scale: ScaleModel): [Unsubscriber, DragNDropYComponent]
Creates a handler for Y-axis panning of the chart.
- PaneComponent.addCursors
- Parameters
- extentIdx: number
- yAxisComponent: YAxisComponent
- Returns
- Unsubscriber
PaneComponent.addCursors(extentIdx: number, yAxisComponent: YAxisComponent): Unsubscriber
- PaneComponent.createExtentComponent
- Parameters
- options: AtLeastOne<YExtentCreationOptions, keyof YExtentCreationOptions>
- Returns
- YExtentComponent
PaneComponent.createExtentComponent(options: AtLeastOne<YExtentCreationOptions, keyof YExtentCreationOptions>): YExtentComponent
- PaneComponent.removeExtentComponents
- Parameters
- extentComponents: YExtentComponent[]
- Returns
- void
PaneComponent.removeExtentComponents(extentComponents: YExtentComponent[]): void
- PaneComponent.moveDataSeriesToNewExtentComponent
- Parameters
- dataSeries: DataSeriesModel<DataSeriesPoint, VisualSeriesPoint, DataSeriesConfig>[]
- initialPane: PaneComponent
- initialExtent: YExtentComponent
- align: YAxisAlign
- Returns
- void
PaneComponent.moveDataSeriesToNewExtentComponent(dataSeries: DataSeriesModel<DataSeriesPoint, VisualSeriesPoint, DataSeriesConfig>[], initialPane: PaneComponent, initialExtent: YExtentComponent, align: YAxisAlign): void
Create new pane extent and attach data series to it
- PaneComponent.moveDataSeriesToExistingExtentComponent
- Parameters
- dataSeries: DataSeriesModel<DataSeriesPoint, VisualSeriesPoint, DataSeriesConfig>[]
- initialPane: PaneComponent
- initialExtent: YExtentComponent
- extentComponent: YExtentComponent
- isForceKeepExtent: boolean
- Returns
- void
PaneComponent.moveDataSeriesToExistingExtentComponent(dataSeries: DataSeriesModel<DataSeriesPoint, VisualSeriesPoint, DataSeriesConfig>[], initialPane: PaneComponent, initialExtent: YExtentComponent, extentComponent: YExtentComponent, isForceKeepExtent: boolean): void
Attach data series to existing y axis extent
- PaneComponent.updateView
- Returns
- void
PaneComponent.updateView(): void
This method updates the view by calling the doAutoScale method of the scaleModel and firing the Draw event using the eventBus.
- PaneComponent.mergeYExtents
- Returns
- void
PaneComponent.mergeYExtents(): void
Merges all the y-axis extents on the pane into one.
- PaneComponent.getBounds
- Returns
- Bounds
PaneComponent.getBounds(): Bounds
Returns the bounds of the pane component.
- PaneComponent.createDataSeries
- Returns
- DataSeriesModel<DataSeriesPoint, VisualSeriesPoint, DataSeriesConfig>
PaneComponent.createDataSeries(): DataSeriesModel<DataSeriesPoint, VisualSeriesPoint, DataSeriesConfig>
Creates a new DataSeriesModel object.
- PaneComponent.addDataSeries
- Parameters
- series: DataSeriesModel<DataSeriesPoint, VisualSeriesPoint, DataSeriesConfig>
- - The data series to be added.
- Returns
- void
PaneComponent.addDataSeries(series: DataSeriesModel<DataSeriesPoint, VisualSeriesPoint, DataSeriesConfig>): void
Adds a new data series to the chart.
- PaneComponent.removeDataSeries
- Parameters
- series: DataSeriesModel<DataSeriesPoint, VisualSeriesPoint, DataSeriesConfig>
- - The data series to be removed.
- Returns
- void
PaneComponent.removeDataSeries(series: DataSeriesModel<DataSeriesPoint, VisualSeriesPoint, DataSeriesConfig>): void
Removes a data series from the chart.
- PaneComponent.getAxisType
- Returns
- PriceAxisType
PaneComponent.getAxisType(): PriceAxisType
Returns the type of the y-axis component for the current pane.
- PaneComponent.moveUp
- Returns
- void
PaneComponent.moveUp(): void
Moves the canvas bounds container up by calling the movePaneUp method with the uuid of the current object.
- PaneComponent.moveDown
- Returns
- void
PaneComponent.moveDown(): void
Moves the canvas bounds container down by calling the movePaneDown method with the uuid of the current object.
- PaneComponent.canMoveUp
- Returns
- boolean
PaneComponent.canMoveUp(): boolean
Checks if the current pane can move up.
- PaneComponent.canMoveDown
- Returns
- boolean
PaneComponent.canMoveDown(): boolean
Checks if the current pane can move down.
- PaneComponent.setPaneValueFormatters
- Parameters
- formatters: YExtentFormatters
- - The pane value formatters to be set.
- Returns
- void
PaneComponent.setPaneValueFormatters(formatters: YExtentFormatters): void
Sets the pane value formatters for the current instance.
- PaneComponent.regularValueFromY
- Parameters
- y: number
- - The Y coordinate.
- Returns
- number
PaneComponent.regularValueFromY(y: number): number
Returns the regular value from Y coordinate.