Synthèse
The ListCharts function returns a list of chart objects stored in the metadata of a geodatabase dataset.
Syntaxe
ListCharts (datasetName, {wildcard})
Paramètre | Explication | Type de données |
datasetName | The path to the dataset. | String |
wildcard | A combination of asterisks (*) and characters can be used to limit the resulting list. The wildcard is based on the chart name and is not case sensitive. (La valeur par défaut est None) | String |
Type de données | Explication |
List | A list of chart objects. |
Exemple de code
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")
Vous avez un commentaire à formuler concernant cette rubrique ?