Expand description
euv-chart
A high-performance charting library for the euv framework.
The crate offers an ECharts-compatible option model, renders through WebGPU, WebGL2, or Canvas2D — whichever the host browser supports — and exposes one API for all three, so a developer never has to know which backend is in use.
Structs§
- Animator
- Animates the values of a chart’s series.
- Aria
Option - The accessible description of a chart.
- Axis
Layout - The layout of one axis.
- Axis
Line Option - The axis line of a gauge.
- Axis
Option - The options of one axis.
- Axis
Pointer Option - The pointer that follows the mouse along an axis.
- Axis
Tick - One tick of an axis.
- Axis
Tick Option - The tick marks of a gauge.
- BBox
- An axis-aligned bounding box, stored as its minimum corner plus its extent.
- Backend
Factory - Creates the best rendering backend available on the host.
- BarOptions
- The options specific to a bar series.
- Blur
Option - The blur applied to the data points that are not highlighted.
- Boxplot
Options - The options specific to a boxplot series.
- Brush
Option - The options of the brush component.
- Calendar
Option - The options of a calendar component.
- Candlestick
Options - The options specific to a candlestick series.
- Canvas2d
Chart Backend - The Canvas2D rendering backend.
- Chart
- A chart, bound to one canvas element.
- Chart
Event - An event a chart emits.
- Chart
Handle - A handle to a chart.
- Chart
Layout - The whole layout of a chart.
- Chart
Option - The whole configuration of a chart.
- Chart
Renderer - Turns a chart’s option and layout into a display list.
- Color
- A colour with 8 bits per channel.
- Contour
- A contour: one flattened sub-path of a
Path. - Custom
Options - The options specific to a custom series.
- Dash
Pattern - A dash pattern applied to a stroke.
- Data
Zoom Option - The options of one data-zoom control.
- Dataset
Option - The options of a dataset.
- Display
Item - One entry of the display list.
- Display
List - The ordered list of drawing instructions produced by the chart model.
- Emphasis
Option - The style applied to a data point when it is highlighted.
- Flat
Path - A path flattened into contours.
- Funnel
Options - The options specific to a funnel series.
- Gauge
Options - The options specific to a gauge series.
- Gauge
Progress Option - The progress arc of a gauge.
- GeoBounds
- The box a map covers.
- GeoLayout
- A map, in pixel space.
- GeoOption
- The options of a geo component.
- GeoPoint
- A point on the globe.
- GeoRegion
Layout - One region of a map, in pixel space.
- Glyph
Atlas - A cache of rasterised glyphs, packed into a single texture.
- Glyph
Entry - A glyph rendered into the atlas.
- Glyph
Key - The key that identifies one glyph in the atlas.
- Glyph
Quad - One positioned glyph, ready to be drawn as a textured quad.
- Gradient
Stop - A colour stop inside a gradient.
- Graph
Options - The options specific to a graph series.
- Graphic
Option - The options of a graphic element.
- Grid
Layout - The layout of one cartesian grid.
- Grid
Option - The options of a cartesian grid.
- Heatmap
Options - The options specific to a heatmap series.
- Item
Style Option - The fill, stroke, and shadow of a shape, as configured on a series or a data point.
- Label
Layout Option - The rules that move labels out of each other’s way.
- Label
Offset - The horizontal and vertical placement of a label relative to its anchor.
- Label
Option - The text drawn next to a data point, an axis, or a legend entry.
- Legend
Option - The options of the chart’s legend.
- Line
Options - The options specific to a line series.
- Line
Style - The line style of a shape: its width, its caps, its joins, and its dash pattern.
- Line
Style Option - The stroke of a shape or a line.
- Linear
Gradient - A linear colour gradient.
- Lines
Effect Option - The trail drawn behind a moving line.
- Lines
Options - The options specific to a lines series.
- MapData
- One map: the regions it is made of, and the box they cover.
- MapOptions
- The options specific to a map series.
- MapRegion
- One region of a map.
- MapRegistry
- The maps a chart can draw.
- Mark
Area Option - An area highlighted across the series.
- Mark
Line Option - A line drawn across the series.
- Mark
Point Option - A mark drawn at a data point.
- Parallel
Options - The options specific to a parallel-coordinates series.
- Path
- A sequence of drawing commands describing one or more sub-paths.
- Path
Builder - A fluent builder for
Path. - Pictorial
BarOptions - The options specific to a pictorial-bar series.
- PieOptions
- The options specific to a pie series.
- Point
- A point in path space.
- Pointer
Option - The pointer of a gauge.
- Polar
Option - The options of a polar coordinate system.
- Polygon
- A closed polygon: a flat list of points plus an explicit count.
- Radar
Option - The options of a radar coordinate system.
- Radar
Options - The options specific to a radar series.
- Radial
Gradient - A radial colour gradient.
- Region
Polygon - One outline of a region: an outer ring, and the holes in it.
- Rich
Text Style - The style of one run inside a rich-text label.
- Sankey
Options - The options specific to a sankey series.
- Scale
- A mapping from data values to pixel positions.
- Scatter
Options - The options specific to a scatter series.
- Series
Layout - The layout of one series.
- Series
Option - The options of one series.
- Series
Point - One data point of a series, in pixel space.
- Series
Renderer - Draws the series of a chart into the display list.
- Shadow
- A drop shadow applied to a filled or stroked shape.
- Shadow
Option - The shadow cast by a shape.
- Shape
Style - A fill and a stroke, as attached to a shape in a series.
- Solid
Mesh - A solid-colour triangle mesh.
- Solid
Vertex - A vertex of a solid-colour mesh.
- Split
Area Option - The alternating background of a polar system’s sectors.
- Split
Line Option - The split lines of a gauge.
- Stroke
Style - The geometric parameters of a stroke.
- Sunburst
Options - The options specific to a sunburst series.
- Tessellator
- Turns paths into GPU-ready triangle meshes.
- Text
Line - One line of a shaped text run.
- Text
Measurer - Measures text with a 2D canvas context, caching the results.
- Text
Mesh - A textured triangle mesh.
- Text
Metrics - The measured metrics of a text run.
- TextRun
- A shaped run of text: the glyph quads that draw it, plus the metrics of the run as a whole.
- Text
Shaper - Combines the measurer and the atlas into a text shaper.
- Text
Style - A text style, covering the font, the alignment, and the wrapping behaviour of a label.
- Text
Vertex - A textured vertex, used for glyph-atlas text.
- Theme
River Options - The options specific to a theme-river series.
- Title
Option - The options of the chart’s title.
- Toolbox
Feature Option - The features the toolbox offers.
- Toolbox
Feature Settings - A toolbox feature’s settings.
- Toolbox
Option - The options of the chart’s toolbox.
- Tooltip
Option - The options of the chart’s tooltip.
- Tooltip
State - The state of the chart’s tooltip.
- Transform2D
- A two-dimensional affine transform stored as the six meaningful entries of a 3×3 matrix.
- Treemap
Options - The options specific to a treemap series.
- Visual
Map - A visual map, resolved for drawing.
- Visual
MapOption - The options of one visual map.
- Visual
Piece - One band of a piecewise visual map.
- WebGl2
Chart Backend - The WebGL2 rendering backend for the chart.
- WebGpu
Chart Backend - The WebGPU rendering backend for the chart.
Enums§
- Axis
Side - How an axis is positioned relative to its grid.
- Axis
Type - The kind of an axis.
- Backend
Kind - The rendering backend a chart is running on.
- Chart
Action - An action a chart can be told to perform.
- Chart
Command - A command for a chart.
- Chart
Event Type - The kind of an event a chart emits.
- Data
Value - ECharts data is loosely typed: a point can be a bare number, a
[name, value]pair, or an object with named fields. The chart crate keeps the same flexibility, so an existing ECharts dataset can be ported without reshaping it. - Data
Zoom Type - The kind of a data zoom control.
- Dataset
Source Type - The kind of a dataset source.
- DrawCmd
- A single drawing instruction in the display list.
- Draw
Kind - The kind of a display command, used to group commands that can share one batch.
- Easing
- The complete set of Robert Penner easing functions used to warp a linear interpolation parameter into an accelerated / decelerated curve.
- Fill
- How a shape is filled.
- Fill
Rule - How the interior of a self-intersecting path is determined.
- Gauge
Progress Type - The shape of a gauge’s progress arc.
- GeoError
- The reasons a map cannot be read.
- Graph
Layout - The kind of a graph layout.
- Label
Align - The alignment of a text label, as ECharts names it.
- Label
Vertical Align - The vertical alignment of a text label, as ECharts names it.
- LineCap
- How the ends of an open stroked line are drawn.
- Line
Dash Type - The dash pattern of a line, expressed in ECharts’
lineStyle.typevocabulary. - Line
Join - How the corners between two stroked segments are drawn.
- Line
Smooth - How a line series connects its points.
- Line
Type - The kind of a line drawn by a series.
- Mark
Line Type - How a mark line is drawn.
- Orientation
- The direction a component lays its items out in.
- Path
Command - A single drawing command inside a [
Path]. - Position
- Where a component sits relative to its container.
- Scale
Kind - The kind of a coordinate scale.
- Series
Type - The kind of a chart series.
- Step
Position - Where a stepped line puts its step.
- Stroke
- How a shape is stroked.
- Symbol
Shape - The shape drawn for a data point.
- Symbol
Size - The size of a data point’s symbol.
- Symbol
Type - The shape drawn for a data point.
- Text
Align - The alignment of a text label.
- Text
Overflow - What happens to text that does not fit inside its box.
- Text
Vertical Align - The vertical alignment of a text label.
- Treemap
Layout - The layout of a treemap.
- Trigger
Type - How a component picks the item a tooltip describes.
- Visual
MapType - The kind of a visual map.
- WebGl2
Batch Kind - Which texture a batch samples.
- WebGl2
Vertex Kind - How the fragment stage shades one vertex.
- WebGpu
Batch Kind - A batch is one contiguous run of triangles that share a pipeline and a bind group, and therefore cost exactly one draw call. The backend groups the display list into batches of these two kinds, so a steady-state frame issues a handful of draw calls no matter how many shapes the chart holds.
Traits§
- Chart
Backend - A rendering backend for the chart.
Type Aliases§
- Event
Handler - A handler registered on a chart.