ArcGIS Desktop

  • 文档
  • 支持

  • My Profile
  • 帮助
  • Sign Out
ArcGIS Desktop

ArcGIS Online

专为贵组织打造的制图平台

ArcGIS Desktop

全面的专业性 GIS

ArcGIS Enterprise

面向企业的 GIS

ArcGIS for Developers

用于构建位置感知应用程序的工具

ArcGIS Solutions

适用于行业的免费模板地图和应用程序

ArcGIS Marketplace

获取适用于组织的应用程序和数据

  • 文档
  • 支持
Esri
  • 登录
user
  • 我的个人资料
  • 登出

ArcMap

  • 主页
  • 入门
  • 地图
  • 分析
  • 管理数据
  • 工具
  • 扩展模块

Graph

  • 摘要
  • 说明
  • 属性
  • 方法概述
  • 方法

摘要

图表类有助于您创建不同类型的图表。而且,您可指定常规图表属性,例如标题、图表轴和图例信息。

说明

可借助图表以直观易懂的方式呈现地图要素的相关信息以及它们之间的关系。也可以为非空间表格数据创建图表,并且可以通过图表显示地图中要素的附加信息或以另一种不同的方式显示这些信息。图表与地图是相辅相成的,因为图表简单、直观地传达了通常以数字形式汇总或从表格中发掘的信息。通过图表可以快速轻松地比较各要素,从而深入了解各要素之间的函数关系,由此以可视化方法显示其他方式难以呈现的数据分布、趋势和模式。

属性

属性说明数据类型
graphAxis
(可读写)

设置图表的轴(左、右、下和上)标题。

graphAxis 属性说明

aType

应用于图表且无需考虑图表中系列数目或类型的图表类型属性。graphAxis 属性是常规图表属性。

左

图表左轴的标题。例如,可将 graphAxis[0] 设置为 "Left Axis",以指定左轴的标题。

右

图表右轴的标题。例如,可以将 graphAxis[1] 设置为 "Right Axis",以指定右轴的标题。

下

图表下轴的标题。例如,可以将 graphAxis[2] 设置为 "Bottom Axis",以指定下轴的标题。

上

图表上轴的标题。例如,可以将 graphAxis[3] 设置为 "Top Axis",以指定上轴的标题。

Object
graphPropsGeneral
(可读写)

设置常规属性,如图表的标题、子标题和页脚等。

graphPropsGeneral 属性说明

aType

应用于图表且无需考虑图表中系列数目或类型的图表类型属性。graphPropsGeneral 属性是常规图表属性。

页脚

指定显示在图表页脚中的文本。

子标题

指定显示在图表子标题中的文本。

标题

指定显示在图表标题中的文本。

Object
graphPropsLegend
(可读写)

设置图表中的图例标题。

graphPropsLegend 属性说明

aType

应用于图表且无需考虑图表中系列数目或类型的图表类型属性。graphPropsLegend 属性是常规图表属性。

标题

指定显示在图表的图例标题中的文本。

Object
graphSeries
(可读写)

获得与图表相关的图表系列。图表中有多个系列时,您即可获得与各个系列相关的信息。

Object

方法概述

方法说明
addSeriesAreaHorizontal (dataSrc, fieldX, {fieldY}, {fieldLabel}, {sortType})

创建可添加到图表的新“水平面积图”系列。

addSeriesAreaVertical (dataSrc, fieldY, {fieldX}, {fieldLabel}, {sortType})

创建可添加到图表的新“垂直面积图”系列。

addSeriesBarHorizontal (dataSrc, fieldX, {fieldY}, {fieldLabel}, {sortType})

创建可添加到图表的新“水平条形图”系列。

addSeriesBarMinMax (dataSrc, fieldYMax, fieldYMin, {fieldX}, {fieldLabel}, {sortType})

创建可添加到图表的新“条最小值和最大值图”系列。

addSeriesBarVertical (dataSrc, fieldY, {fieldX}, {fieldLabel}, {sortType})

创建可添加到图表的新“垂直条形图”系列。

addSeriesBoxPlot (dataSrc, fieldValue)

创建可添加到图表的新“箱图”系列。

addSeriesBubble (dataSrc, fieldRadius, fieldY, {fieldX}, {fieldLabel})

创建可添加到图表的新“气泡图”系列。

addSeriesHistogram (dataSrc, fieldValue, countBin)

创建可添加到图表的新“直方图”系列。

addSeriesLineHorizontal (dataSrc, fieldX, {fieldY}, {fieldLabel}, {sortType})

创建可添加到图表的新“水平线图”系列。

addSeriesLineVertical (dataSrc, fieldY, {fieldX}, {fieldLabel}, {sortType})

创建可添加到图表的新“垂直线图”系列。

addSeriesPie (dataSrc, fieldValue, fieldSort, {fieldLabel}, {sortType})

创建可添加到图表的新“饼图”系列。

addSeriesPolar (dataSrc, fieldRadius, {fieldAngle}, {fieldLabel})

创建可添加到图表的新“极线图”系列。

addSeriesScatterPlot (dataSrc, fieldY, {fieldX}, {fieldLabel})

创建可添加到图表的新“散点图”系列。

方法

addSeriesAreaHorizontal (dataSrc, fieldX, {fieldY}, {fieldLabel}, {sortType})
参数说明数据类型
dataSrc

The layer or table containing the data values that will be used to create the graph.

Layer
fieldX

The attribute field that will be used to plot value along the X-axis of the Horizontal Area graph.

Field
fieldY

The attribute field that will be used to plot value along the Y-axis of the Horizontal Area graph.

Field
fieldLabel

The attribute field that will be used to plot labels for data points along the horizontal area in the graph.

Field
sortType

Specify how the data values in the attribute field used for defining the Y-axis will be sorted.

  • VALUE —Sort the data values based on the order of values in the input layer or table. This is the default.
  • ASC —Sort the data values in ascending order (lowest to highest).
  • DESC —Sort the data values in descending order (highest to lowest).

String
addSeriesAreaVertical (dataSrc, fieldY, {fieldX}, {fieldLabel}, {sortType})
参数说明数据类型
dataSrc

The layer or table containing the data values that will be used to create the graph.

Layer
fieldY

The attribute field that will be used to plot value along the Y-axis of the Vertical Area graph.

Field
fieldX

The attribute field that will be used to plot value along the X-axis of the Vertical Area graph.

Field
fieldLabel

The attribute field that will be used to plot labels for data points along the vertical area in the graph.

Field
sortType

Specify how the data values in the attribute field used for defining the X-axis will be sorted.

  • VALUE —Sort the data values based on the order of values in the input layer or table. This is the default.
  • ASC —Sort the data values in ascending order (lowest to highest).
  • DESC —Sort the data values in descending order (highest to lowest).
String
addSeriesBarHorizontal (dataSrc, fieldX, {fieldY}, {fieldLabel}, {sortType})
参数说明数据类型
dataSrc

The layer or table containing the data values that will be used to create the graph.

Layer
fieldX

The attribute field that will be used to plot value along the X-axis of the Horizontal Bar graph.

Field
fieldY

The attribute field that will be used to plot value along the Y-axis of the Horizontal Bar graph.

Field
fieldLabel

The attribute field that will be used to plot labels for data points along the horizontal bars in the graph.

Field
sortType

Specify how the data values in the attribute field used for defining the Y-axis will be sorted.

  • VALUE —Sort the data values based on the order of values in the input layer or table. This is the default.
  • ASC —Sort the data values in ascending order (lowest to highest).
  • DESC —Sort the data values in descending order (highest to lowest).
String
addSeriesBarMinMax (dataSrc, fieldYMax, fieldYMin, {fieldX}, {fieldLabel}, {sortType})
参数说明数据类型
dataSrc

The layer or table containing the data values that will be used to create the graph.

Layer
fieldYMax

The attribute field that will be used to plot the maximum value along the Y-axis of the Bar Min and Max graph.

Field
fieldYMin

The attribute field that will be used to plot the minimum value along the Y-axis of the Bar Min and Max graph.

Field
fieldX

The attribute field that will be used to plot value along the X-axis of the Bar Min and Max graph.

Field
fieldLabel

The attribute field that will be used to plot labels for data points along the bars in the graph.

Field
sortType

Specify how the data values in the attribute field used for defining the X-axis will be sorted.

  • VALUE —Sort the data values based on the order of values in the input layer or table. This is the default.
  • ASC —Sort the data values in ascending order (lowest to highest).
  • DESC —Sort the data values in descending order (highest to lowest).
String
addSeriesBarVertical (dataSrc, fieldY, {fieldX}, {fieldLabel}, {sortType})
参数说明数据类型
dataSrc

The layer or table containing the data values that will be used to create the graph.

Layer
fieldY

The attribute field that will be used to plot values along the Y-axis of the Vertical Bar graph.

Field
fieldX

The attribute field that will be used to plot values along the X-axis of the Vertical Bar graph.

Field
fieldLabel

The attribute field that will be used to plot labels for data points along the vertical bars in the graph.

Field
sortType

Specify how the data values in the attribute field used for defining the X-axis will be sorted.

  • VALUE —Sort the data values based on the order of values in the input layer or table. This is the default.
  • ASC —Sort the data values in ascending order (lowest to highest).
  • DESC —Sort the data values in descending order (highest to lowest).
String
addSeriesBoxPlot (dataSrc, fieldValue)
参数说明数据类型
dataSrc

The layer or table containing the data values that will be used to create the graph.

Layer
fieldValue

The attribute field used for plotting the values in the Box Plot graph.

Field
addSeriesBubble (dataSrc, fieldRadius, fieldY, {fieldX}, {fieldLabel})
参数说明数据类型
dataSrc

The layer or table containing the data values that will be used to create the graph.

Layer
fieldRadius

The attribute field that defines the radius of the bubbles in the Bubble graph.

Field
fieldY

The attribute field that will be used to plot values along the Y-axis of the Bubble graph.

Field
fieldX

The attribute field that will be used to plot values along the X-axis of the Bubble graph.

Field
fieldLabel

The attribute field that will be used to plot labels for data points in the graph.

Field
addSeriesHistogram (dataSrc, fieldValue, countBin)
参数说明数据类型
dataSrc

The layer or table containing the data values that will be used to create the graph.

Layer
fieldValue

The attribute field used for displaying the frequency distribution in the bins of the histogram. The height of the bars in a Histogram represent a frequency count of the number of items falling into each bin.

Field
countBin

The number of bins in the histogram.

Integer
addSeriesLineHorizontal (dataSrc, fieldX, {fieldY}, {fieldLabel}, {sortType})
参数说明数据类型
dataSrc

The layer or table containing the data values that will be used to create the graph.

Layer
fieldX

The attribute field that will be used to plot value along the X-axis of the Horizontal Line graph.

Field
fieldY

The attribute field that will be used to plot value along the Y-axis of the Horizontal Line graph.

Field
fieldLabel

The attribute field that will be used to plot labels for data points along the horizontal line in the graph.

Field
sortType

Specify how the data values in the attribute field used for defining the Y-axis will be sorted.

  • VALUE —Sort the data values based on the order of values in the input layer or table. This is the default.
  • ASC —Sort the data values in ascending order (lowest to highest).
  • DESC —Sort the data values in descending order (highest to lowest).
String
addSeriesLineVertical (dataSrc, fieldY, {fieldX}, {fieldLabel}, {sortType})
参数说明数据类型
dataSrc

The layer or table containing the data values that will be used to create the graph.

Layer
fieldY

The attribute field that will be used to plot value along the Y-axis of the Vertical Line graph.

Field
fieldX

The attribute field that will be used to plot value along the X-axis of the Vertical Line graph.

Field
fieldLabel

The attribute field that will be used to plot labels for data points along the vertical line in the graph.

Field
sortType

Specify how the data values in the attribute field used for defining the X-axis will be sorted.

  • VALUE —Sort the data values based on the order of values in the input layer or table. This is the default.
  • ASC —Sort the data values in ascending order (lowest to highest).
  • DESC —Sort the data values in descending order (highest to lowest).
String
addSeriesPie (dataSrc, fieldValue, fieldSort, {fieldLabel}, {sortType})
参数说明数据类型
dataSrc

The layer or table containing the data values that will be used to create the graph.

Layer
fieldValue

The attribute field that will be used to plot values or wedges in the Pie graph.

Field
fieldSort

The attribute field that will be used to sort the wedges in an ascending or descending order.

Field
fieldLabel

The attribute field that will be used to plot labels in the Pie graph.

Field
sortType

Specify how the data values will be sorted in the attribute field used for sorting.

  • ASC —Sort the data values in ascending order (lowest to highest). This is the default.
  • DESC —Sort the data values in descending order (highest to lowest).
String
addSeriesPolar (dataSrc, fieldRadius, {fieldAngle}, {fieldLabel})
参数说明数据类型
dataSrc

The layer or table containing the data values that will be used to create the graph.

Layer
fieldRadius

The attribute field whose values are graphed on the radial axis of the Polar graph.

Field
fieldAngle

The attribute field that supplies the angular position for each data point in the Polar graph.

Field
fieldLabel

The attribute field that will be used to plot labels representing data values on the graph.

Field
addSeriesScatterPlot (dataSrc, fieldY, {fieldX}, {fieldLabel})
参数说明数据类型
dataSrc

The layer or table containing the data values that will be used to create the graph.

Layer
fieldY

The attribute field that will be used to plot values along the Y-axis of the Scatterplot graph.

Field
fieldX

The attribute field that will be used to plot values along the X-axis of the Scatterplot graph.

Field
fieldLabel

The attribute field that will be used to plot labels for data points in the graph.

Field

相关主题

  • GraphTemplate
  • 生成图表

ArcGIS Desktop

  • 主页
  • 文档
  • 支持

ArcGIS 平台

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS for Developers
  • ArcGIS Solutions
  • ArcGIS Marketplace

关于 Esri

  • 关于我们
  • 招贤纳士
  • 内部人员博客
  • 用户大会
  • 开发者峰会
Esri
分享您的想法。
© Copyright 2016 Environmental Systems Research Institute, Inc. | 隐私政策 | 法律声明