You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
a SideTitles that holds data to draw bottom titles
SideTitles(reservedSize: 22, showTitles: true)
SideTitles
PropName
Description
default value
showTitles
determines whether to show or hide the titles
false
getTitles
a function to retrieve the title with given value on the related axis, don't touch it if you want to have a number formatter by showing indicators for large numbers.
interval to display each title on a side, left it null to be calculate automatically
null
rotateAngle
the clockwise angle of rotating title in degrees
0.0
checkToShowTitle
determines show or not show titles in the provided value
show all
FlTouchInput
an abstract class that contains a Offset with x and y of touched point, there is some concrete classes to distinguish between touch behaviours,
currently we have these touch behaviors:
FlLongPressStart, FlLongPressMoveUpdate, FlLongPressEnd, FlPanStart, FlPanMoveUpdate, FlPanEnd.
AxisChart (Line and Bar Charts)
FlGridData
PropName
Description
default value
show
determines to show or hide the background grid data
true
drawHorizontalLine
determines to show or hide the horizontal grid lines
true
horizontalInterval
interval space of grid, left it null to be calculate automatically
null
getDrawingHorizontalLine
a function to get the line style of each grid line by giving the related axis value
defaultGridLine
checkToShowHorizontalLine
a function to check whether to show or hide the horizontal grid by giving the related axis value
showAllGrids
drawVerticalLine
determines to show or hide the vertical grid lines
false
verticalInterval
interval space of grid, left it null to be calculate automatically
null
getDrawingVerticalLine
a function to get the line style of each grid line by giving the related axis value
defaultGridLine
checkToShowVerticalLine
a function to determine whether to show or hide the vertical grid by giving the related axis value
showAllGrids
FlSpot
PropName
Description
default value
x
represents x on the coordinate system (x starts from left)
null
y
represents y on the coordinate system (y starts from bottom)
null
FlLine
propName
Description
default value
color
determines the color of line
Colors.black
strokeWidth
determines the stroke width of the line
2
dashArray
A circular array of dash offsets and lengths. For example, the array [5, 10] would result in dashes 5 pixels long followed by blank spaces 10 pixels long. The array [5, 10, 5] would result in a 5 pixel dash, a 10 pixel gap, a 5 pixel dash, a 5 pixel gap, a 10 pixel dash, etc.