VolumesComponent
VolumesComponent API
- VolumesComponent.registerDefaultVolumeColorResolvers
- Returns
- void
VolumesComponent.registerDefaultVolumeColorResolvers(): void
Registers default volume color resolvers for candle, line and bar charts
- VolumesComponent.setShowVolumesSeparatly
- Parameters
- separate: boolean
- - A boolean value indicating whether the volumes should be shown separately or not.
- Returns
- void
VolumesComponent.setShowVolumesSeparatly(separate: boolean): void
Sets whether the volumes should be shown separately or not.
- VolumesComponent.doDeactivate
- Returns
- void
VolumesComponent.doDeactivate(): void
This method deactivates the current component by calling the superclass doDeactivate method and setting the visibility of the component to false.
- VolumesComponent.registerVolumeColorResolver
- Parameters
- chartType: keyof BarTypes
- resolver: VolumeColorResolver
- Returns
- void
VolumesComponent.registerVolumeColorResolver(chartType: keyof BarTypes, resolver: VolumeColorResolver): void
You can use this method to determine volumes' color for specified chart type.
- VolumesComponent.setVisible
- Parameters
- visible: boolean
- - Whether the volumes component should be visible or not. Default is true.
- Returns
- void
VolumesComponent.setVisible(visible: boolean): void
Sets the visibility of the volumes component and updates the canvas accordingly.
- VolumesComponent.syncVolumesDynamicObject
- Returns
- void
VolumesComponent.syncVolumesDynamicObject(): void