Interface MetricUSStateMapProps

Hierarchy

  • Omit<USStateMapProps, "getRegionUrl" | "getTooltip">
    • MetricUSStateMapProps

Properties

getFillColor?: ((regionId: string) => string)

Type declaration

    • (regionId: string): string
    • Function that returns the fill color for a region's shape, given the region's regionId.

      Returns

      Fill color for the region.

      Parameters

      • regionId: string

        RegionId of the region for which to get the fill color.

      Returns string

getTooltip?: ((region: Region) => ReactNode)

Type declaration

    • (region: Region): ReactNode
    • Function that returns tooltip content for a given region.

      Returns

      Tooltip content for the region.

      Parameters

      • region: Region

        Region for which to get tooltip content.

      Returns ReactNode

highlightedRegion?: Region

Region to highlight on the map by rendering the shape with an outline.

metric: string | Metric

Metric represented by the map's coloring.

regionDB: RegionDB

Region DB instance. Used for generating region links, coloring the map, etc.

showBorderingStates?: boolean

Show the shapes of the bordering states.

Default

true

showCounties?: boolean

Show the county shapes.

Default

true

stateRegionId: string

RegionId of the state being mapped.

width?: number

Width of the SVG containing the map.

Generated using TypeDoc