Skip to content
On this page

ComposedChart

A chart that combines multiple supported series types.

ComposedChart in FluttyUIComposedChart in FluttyUI dark theme

Import

import 'package:flutter/widgets.dart';
import 'package:fluttyui/fluttyui.dart' as ui;

API Reference

The declarations below match the current FluttyUI source. Types are shown without the optional ui. import prefix.

ComposedChart

const ComposedChart({
  super.key,
  required super.series,
  super.height,
  super.xAxis,
  super.yAxis,
  super.stacked,
  super.includeZero,
  super.padding,
  super.domainPadding,
  super.barWidth,
  super.barSpacing,
  super.barRadius,
  super.showTooltip,
  super.showCrosshair,
  super.showIndicator,
  super.interactive,
  super.interactionMode,
  super.longPressDuration,
  super.enableHover,
  super.enableKeyboard,
  super.drawOn,
  super.replayKey,
  super.persistSelection,
  super.onSelectionChanged,
  super.overlayBuilder,
  super.valueFormatter,
  super.semanticLabel,
  super.animate,
  super.animationDuration,
  super.animationCurve,
});
ParameterTypeRequiredDefault
keyKey?Nonull
seriesList<CompositeSeries>Yes—
heightdoubleNo220
xAxisCompositeAxisNoconst CompositeAxis(showGrid: false)
yAxisCompositeAxisNoconst CompositeAxis()
stackedboolNofalse
includeZerobool?Nonull
paddingEdgeInsetsNoconst EdgeInsets.all(12)
domainPaddingEdgeInsetsNoconst EdgeInsets.all(8)
barWidthdouble?Nonull
barSpacingdoubleNo3
barRadiusdoubleNo4
showTooltipboolNotrue
showCrosshairboolNotrue
showIndicatorboolNotrue
interactiveboolNotrue
interactionModeCompositeInteractionMode?Nonull
longPressDurationDurationNoconst Duration(milliseconds: 150)
enableHoverboolNotrue
enableKeyboardboolNotrue
drawOnboolNotrue
replayKeyObject?Nonull
persistSelectionboolNofalse
onSelectionChangedValueChanged<CompositeSelection?>?Nonull
overlayBuilderCompositeOverlayBuilder?Nonull
valueFormatterString Function(double)?Nonull
semanticLabelString?Nonull
animateboolNotrue
animationDurationDuration?Nonull
animationCurveCurve?Nonull

Application Setup

Place components under FluttyApp to provide theme, navigation, localization, and overlay defaults. Use theme tokens for shared appearance settings.

Source

lib/src/widgets/charts/composed_chart/composed_chart.dart

This reference is generated from the ComposedChart declaration in the FluttyUI core checkout. The component catalog lists the other available building blocks.

DartFlutter

Get started with FluttyUI