header:
  title: Road Pricing - advanced
  description: Advanced information about the simulated road pricing policy case.
layout:
  first:
  - type: plotly
    title: Modal split
    description: of road pricing area
    datasets:
      dataset:
        file: analysis/roadpricing/mode_share.csv
        constant:
          source: RoadPricing Case
        aggregate:
          target: share
          groupBy:
          - main_mode
          func: SUM
      modeshare:
        file: ../../baseCaseRoadPricing/mode_share.csv
        constant:
          source: Base Case
        aggregate:
          target: share
          groupBy:
          - main_mode
          func: SUM
    traces:
    - x: $dataset.share
      "y": $dataset.source
      orientation: h
      type: bar
      name: $dataset.main_mode
    layout:
      barmode: stack
    mergeDatasets: true
  second:
  - type: sankey
    title: Modal Shift Sankey Diagram
    description: Base case => Road Pricing policy case
    csv: analysis/roadpricing/modalShift.csv
  - type: csv
    title: Mode Statistics
    description: "by main mode, over whole trip (including access & egress)"
    dataset: analysis/roadpricing/trip_stats.csv
    showAllRows: true
  third:
  - type: plotly
    title: Mode usage
    description: Share of persons using a main mode at least once per day.
    datasets:
      dataset:
        file: analysis/roadpricing/mode_users.csv
        constant:
          source: RoadPricing Case
      modeusers:
        file: ../../baseCaseRoadPricing/mode_users.csv
        constant:
          source: Base Case
    traces:
    - x: $dataset.main_mode
      "y": $dataset.user
      orientation: v
      type: bar
      name: $dataset.main_mode
    mergeDatasets: true
    multiIndex:
      main_mode: source
  departures:
  - type: plotly
    title: Departures
    description: by hour and purpose
    datasets:
      dataset: analysis/roadpricing/trip_purposes_by_hour.csv
    traces:
    - x: $dataset.h
      "y": $dataset.departure
      orientation: v
      type: bar
      name: $dataset.purpose
      colorRamp: Spectral
    layout:
      xaxis:
        title: Hour
        color: '#444'
        type: '-'
      barmode: stack
      yaxis:
        title: share
        color: '#444'
        type: '-'
  arrivals:
  - type: plotly
    title: Arrivals
    description: by hour and purpose
    datasets:
      dataset: analysis/roadpricing/trip_purposes_by_hour.csv
    traces:
    - x: $dataset.h
      "y": $dataset.arrival
      orientation: v
      type: bar
      name: $dataset.purpose
      colorRamp: Spectral
    layout:
      xaxis:
        title: Hour
        color: '#444'
        type: '-'
      barmode: stack
      yaxis:
        title: share
        color: '#444'
        type: '-'
