GraphSelectionSpec.fromJson constructor

GraphSelectionSpec.fromJson(
  1. Json j
)

Implementation

factory GraphSelectionSpec.fromJson(Json j) => GraphSelectionSpec(
      on: _s(j['on'], 'none'),
      by: _s(j['by'], 'row'),
      dim: _d(j['dim'], 0.35),
      band: j['band'] == null ? null : graphColor(j['band'], const Color(0x14000000)),
      grow: _d(j['grow'], 4),
      dot: _d(j['dot'], 4),
      tooltip: _b(j['tooltip'], true),
      title: _s(j['title'], ''),
      tooltipFill: j['tooltipFill'] == null ? null : graphColor(j['tooltipFill'], const Color(0xFF111827)),
      tooltipText: j['tooltipText'] == null ? null : graphColor(j['tooltipText'], const Color(0xFFFFFFFF)),
      total: _b(j['total'], false),
    );