Skip to main content

ListCharts

サマリー

The ListCharts function returns a list of chart objects stored in the metadata of a geodatabase dataset.

構文

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.

The default value is None.

String

戻り値

データ タイプ 説明

List

A list of chart objects.

コードのサンプル

ListCharts example

Retrieve charts from the metadata of a feature class and export the first chart to an .svg file.

import arcpy

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