ScatterChartPainter class

Paints ScatterChartData in the canvas, it can be used in a CustomPainter

Inheritance

Constructors

ScatterChartPainter()
Paints dataList into canvas, it is the animating ScatterChartData, targetData is the animation's target and remains the same during animation, then we should use it when we need to show tooltips or something like that, because dataList is changing constantly.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

drawBackground(CanvasWrapper canvasWrapper, PaintHolder<ScatterChartData> holder) → void
This function draws a colored background behind the chart.
inherited
drawExtraLines(BuildContext context, CanvasWrapper canvasWrapper, PaintHolder<ScatterChartData> holder) → void
inherited
drawGrid(CanvasWrapper canvasWrapper, PaintHolder<ScatterChartData> holder) → void
inherited
drawHorizontalLines(BuildContext context, CanvasWrapper canvasWrapper, PaintHolder<ScatterChartData> holder, Size viewSize) → void
inherited
drawRangeAnnotation(CanvasWrapper canvasWrapper, PaintHolder<ScatterChartData> holder) → void
inherited
drawSpots(BuildContext context, CanvasWrapper canvasWrapper, PaintHolder<ScatterChartData> holder) → void
drawTouchTooltip(BuildContext context, CanvasWrapper canvasWrapper, ScatterTouchTooltipData tooltipData, ScatterSpot showOnSpot, PaintHolder<ScatterChartData> holder) → void
drawTouchTooltips(BuildContext context, CanvasWrapper canvasWrapper, PaintHolder<ScatterChartData> holder) → void
drawVerticalLines(BuildContext context, CanvasWrapper canvasWrapper, PaintHolder<ScatterChartData> holder, Size viewSize) → void
inherited
getPixelX(double spotX, Size viewSize, PaintHolder<ScatterChartData> holder) double
With this function we can convert our AFlSpot x to the view base axis x . the view 0, 0 is on the top/left, but the spots is bottom/left
inherited
getPixelY(double spotY, Size viewSize, PaintHolder<ScatterChartData> holder) double
With this function we can convert our AFlSpot y to the view base axis y.
inherited
getTooltipLeft(double dx, double tooltipWidth, FLHorizontalAlignment tooltipHorizontalAlignment, double tooltipHorizontalOffset) double
With this function we can get horizontal position for the tooltip.
inherited
handleTouch(Offset localPosition, Size viewSize, PaintHolder<ScatterChartData> holder) ScatterTouchedSpot?
Makes a ScatterTouchedSpot based on the provided localPosition
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
paint(BuildContext context, CanvasWrapper canvasWrapper, PaintHolder<ScatterChartData> holder) → void
Paints ScatterChartData into the provided canvas.
override
toString() String
A string representation of this object.
inherited

Operators

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