Skip to main content

Crate euv_chart

Crate euv_chart 

Source
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.
AriaOption
The accessible description of a chart.
AxisLayout
The layout of one axis.
AxisLineOption
The axis line of a gauge.
AxisOption
The options of one axis.
AxisPointerOption
The pointer that follows the mouse along an axis.
AxisTick
One tick of an axis.
AxisTickOption
The tick marks of a gauge.
BBox
An axis-aligned bounding box, stored as its minimum corner plus its extent.
BackendFactory
Creates the best rendering backend available on the host.
BarOptions
The options specific to a bar series.
BlurOption
The blur applied to the data points that are not highlighted.
BoxplotOptions
The options specific to a boxplot series.
BrushOption
The options of the brush component.
CalendarOption
The options of a calendar component.
CandlestickOptions
The options specific to a candlestick series.
Canvas2dChartBackend
The Canvas2D rendering backend.
Chart
A chart, bound to one canvas element.
ChartEvent
An event a chart emits.
ChartHandle
A handle to a chart.
ChartLayout
The whole layout of a chart.
ChartOption
The whole configuration of a chart.
ChartRenderer
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.
CustomOptions
The options specific to a custom series.
DashPattern
A dash pattern applied to a stroke.
DataZoomOption
The options of one data-zoom control.
DatasetOption
The options of a dataset.
DisplayItem
One entry of the display list.
DisplayList
The ordered list of drawing instructions produced by the chart model.
EmphasisOption
The style applied to a data point when it is highlighted.
FlatPath
A path flattened into contours.
FunnelOptions
The options specific to a funnel series.
GaugeOptions
The options specific to a gauge series.
GaugeProgressOption
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.
GeoRegionLayout
One region of a map, in pixel space.
GlyphAtlas
A cache of rasterised glyphs, packed into a single texture.
GlyphEntry
A glyph rendered into the atlas.
GlyphKey
The key that identifies one glyph in the atlas.
GlyphQuad
One positioned glyph, ready to be drawn as a textured quad.
GradientStop
A colour stop inside a gradient.
GraphOptions
The options specific to a graph series.
GraphicOption
The options of a graphic element.
GridLayout
The layout of one cartesian grid.
GridOption
The options of a cartesian grid.
HeatmapOptions
The options specific to a heatmap series.
ItemStyleOption
The fill, stroke, and shadow of a shape, as configured on a series or a data point.
LabelLayoutOption
The rules that move labels out of each other’s way.
LabelOffset
The horizontal and vertical placement of a label relative to its anchor.
LabelOption
The text drawn next to a data point, an axis, or a legend entry.
LegendOption
The options of the chart’s legend.
LineOptions
The options specific to a line series.
LineStyle
The line style of a shape: its width, its caps, its joins, and its dash pattern.
LineStyleOption
The stroke of a shape or a line.
LinearGradient
A linear colour gradient.
LinesEffectOption
The trail drawn behind a moving line.
LinesOptions
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.
MarkAreaOption
An area highlighted across the series.
MarkLineOption
A line drawn across the series.
MarkPointOption
A mark drawn at a data point.
ParallelOptions
The options specific to a parallel-coordinates series.
Path
A sequence of drawing commands describing one or more sub-paths.
PathBuilder
A fluent builder for Path.
PictorialBarOptions
The options specific to a pictorial-bar series.
PieOptions
The options specific to a pie series.
Point
A point in path space.
PointerOption
The pointer of a gauge.
PolarOption
The options of a polar coordinate system.
Polygon
A closed polygon: a flat list of points plus an explicit count.
RadarOption
The options of a radar coordinate system.
RadarOptions
The options specific to a radar series.
RadialGradient
A radial colour gradient.
RegionPolygon
One outline of a region: an outer ring, and the holes in it.
RichTextStyle
The style of one run inside a rich-text label.
SankeyOptions
The options specific to a sankey series.
Scale
A mapping from data values to pixel positions.
ScatterOptions
The options specific to a scatter series.
SeriesLayout
The layout of one series.
SeriesOption
The options of one series.
SeriesPoint
One data point of a series, in pixel space.
SeriesRenderer
Draws the series of a chart into the display list.
Shadow
A drop shadow applied to a filled or stroked shape.
ShadowOption
The shadow cast by a shape.
ShapeStyle
A fill and a stroke, as attached to a shape in a series.
SolidMesh
A solid-colour triangle mesh.
SolidVertex
A vertex of a solid-colour mesh.
SplitAreaOption
The alternating background of a polar system’s sectors.
SplitLineOption
The split lines of a gauge.
StrokeStyle
The geometric parameters of a stroke.
SunburstOptions
The options specific to a sunburst series.
Tessellator
Turns paths into GPU-ready triangle meshes.
TextLine
One line of a shaped text run.
TextMeasurer
Measures text with a 2D canvas context, caching the results.
TextMesh
A textured triangle mesh.
TextMetrics
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.
TextShaper
Combines the measurer and the atlas into a text shaper.
TextStyle
A text style, covering the font, the alignment, and the wrapping behaviour of a label.
TextVertex
A textured vertex, used for glyph-atlas text.
ThemeRiverOptions
The options specific to a theme-river series.
TitleOption
The options of the chart’s title.
ToolboxFeatureOption
The features the toolbox offers.
ToolboxFeatureSettings
A toolbox feature’s settings.
ToolboxOption
The options of the chart’s toolbox.
TooltipOption
The options of the chart’s tooltip.
TooltipState
The state of the chart’s tooltip.
Transform2D
A two-dimensional affine transform stored as the six meaningful entries of a 3×3 matrix.
TreemapOptions
The options specific to a treemap series.
VisualMap
A visual map, resolved for drawing.
VisualMapOption
The options of one visual map.
VisualPiece
One band of a piecewise visual map.
WebGl2ChartBackend
The WebGL2 rendering backend for the chart.
WebGpuChartBackend
The WebGPU rendering backend for the chart.

Enums§

AxisSide
How an axis is positioned relative to its grid.
AxisType
The kind of an axis.
BackendKind
The rendering backend a chart is running on.
ChartAction
An action a chart can be told to perform.
ChartCommand
A command for a chart.
ChartEventType
The kind of an event a chart emits.
DataValue
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.
DataZoomType
The kind of a data zoom control.
DatasetSourceType
The kind of a dataset source.
DrawCmd
A single drawing instruction in the display list.
DrawKind
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.
FillRule
How the interior of a self-intersecting path is determined.
GaugeProgressType
The shape of a gauge’s progress arc.
GeoError
The reasons a map cannot be read.
GraphLayout
The kind of a graph layout.
LabelAlign
The alignment of a text label, as ECharts names it.
LabelVerticalAlign
The vertical alignment of a text label, as ECharts names it.
LineCap
How the ends of an open stroked line are drawn.
LineDashType
The dash pattern of a line, expressed in ECharts’ lineStyle.type vocabulary.
LineJoin
How the corners between two stroked segments are drawn.
LineSmooth
How a line series connects its points.
LineType
The kind of a line drawn by a series.
MarkLineType
How a mark line is drawn.
Orientation
The direction a component lays its items out in.
PathCommand
A single drawing command inside a [Path].
Position
Where a component sits relative to its container.
ScaleKind
The kind of a coordinate scale.
SeriesType
The kind of a chart series.
StepPosition
Where a stepped line puts its step.
Stroke
How a shape is stroked.
SymbolShape
The shape drawn for a data point.
SymbolSize
The size of a data point’s symbol.
SymbolType
The shape drawn for a data point.
TextAlign
The alignment of a text label.
TextOverflow
What happens to text that does not fit inside its box.
TextVerticalAlign
The vertical alignment of a text label.
TreemapLayout
The layout of a treemap.
TriggerType
How a component picks the item a tooltip describes.
VisualMapType
The kind of a visual map.
WebGl2BatchKind
Which texture a batch samples.
WebGl2VertexKind
How the fragment stage shades one vertex.
WebGpuBatchKind
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§

ChartBackend
A rendering backend for the chart.

Type Aliases§

EventHandler
A handler registered on a chart.