Interface MetricUSNationalMapProps

Hierarchy

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

metric: string | Metric

Metric represented by the map's coloring.

regionDB: RegionDB

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

showCounties?: boolean

Show the county shapes.

Default

false

width?: number

Width of the SVG containing the map.

Generated using TypeDoc