DChartBarO class

Ordinal Bar Chart
also can use for single other type but cannot be set horizontal measure

  • only bar
  • only line
  • only scatter plot
Inheritance

Constructors

DChartBarO({Key? key, required List<OrdinalGroup> groupList, bool animate = false, ConfigRenderBar? configRenderBar, Duration animationDuration = const Duration(milliseconds: 300), DomainAxis? domainAxis, MeasureAxis? measureAxis, AreaColorO? areaColor, FillPatternO? fillPattern, FillColorO? fillColor, DashPatternO? dashPattern, InsideBarLabelStyleO? insideBarLabelStyle, OutsideBarLabelStyleO? outsideBarLabelStyle, BarLabelValueO? barLabelValue, BarLabelDecorator? barLabelDecorator, bool vertical = true, bool? flipVertical, LayoutMargin? layoutMargin, bool allowSliding = false})
Ordinal Bar Chart
const

Properties

allowSliding bool
give user access to slide chart viewport
set initial viewport in domainAxis
if set true, this will affect to 'measure viewport'. measure viewport will auto adjust depend on min/max from item chart value
To fix this, set viewport in measueAxis
default: false
final
animate bool
animate chart when build
default: false
final
animationDuration Duration
duration animate a chart when build
default: Duration(milliseconds: 300)
final
areaColor AreaColorO?
areaColor returns the area color for a given data value.
If not provided, then group color will be used 10% opacity by default.
Specify for Line type
to activate custom areaColor, ConfigRenderLine -> includeArea must be true
final
barLabelDecorator BarLabelDecorator?
for decoration label, like positioning
final
barLabelValue BarLabelValueO?
set custom format value for label bar
to show this value, set barLabelDecorator not null
final
configRenderBar ConfigRenderBar?
style bar
final
dashPattern DashPatternO?
set pattern
specify for line pattern
final
domainAxis DomainAxis?
customize domain axis
final
fillColor FillColorO?
set fill chart where has fill box like bar
default: based on Group color
final
fillPattern FillPatternO?
custom fill pattern
default: solid
final
flipVertical bool?
when vertical is false, you can flip sort domain
top down or bottom up
final
groupList List<OrdinalGroup>
group
final
hashCode int
The hash code for this object.
no setterinherited
insideBarLabelStyle InsideBarLabelStyleO?
styling label item chart bar
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
layoutMargin LayoutMargin?
margin from outer chart to wrapper box
default: 20px for each side
final
measureAxis MeasureAxis?
customize measure axis
final
outsideBarLabelStyle OutsideBarLabelStyleO?
styling label item chart bar
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
vertical bool
set direction length bar to vertical
default: true
final

Methods

build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
override
createElement() StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

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