Skip to main content

Series

サマリー

The Series class contains properties for configuring series used in combo charts. Use this class in conjunction with the Combo class.

構文

Series(y, seriesType, {aggregation})

名前 説明 データ タイプ

y

The field name for the y-axis variable. If an empty string is specified and the aggregation argument is set to COUNT, the series will reflect the aggregated row count for each x-axis location.

String

seriesType

Specifies the series type.

  • bar—The series will be represented as bars.

  • line—The series will be represented as a line.

String

aggregation

(オプション)

Specifies the statistical calculation that will be applied to values aggregated into each bin.

  • COUNT—The total number of records will be identified and applied.

  • SUM—The sum of all values will be calculated and applied.

  • MEAN—The mean of all values will be calculated and applied.

  • MEDIAN—The median of all values will be identified and applied.

  • MIN—The minimum value will be identified and applied.

  • MAX—The maximum value will be identified and applied.

String

プロパティ

名前 説明 データ タイプ

aggregation

(読み取り/書き込み)

Specifies the statistical calculation that will be applied to values aggregated into each bin.

  • COUNT—The total number of records will be identified and applied.

  • SUM—The sum of all values will be calculated and applied.

  • MEAN—The mean of all values will be calculated and applied.

  • MEDIAN—The median of all values will be identified and applied.

  • MIN—The minimum value will be identified and applied.

  • MAX—The maximum value will be identified and applied.

String

seriesType

(読み取り/書き込み)

Specifies the series type.

  • bar—The series will be represented as bars.

  • line—The series will be represented as a line.

String

y

(読み取り/書き込み)

The field name for the y-axis variable. If an empty string is specified and the aggregation property is set to COUNT, the series will reflect the aggregated row count for each x-axis location.

String

コードのサンプル

Series example

Create a combo chart by configuring Series objects, and export the chart to an .svg file.

import arcpy

seriesLeft = [arcpy.charts.Series(y="", aggregation="count", seriesType="bar")]
seriesRight = [arcpy.charts.Series(y="prcp", aggregation="mean", seriesType="line")]
chart = arcpy.charts.Combo(x="day_for_trips", seriesLeft=seriesLeft, seriesRight=seriesRight,
                           title="Bike Trips and Precipitation",
                           yTitleLeft="Total Rides", yTitleRight="Average Precipitation",
                           dataSource="BikeTripData")
chart.exportToSVG("combo.svg", width=900, height=500)