Skip to content

Add Choropleth Maps and Geographic Data Visualization #275

Description

@cliftonc

Summary

Provide map-based visualizations for geographic data analysis, including choropleth maps (color-coded regions) and geo-scatter plots for location-based metrics.

Current State

No geographic visualization support. Users cannot visualize data on maps despite having location dimensions.

Proposed Features

Choropleth Maps

<ChoroplethChart
  dimension="Sales.country" // or state, postalCode
  measure="Sales.totalRevenue"
  mapType="world" // or 'us-states', 'europe', custom GeoJSON
  colorScale="sequential" // or 'diverging'
/>

Features:

  • Color-coded regions based on measure values
  • Built-in map data: World countries, US states, EU countries
  • Custom GeoJSON/TopoJSON support
  • Click-to-filter integration
  • Hover tooltips with values

Geo-Scatter Plot

<GeoScatterChart
  latDimension="Stores.latitude"
  lngDimension="Stores.longitude"
  sizeMeasure="Stores.salesVolume"
  colorMeasure="Stores.profitMargin"
/>

Features:

  • Plot points on map with lat/lng
  • Size encoding for one measure
  • Color encoding for another measure
  • Clustering for dense areas

Geo Heat Map

  • Density visualization for location data
  • Continuous color gradient
  • Adjustable radius and intensity

Competitor Reference

  • Kepler.gl: "Large-scale WebGL-powered Geospatial Data Visualization Tool"
  • Domo: "Map chart displays information using a geographic map as the backdrop"
  • Google Looker Studio: "Support for BigQuery GEOGRAPHY polygons in choropleth maps"
  • Zoho Analytics: "Geo Data Visualization (Map Charts)"

Technical Approach

  1. Integrate Deck.gl or Mapbox GL for WebGL rendering
  2. Create ChoroplethChart and GeoScatterChart components
  3. Add geographic dimension type with lat/lng or region code support
  4. Bundle common boundary datasets (world, US, EU) or load on demand
  5. Add MapLayer configuration for styling and interactions

Dependencies

  • deck.gl or mapbox-gl for rendering
  • d3-geo for projections
  • topojson-client for boundary data

Labels

enhancement feature-request client visualization

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestp3-lowPriority 3 - LowstaleNo recent activity

    Projects

    Status
    In progress

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions