Map Traces

  • The data that describes the choropleth value-to-color mapping is set in z.

    The geographic locations corresponding to each value in z are set in locations.

    See also

    Documentation for Python, JavaScript or R
    See more

    Declaration

    Swift

    public struct Choropleth<LocationsData, ZData> : Trace, GeoSubplot where LocationsData : Plotable, ZData : Plotable
  • GeoJSON features to be filled are set in geojson The data that describes the choropleth value-to-color mapping is set in locations and z.

    See also

    Documentation for Python, JavaScript or R
    See more

    Declaration

    Swift

    public struct ChoroplethMapbox<LocationsData, ZData> : Trace, MapboxSubplot where LocationsData : Plotable, ZData : Plotable
  • The data visualized as scatter point or lines on a geographic map is provided either by longitude/latitude pairs in lon and lat respectively or by geographic location IDs or names in locations.

    See also

    Documentation for Python, JavaScript or R
    See more

    Declaration

    Swift

    public struct ScatterGeo<CoordinateData, LocationsData> : Trace, GeoSubplot where CoordinateData : Plotable, LocationsData : Plotable
  • The data visualized as scatter point, lines or marker symbols on a Mapbox GL geographic map is provided by longitude/latitude pairs in lon and lat.

    See also

    Documentation for Python, JavaScript or R
    See more

    Declaration

    Swift

    public struct ScatterMapbox<CoordinateData> : Trace, MapboxSubplot where CoordinateData : Plotable
  • Draws a bivariate kernel density estimation with a Gaussian kernel from lon and lat coordinates and optional z values using a colorscale.

    See also

    Documentation for Python, JavaScript or R
    See more

    Declaration

    Swift

    public struct DensityMapbox<CoordinateData, ZData> : Trace, MapboxSubplot where CoordinateData : Plotable, ZData : Plotable