ChartTopContainer constructor
ChartTopContainer({
- required ChartData chartData,
- LabelLayoutStrategy? xContainerLabelLayoutStrategy,
Simple Legend+X+Y+Data Container for a flutter chart.
The simple flutter chart layout consists of only 2 major areas:
- YContainer area manages and lays out the Y labels area, by calculating sizes required for Y labels (in both X and Y direction). The YContainer
- XContainer area manages and lays out the
- X labels area, and the
- grid area.
In the X direction, takes up all space left after the
YContainer layes out the Y labels area, that is, full width
minus
YContainer.yLabelsContainerWidth
. In the Y direction, takes up all available chart area, except a top horizontal strip, required to paint half of the topmost label.
Implementation
ChartTopContainer({
required ChartData chartData,
strategy.LabelLayoutStrategy? xContainerLabelLayoutStrategy,
}) : data = chartData,
_cachedXContainerLabelLayoutStrategy = xContainerLabelLayoutStrategy,
super();