Skip to content

VS-08 Analysis Vertical Slice v1 (One Chart + Filter + Quota Display) #44

Open

Description

@CherryClairette

What to build

Two analysis modes: time-series for a single zone (score evolution over selected period), and multi-zone comparison for a given period. Indicators are a fixed set of 6 — not open-ended. No quota or premium logic.

APIs
GET /v1/zones/{zone_id}?from={bucket_id}&to={bucket_id}
GET /v1/zones/compare?zone_ids=...&indicators=...&period={bucket_id}

Indicators (fixed — no others)
score_global · human_pressure · vegetation · biodiversity · dynamic · protection

Acceptance criteria

  • Time-series mode: user selects one zone + one indicator → line chart over selected period
  • Comparison mode: user selects 2+ zones + one period → bar/table comparing selected indicators
  • Indicator selector shows exactly the 6 known fields — no open list
  • Period selector reuses VS-16 granularity (Monthly/Bimonthly/Yearly)
  • Empty, loading, API error states all handled and distinct
  • Chart data transforms live in a service layer (src/features/analysis/services/), not in the component

Blocked by

VS-07 Map Core v1
VS-16 Temporal Nav

Metadata

Metadata

Labels

featureExtra attention is needed

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions