header:
  title: Data-test
  description: Make sure multi-chart dashboards load data properly
layout:
  first:
  - type: plotly
    title: Modal split
    datasets:
      dataset:
        file: mode_share.csv
        constant:
          source: Simulated
        aggregate:
          func: SUM
          groupBy:
          - main_mode
          target: share
      modeshareref:
        file: mode_share_ref.csv
        constant:
          source: Reference
        aggregate:
          func: SUM
          groupBy:
          - main_mode
          target: share
    traces:
    - x: $dataset.share
      "y": $dataset.source
      orientation: h
      type: bar
      name: $dataset.main_mode
    layout:
      barmode: stack
    mergeDatasets: true
  - type: plotly
    title: Trip distance distribution
    datasets:
      dataset:
        file: mode_share.csv
        aggregate:
          func: SUM
          groupBy:
          - dist_group
          target: share
      modeshareref:
        file: mode_share_ref.csv
        aggregate:
          func: SUM
          groupBy:
          - dist_group
          target: share
    traces:
    - x: $dataset.dist_group
      "y": $dataset.share
      orientation: v
      type: bar
      name: Simulated
      original_name: Simulated
    - x: $modeshareref.dist_group
      "y": $modeshareref.share
      orientation: v
      type: bar
      name: Reference
      original_name: Reference
    colorRamp: Viridis

