animated_fl_chart
library
Classes
-
AFlBorderData
-
Holds data to drawing border around the chart.
-
AFlGridData
-
Responsible to hold grid data,
-
AFlLine
-
Defines style of a line.
-
AFlLineLabel
-
-
AFlSpot
-
Represents a conceptual position in cartesian (axis based) space.
-
AFlTitlesData
-
Holds data for showing titles on each side of charts.
-
AFlTouchEvent
-
Parent class for several kind of touch/pointer events (like tap, panMode, longPressStart, ...)
-
AxisChartData
-
This is the base class for axis base charts data
that contains a AFlGridData that holds data for showing grid lines,
also we have minX, maxX, minY, maxY values
we use them to determine how much is the scale of chart,
and calculate x and y according to the scale.
each child have to set it in their constructor.
-
AxisTitles
-
Holds data for showing each side titles (left, top, right, bottom)
-
BackgroundBarChartRodData
-
Holds values to draw a rod in rear of the main rod.
-
BadgeWidgetsDelegate
-
-
BarAreaData
-
-
BarAreaSpotsLine
-
-
BarChart
-
-
BarChartData
-
BarChartWidget needs this class to render itself.
-
BarChartDataTween
-
It lerps a BarChartData to another BarChartData (handles animation for updating values)
-
BarChartGroupData
-
Represents a group of rods (or bars) inside the BarChartWidget.
-
BarChartRodData
-
Holds data about rendering each rod (or bar) in the BarChartWidget.
-
BarChartRodStackItem
-
A colored section of Stacked Chart rod item
-
BarChartState
-
-
BarChartWidget
-
-
BarChartWidgetState
-
-
BarTooltipItem
-
Holds data needed for showing custom tooltip content.
-
BarTouchData
-
Holds data to handle touch events, and touch responses in the BarChartWidget.
-
BarTouchedSpot
-
It gives you information about the touched spot.
-
BarTouchResponse
-
Holds information about touch response in the BarChartWidget.
-
BarTouchTooltipData
-
Holds representation data for showing tooltip popup on top of rods.
-
BaseChartData
-
This class holds all data needed for BaseChartPainter.
-
BaseTouchResponse
-
This class holds the touch response details of charts.
-
BetweenBarsData
-
-
Draws some straight horizontal or vertical lines in the LineChartWidget
-
FlClipData
-
Holds data to clipping chart around its borders.
-
FlDotCirclePainter
-
-
FlDotCrossPainter
-
-
FlDotData
-
-
FlDotPainter
-
-
FlDotSquarePainter
-
-
FlLongPressEnd
-
When a pointer stops contacting the screen after a long press
gesture was detected. Also reports the position where the pointer stopped
contacting the screen.
-
FlLongPressMoveUpdate
-
When a pointer is moving after being held in contact at the same
location for a long period of time. Reports the new position and its offset
from the original down position.
-
FlLongPressStart
-
Called When a pointer has remained in contact with the screen at the
same location for a long period of time.
-
FlPanCancelEvent
-
When the pointer that previously triggered a FlPanStartEvent did not complete.
Inspired from GestureDragCancelCallback
-
FlPanDownEvent
-
When a pointer has contacted the screen and might begin to move
-
FlPanEndEvent
-
When a pointer that was previously in contact with the screen
and moving is no longer in contact with the screen.
-
FlPanStartEvent
-
When a pointer has contacted the screen and has begun to move.
-
FlPanUpdateEvent
-
When a pointer that is in contact with the screen and moving
has moved again.
-
FlPointerEnterEvent
-
The pointer has moved with respect to the device while the pointer is or is
not in contact with the device, and it has entered our chart.
-
FlPointerExitEvent
-
The pointer has moved with respect to the device while the pointer is or is
not in contact with the device, and exited our chart.
-
FlPointerHoverEvent
-
The pointer has moved with respect to the device while the pointer is not
in contact with the device.
-
FlTapCancelEvent
-
When the pointer that previously triggered a FlTapDownEvent will not end up causing a tap.
Inspired from GestureTapCancelCallback
-
FlTapDownEvent
-
When a pointer that might cause a tap has contacted the
screen.
-
FlTapUpEvent
-
When a pointer that will trigger a tap has stopped contacting
the screen.
-
FlTouchData<R extends BaseTouchResponse>
-
Holds data to handle touch events, and touch responses in abstract way.
-
HorizontalLine
-
Holds data for drawing extra horizontal lines.
-
HorizontalLineLabel
-
Draws a title on the HorizontalLine
-
HorizontalRangeAnnotation
-
Defines an annotation region in y (vertical) axis.
-
LineBarSpot
-
-
LineChartBarData
-
-
LineChartData
-
-
LineChartDataTween
-
-
LineChartState
-
-
LineChartStepData
-
-
LineChartWidget
-
-
LineTooltipItem
-
-
LineTouchData
-
-
LineTouchResponse
-
-
LineTouchTooltipData
-
-
PieChartData
-
PieChartWidget needs this class to render itself.
-
PieChartDataTween
-
It lerps a PieChartData to another PieChartData (handles animation for updating values)
-
PieChartSectionData
-
Holds data related to drawing each PieChartWidget section.
-
PieChartState
-
-
PieChartWidget
-
-
PieTouchData
-
Holds data to handle touch events, and touch responses in the PieChartWidget.
-
PieTouchedSection
-
-
PieTouchResponse
-
Holds information about touch response in the PieChartWidget.
-
RadarChart
-
Renders a radar chart as a widget, using provided RadarChartData.
-
RadarChartData
-
RadarChart needs this class to render itself.
-
RadarChartDataTween
-
It lerps a RadarChartData to another RadarChartData (handles animation for updating values)
-
RadarChartState
-
-
RadarChartTitle
-
-
RadarDataSet
-
the data values for drawing RadarChart sections
-
RadarEntry
-
holds the data about each entry or point in RadarChart
-
RadarTouchData
-
Holds data to handle touch events, and touch responses in the RadarChart.
-
RadarTouchedSpot
-
It gives you information about the touched spot.
-
RadarTouchResponse
-
Holds information about touch response in the RadarTouchResponse.
-
RangeAnnotations
-
Holds data for rendering horizontal and vertical range annotations.
-
ScatterChart
-
Renders a pie chart as a widget, using provided ScatterChartData.
-
ScatterChartData
-
ScatterChart needs this class to render itself.
-
ScatterChartDataTween
-
It lerps a ScatterChartData to another ScatterChartData (handles animation for updating values)
-
ScatterChartState
-
-
ScatterLabelSettings
-
Defines information about the labels in the ScatterChart
-
ScatterSpot
-
Defines information about a spot in the ScatterChart
-
ScatterTooltipItem
-
Holds data of showing each item in the tooltip popup.
-
ScatterTouchData
-
Holds data to handle touch events, and touch responses in the ScatterChart.
-
ScatterTouchedSpot
-
Holds the touched spot data
-
ScatterTouchResponse
-
Holds information about touch response in the ScatterChart.
-
ScatterTouchTooltipData
-
Holds representation data for showing tooltip popup on top of spots.
-
ShowingTooltipIndicators
-
-
SideTitleFitInsideData
-
Force child widget to be positioned inside its
corresponding axis bounding box
-
SideTitles
-
Holds data for showing label values on axis numbers
-
SideTitleWidget
-
Wraps a child widget and applies some default behaviours
-
SizedPicture
-
Holds data for showing a vector image inside the chart.
-
TitleMeta
-
Contains meta information about the drawing title.
-
TouchedSpot
-
holds information about touched spot on the axis based charts.
-
TouchedSpotIndicatorData
-
-
TouchLineBarSpot
-
-
VerticalLine
-
Holds data for drawing extra vertical lines.
-
VerticalLineLabel
-
Draws a title on the VerticalLine
-
VerticalRangeAnnotation
-
Defines an annotation region in x (horizontal) axis.
Functions
-
defaultBarTooltipItem(BarChartGroupData group, int groupIndex, BarChartRodData rod, int rodIndex)
→ BarTooltipItem?
-
Default implementation for BarTouchTooltipData.getTooltipItem.
-
defaultGetTitle(double value, TitleMeta meta)
→ Widget
-
The default SideTitles.getTitlesWidget function.
-
defaultGetTouchLineEnd(LineChartBarData barData, int spotIndex)
→ double
-
-
defaultGetTouchLineStart(LineChartBarData barData, int spotIndex)
→ double
-
-
defaultGridLine(double value)
→ AFlLine
-
Returns a grey line for all values.
-
defaultLineTooltipItem(List<LineBarSpot> touchedSpots)
→ List<LineTooltipItem>
-
-
defaultScatterTooltipItem(ScatterSpot touchedSpot)
→ ScatterTooltipItem?
-
Default implementation for ScatterTouchTooltipData.getTooltipItems.
-
defaultTouchedIndicators(LineChartBarData barData, List<int> indicators)
→ List<TouchedSpotIndicatorData>
-
-
getDefaultLabelFunction(int spotIndex, ScatterSpot spot)
→ String
-
It gives you the default label of the spot.
-
getDefaultLabelTextStyleFunction(int spotIndex, ScatterSpot spot)
→ TextStyle?
-
It gives you the default text style of the label for a spot.
-
showAllDots(AFlSpot spot, LineChartBarData barData)
→ bool
-
-
showAllGrids(double value)
→ bool
-
Shows all lines.
-
showAllSpotsBelowLine(AFlSpot spot)
→ bool
-
Typedefs
-
BaseTouchCallback<R extends BaseTouchResponse>
= void Function(AFlTouchEvent, R?)
-
Chart's touch callback.
-
CalculateTouchDistance
= double Function(Offset touchPoint, Offset spotPixelCoordinates)
-
-
CheckToShowDot
= bool Function(AFlSpot spot, LineChartBarData barData)
-
-
CheckToShowGrid
= bool Function(double value)
-
Determines showing or hiding specified line.
-
CheckToShowSpotLine
= bool Function(AFlSpot spot)
-
-
GetBarTooltipItem
= BarTooltipItem? Function(BarChartGroupData group, int groupIndex, BarChartRodData rod, int rodIndex)
-
Provides a BarTooltipItem for showing content inside the BarTouchTooltipData.
-
GetDotColorCallback
= Color Function(AFlSpot, double, LineChartBarData)
-
-
GetDotPainterCallback
= FlDotPainter Function(AFlSpot, double, LineChartBarData, int)
-
-
GetDrawingGridLine
= AFlLine Function(double value)
-
Determines the appearance of specified line.
-
GetLabelFunction
= String Function(int spotIndex, ScatterSpot spot)
-
It gives you the index value as well as the spot and returns the label of the spot.
-
GetLabelTextStyleFunction
= TextStyle? Function(int spotIndex, ScatterSpot spot)
-
It gives you the index value as well as the spot and gets the text style of the label.
-
GetLineTooltipItems
= List<LineTooltipItem?> Function(List<LineBarSpot> touchedSpots)
-
-
GetScatterTooltipItems
= ScatterTooltipItem? Function(ScatterSpot touchedSpot)
-
Provides a ScatterTooltipItem for showing content inside the ScatterTouchTooltipData.
-
GetTitleByIndexFunction
= RadarChartTitle Function(int index, double angle)
-
-
GetTitleWidgetFunction
= Widget Function(double value, TitleMeta meta)
-
It gives you the axis value and gets a String value based on it.
-
GetTouchedSpotIndicator
= List<TouchedSpotIndicatorData?> Function(LineChartBarData barData, List<int> spotIndexes)
-
-
GetTouchLineY
= double Function(LineChartBarData barData, int spotIndex)
-
-
MouseCursorResolver<R extends BaseTouchResponse>
= MouseCursor Function(AFlTouchEvent, R?)
-
It gives you the happened AFlTouchEvent and existed
R
data at the event's location,
then you should provide a MouseCursor to change the cursor at the event's location.
For example you can pass the SystemMouseCursors.click to change the mouse cursor to click.
-
ScatterTouchCallback
= void Function(ScatterTouchResponse)
-
ScatterChart's touch callback.