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
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- DChartBarO
Constructors
-
DChartBarO({Key? key, required List<
OrdinalGroup> groupList, bool animate = false, ConfigRenderBar configRenderBar = const ConfigRenderBar(), Duration animationDuration = const Duration(milliseconds: 300), DomainAxis? domainAxis, MeasureAxis? measureAxis, MeasureAxis? secondaryMeasureAxis, AreaColorO? areaColor, FillPatternO? fillPattern, FillColorO? fillColor, DashPatternO? dashPattern, String barLabelValue(OrdinalGroup group, OrdinalData data, int? index)?, bool vertical = true, bool? flipVertical, LayoutMargin? layoutMargin, bool allowSliding = false, void onUpdatedListener(OrdinalData data)?, void onChangedListener(OrdinalData data)?}) -
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 inmeasueAxis
default: falsefinal - animate → bool
-
animate chart when build
default: falsefinal - 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 betrue
final - barLabelValue → String Function(OrdinalGroup group, OrdinalData data, int? index)?
-
set custom format value for label bar
final
- configRenderBar → ConfigRenderBar
-
style bar
final
- dashPattern → DashPatternO?
-
set pattern
specify for line patternfinal - domainAxis → DomainAxis?
-
customize domain axis
final
- fillColor → FillColorO?
-
set fill chart where has fill box like bar
default: based on Group colorfinal - fillPattern → FillPatternO?
-
custom fill pattern
default: solidfinal - flipVertical → bool?
-
when
vertical
is false, you can flip sort domain
top down or bottom upfinal -
groupList
→ List<
OrdinalGroup> -
group
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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 sidefinal - measureAxis → MeasureAxis?
-
customize measure axis
final
- onChangedListener → void Function(OrdinalData data)?
-
listen which data is changed selected
final
- onUpdatedListener → void Function(OrdinalData data)?
-
listen which data is selected
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- secondaryMeasureAxis → MeasureAxis?
-
customize secondary measure axis
final
- vertical → bool
-
set direction length bar to vertical
default: truefinal
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, int wrapWidth = 65}) → 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