kPlotlyDefaultCellHeight top-level constant

Map<FluentPlotlyChartKind, double> const kPlotlyDefaultCellHeight

The default cell height per routed chart kind, in logical pixels.

Every shell chart takes its size from its BoxConstraints (spec ยง2.2), so upstream's height: input.layout?.height ?? N becomes the cell's SizedBox. The defaults are PlotlySchemaAdapter.ts:1584 (VSBC and the fallback), :1772 (GVBC), :1892 (the histogram's vertical bar chart), :2172 (area, line, scatter), :2263 (HBWA), :2382 (gantt), :2613 (heatmap) and :2709 (sankey). The shell-free kinds are absent because their transformers take height directly.

Implementation

const Map<FluentPlotlyChartKind, double> kPlotlyDefaultCellHeight =
    <FluentPlotlyChartKind, double>{
      FluentPlotlyChartKind.area: 350,
      FluentPlotlyChartKind.fallback: 350,
      FluentPlotlyChartKind.gantt: 350,
      FluentPlotlyChartKind.groupedVerticalBar: 350,
      FluentPlotlyChartKind.heatmap: 350,
      FluentPlotlyChartKind.horizontalBar: 450,
      FluentPlotlyChartKind.line: 350,
      FluentPlotlyChartKind.sankey: 468,
      FluentPlotlyChartKind.scatter: 350,
      FluentPlotlyChartKind.verticalBar: 350,
      FluentPlotlyChartKind.verticalStackedBar: 350,
    };