Skip to main content

Module config

Module config 

Source
Expand description

Appearance and interaction options for the chart widget.

ChartConfig controls visual styling, while ChartOptions groups time scale, scrolling, zoom, keyboard, crosshair and tooltip behavior. Start with Default and set the fields needed by your application.

Re-exports§

pub use crate::scales::TimezoneMode;

Structs§

AxisDoubleClickResetOptions
Axis-specific double-click reset options
AxisPressedMouseMoveOptions
Axis-specific pressed mouse move options
ChartConfig
Configuration for chart visual appearance.
ChartOptions
Top-level chart interaction options.
CrosshairOptions
Crosshair options
HandleScaleOptions
Handle Scale Options Controls how zoom/scale interactions work
HandleScrollOptions
Handle Scroll Options Controls how scrolling/panning interactions work
KeyboardOptions
Global keyboard shortcut configuration.
KineticScrollOptions
Kinetic scroll animation parameters.
ParseToolTypeError
The error DrawingToolType’s FromStr returns for a name that is not a drawing tool.
PriceAxisOptions
Appearance of the price axis: its border, tick marks and which labels it shows. It applies to the main and series price axes; value tag settings also apply to study panes.
SessionConfig
Trading session configuration.
TimeScaleOptions
Time Scale Options. Controls bar spacing, scrolling constraints, and time display.
TooltipOptions
Tooltip configuration options
TrackingModeOptions
Tracking mode options Controls automatic price following behavior

Enums§

BackgroundStyle
Background style for the chart.
CrosshairMode
Crosshair mode
CrosshairStyle
Crosshair visual style
DrawingInteractionMode
How a drawing tool captures points from mouse/pointer input.
DrawingToolType
Enumeration of all drawing tool types available in the charting engine.
FontWeight
Font weight shared by chart watermarks and drawing annotations.
KeyboardAction
Keyboard actions that can be performed on the chart
NavigationButtons
When the chart shows a group of buttons: its navigation buttons in the main pane, or the maximize and menu buttons of its panes.
RealtimeButtonPos
Pos options for the “Go to Realtime” button
TooltipMode
Tooltip display mode
TrackingModeExitMode
How tracking mode (crosshair auto-follow) is exited.
WatermarkPos
Pos options for the watermark overlay