TimeBinningProperties
サマリー
The TimeBinningProperties class contains properties for configuring time binning used for temporal charts.
構文
TimeBinningProperties({intervalSize}, {intervalUnits}, {timeAggregationType}, {trimIncompleteInterval}, {referenceTime})
| 名前 | 説明 | データ タイプ |
|---|---|---|
|
intervalSize (オプション) |
The span of time that is binned or aggregated together. This value must be used in conjunction with the |
Integer |
|
intervalUnits (オプション) |
Specifies the time unit that corresponds to the
|
String |
|
timeAggregationType (オプション) |
Specifies the time interval alignment type.
|
String |
|
trimIncompleteInterval (オプション) |
Specifies whether incomplete time intervals at the start or end of the data span (depending on the
|
Boolean |
|
referenceTime (オプション) |
The date that binning is initiated. |
DateTime |
プロパティ
| 名前 | 説明 | データ タイプ |
|---|---|---|
|
intervalSize (読み取り/書き込み) |
The span of time that is binned or aggregated together. This property must be used in conjunction with the |
Integer |
|
intervalUnits (読み取り/書き込み) |
Specifies the time unit that corresponds to the
|
String |
|
referenceTime (読み取り/書き込み) |
The date that binning is initiated. |
DateTime |
|
timeAggregationType (読み取り/書き込み) |
Specifies the time interval alignment type.
|
String |
|
trimIncompleteInterval (読み取り/書き込み) |
Specifies whether incomplete time intervals at the start or end of the data span (depending on the
|
Boolean |
コードのサンプル
Use TimeBinningProperties to create a temporal bar chart.
import arcpy
url = r"https://services1.arcgis.com/hLJbHVT9ZrDIzK0I/arcgis/rest/services/CrimesChiTheft/FeatureServer/0"
bins = arcpy.charts.TimeBinningProperties(intervalSize=1, intervalUnits='MONTHS')
bar = arcpy.charts.Bar(x="datetime", aggregation="count", title="Incidents by Month",
timeBinningProperties=bins, dataSource=url)
bar.exportToSVG('temporal_bar.svg', width=800, height=600)