ChartBehaviour class
Behaviour of the chart isScrollable - If chart is scrollable then width of canvas is ignored and chart will take any size it needs. Chart has to be wrapped with SingleChildScrollView or similar scrollable widget. onItemClicked - Returns index of clicked item.
Constructors
-
ChartBehaviour({ScrollSettings scrollSettings = const ScrollSettings.none(), ValueChanged<
ItemBuilderData> ? onItemClicked, ValueChanged<ItemBuilderData> ? onItemHoverEnter, ValueChanged<ItemBuilderData> ? onItemHoverExit}) -
Default constructor for ChartBehaviour
If chart is scrollable then it will ignore width limit and it should be wrapped in SingleChildScrollView
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isScrollable → bool
-
Return true if chart is currently scrollable
no setter
-
onItemClicked
→ ValueChanged<
ItemBuilderData> ? -
Return index of item clicked. Since graph can be multi value, user
will have to handle clicked index to show data they want to show
final
-
onItemHoverEnter
→ ValueChanged<
ItemBuilderData> ? -
Return index of item clicked. Since graph can be multi value, user
will have to handle clicked index to show data they want to show
final
-
onItemHoverExit
→ ValueChanged<
ItemBuilderData> ? -
Return index of item clicked. Since graph can be multi value, user
will have to handle clicked index to show data they want to show
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scrollSettings → ScrollSettings
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
lerp(
ChartBehaviour a, ChartBehaviour b, double t) → ChartBehaviour - Animate Behaviour from one state to other