altair.topo_feature#
- altair.topo_feature(url, feature, **kwargs)#
一个方便的函数,用于从 topojson url 中提取特征。
- 参数:
- urlstring
从中加载数据集的 URL。
- featurestring
要转换为 GeoJSON 特征集合的 TopoJSON 对象集的名称。例如,在世界地图中,可能有一个名为“countries”的对象集。使用 feature 属性,我们可以提取此集合并为每个国家生成一个 GeoJSON 特征对象。
- **kwargs
传递给 TopoDataFormat 的附加关键字