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§
- Band
Options - Colors of a band between two series.
- BarValues
- OHLCV values of one bar.
- Chart
- A financial chart.
- Chart
Data View - Read-only view of the chart data for renderers.
- Chart
Options - Options of a new chart.
- Crosshair
Point - 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.
- Price
Line Options - A horizontal line at a price of a series, with an optional label on the price axis.
- Series
Options - Options of a series. Colors left at
Nonecome from the theme.
Enums§
- Chart
Event - Events for the host, pulled with
Chart::drain_events. - Click
Target - What a click hit: the first in priority order (drawing, marker, series).
- Marker
Position - Where a
Markersits relative to its bar. - Marker
Shape - Shape of a
Marker. - Series
Data - Data for
set_data/append/prepend. - Warning
Kind - Non-fatal problems reported through
ChartEvent::Warning.