ListCharts

摘要

ListCharts 函数可返回存储在地理数据库数据集元数据中的一列图表对象。

语法

ListCharts (datasetName, {wildcard})
参数说明数据类型
datasetName

The path to the dataset.

String
wildcard

A wildcard is based on the chart title and is not case sensitive. A combination of asterisks (*) and characters can be used to help limit the resulting list.

(默认值为 None)

String
返回值
数据类型说明
List

图表对象的列表。

代码示例

ListCharts 示例

从要素类的元数据中检索图表,并将第一个图表导出到 .svg 文件。

import arcpy

charts = arcpy.charts.ListCharts(r"c:\census.gdb\counties")
bar = charts[0]
bar.exportToSVG("bar.svg")

在本主题中