ChartCanvas class abstract

Constructors

ChartCanvas()

Properties

drawingView ← String?
Set the name of the view doing the rendering for debugging purposes, or null when we believe rendering is complete.
no getter
graphicsFactory → GraphicsFactory
Get GraphicsFactory for creating native graphics elements.
no setter
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

drawBarStack(CanvasBarStack canvasBarStack, {Rectangle<num>? drawAreaBounds}) → void
Renders a stack of bars, rounding the last bar in the stack.
drawCircleSector(Point<num> center, double radius, double innerRadius, double startAngle, double endAngle, {Color? fill, Color? stroke, double? strokeWidthPx}) → void
Renders a sector of a circle, with an optional hole in the center.
drawLine({required List<Point<num>> points, Rectangle<num>? clipBounds, Color? fill, Color? stroke, bool? roundEndCaps, double? strokeWidthPx, List<int>? dashPattern}) → void
Renders a simple line.
Draws a smooth link from source to target.
drawPie(CanvasPie canvasPie) → void
Renders a pie, with an optional hole in the center.
drawPoint({required Point<num> point, required double radius, Color? fill, Color? stroke, double? strokeWidthPx, BlendMode? blendMode}) → void
Renders a simple point.
drawPolygon({required List<Point<num>> points, Rectangle<num>? clipBounds, Color? fill, Color? stroke, double? strokeWidthPx}) → void
Renders a polygon shape described by a set of points.
drawRect(Rectangle<num> bounds, {Color? fill, Color? stroke, double? strokeWidthPx, Rectangle<num>? drawAreaBounds}) → void
Renders a simple rectangle.
drawRRect(Rectangle<num> bounds, {Color? fill, Color? stroke, Color? patternColor, FillPatternType? fillPattern, double? patternStrokeWidthPx, double? strokeWidthPx, num? radius, bool roundTopLeft = false, bool roundTopRight = false, bool roundBottomLeft = false, bool roundBottomRight = false}) → void
Renders a rounded rectangle.
drawText(TextElement textElement, int offsetX, int offsetY, {double rotation = 0.0}) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resetClipBounds() → void
Restore
setClipBounds(Rectangle<int> clipBounds) → void
Request the canvas to clip to clipBounds.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited