Skip to main content

Module chart

Module chart 

Source
Expand description

Chart: the public object that owns data, scales and layout and builds frames.

Scope so far: any number of panes holding series of the built-in kinds. All series share one time axis, the union of their times; volume series read the volume column of an OHLC series.

build_frame is a hot path: once the frame pools and scratch buffers have warmed up, panning, zooming and real-time updates do not allocate.

Structs§

BandOptions
Colors of a band between two series.
BarValues
OHLCV values of one bar.
Chart
A financial chart.
ChartDataView
Read-only view of the chart data for renderers.
ChartOptions
Options of a new chart.
CrosshairPoint
Where the crosshair points.
Layout
Rectangles of the last built layout, in physical pixels. Per-pane rectangles are available from Chart::pane_layout.
Marker
An icon with optional text above or below a bar, e.g. a buy or sell signal. Anchored by time; markers on the same bar and side stack away from it in the order given.
PriceLineOptions
A horizontal line at a price of a series, with an optional label on the price axis.
SeriesOptions
Options of a series. Colors left at None come from the theme.

Enums§

ChartEvent
Events for the host, pulled with Chart::drain_events.
ClickTarget
What a click hit: the first in priority order (drawing, marker, series).
MarkerPosition
Where a Marker sits relative to its bar.
MarkerShape
Shape of a Marker.
SeriesData
Data for set_data / append / prepend.
WarningKind
Non-fatal problems reported through ChartEvent::Warning.