序列视图Series Views

来源:互联网 发布:农村淘宝400电话 编辑:程序博客网 时间:2024/05/22 14:06
Series Views OverviewDevExpress
  1. 序列视图概览

This document briefly describes the specifics of series view types in XtraCharts.

本文档简单描述XtraCharts中序列的视图类型特性

Depending on the specifics of your chart's underlying data, there are different series view types available. The view type of a series determines the overall look and behavior of a chart's series. It's the view type that allows you to create charts with a large variety of different types.

根据你图表背后数据的特性,有多种不同序列视图类型可供选择。序列的视图类型决定了图表序列的整体外观和行为。视图类型允许你制作多种不同的图表类型。

The series view type is closely connected with the type of the chart's diagram. So, each diagram type is used to plot series of a certain view type only, and the set of options for each diagram type is unique. For the list of diagram types available, refer toDiagram Overview.

序列视图类型与视图的图类型紧密联系。所以,每一个图类型只用来绘制特定视图类型,每一个图类型的选项设置都是独一无二的。对于可用的图类型,参考Diagram Overview。

To simultaneously plot multiple series with different view types, you should ensure that their view types are compatible. By default, a diagram's type is auto-determined by the view type of thefirst visible series in the SeriesCollection. To learn more on the compatibility of different view types, refer toCombining Different Series Views.

要想同时使用不同视图类型绘制多条序列,应该确保各个视图类型是兼容的。默认图类型是由SeriesCollection序列集合器中的第一个可见序列的视图类自动决定的。欲了解更多视图类型的兼容性,参考Combining Different Series Views。

You can define the required view type when you first create a series, or change it on the fly, via theSeriesBase.View property.

可以在第一次新建序列时定义需要的视图类型,或通过SeriesBase.View属性实时改变它。

For detailed instructions, refer to How to: Change the View of a Series.

更多细节指导,参考How to: Change the View of a Series.

Note that at design time, it's only possible to individually determine a view type for a series contained in theChartControl.Series collection. This means that for auto-created series, you can only define a view type individually at runtime. To learn more on this, refer toHow to: Individually Change the View Type of Automatically Created Series.

注意:在设计时,只能单独地设定ChartControl.Series集合器所包含的一个序列的视图类型。也就是说对于自动创建的序列,在运行时你只能单独定义一个视图类型。欲了解更多,参考How to: Individually Change the View Type of Automatically Created Series.

In addition, via the SeriesBase.View property, you can access a series' specific options, available for this view type.

另外,通过SeriesBase.View属性,可以访问对于当前视图类型有效的序列特定选项。

At runtime, you should cast your Series object to the appropriate view type.

在运行时,应该显示转换你的Series  对象为准确的视图类型。

C#
VB
((PieSeriesView)chartControl1.Series[0].View).RuntimeExploding = true;
 
Combining Different Series ViewsDevExpress
  1. 组合不同序列视图

This document describes certain limitations which should be taken into account in order to plot series of different view types together onto the same chart control.

文档描述了一些限制,这些限制应该被考虑到以在同一个图表控件中同时绘制不同视图类型的序列。

With XtraCharts it's possible to combine several series of different view types into a single chart, and show all of them simultaneously. For instance, you may combinebars and lines together, or even show the candlestick chart on the same diagram as shown in the images below.

使用XtraCharts可以联合集中不同视图类型的序列到同一个图表中,并同时显示所有序列。举例来说,可以联合使用条形图和线形图,甚至也可以在同一幅图中显示阴阳烛图,就如下图所示。

However, the following constraint is imposed on the view types of series, in order to plot them together:

NoteNote

Series of different view types can be plotted within the same diagram, if their view types support the samediagram type.

Furthermore, the type of a chart's diagram is determined by the view type of the first visible series in the chart's collection. And, the Diagram object is equal to null (Nothing in Visual Basic) until the chart has at least one series.

Therefore, it's impossible to plot 2D and 3D series within the same chart, and for example, aPie series together with a Bar series: their diagram types are different, so you can only plot two independent chart controls side-by-side.

而且,不能在同一幅图表中同时绘制2D和2D序列。

The following image demonstrates two charts with different diagram types (XY-Diagram andXY-Diagram 3D). And, each chart contains series of different view types, adapted for this diagram type.

The following table lists the available diagram types, and series view types they support.

2D Diagram TypeCompatible Series View TypesSimpleDiagramPie Chart,Doughnut Chart and Funnel ChartSwiftPlotDiagramSwift PlotXYDiagramArea Chart,Bubble Chart, Candle Stick Chart, Full-Stacked Area Chart, Full-Stacked Bar Chart, Full-Stacked Spline Area Chart, Line Chart, Overlapped Range Bar Chart, Point Chart, Scatter Line Chart, Side-by-Side Bar Chart, Side-by-Side Stacked Bar Chart, Side-by-Side Full-Stacked Bar Chart, Side-by-Side Range Bar Chart, Spline Area Chart, Spline Chart, Stacked Area Chart, Stacked Bar Chart, Stacked Spline Area Chart, Step Line Chart and Stock ChartGanttDiagramOverlapped Gantt Chart andSide-by-Side Gantt ChartRadarDiagramRadar Area Chart,Radar Line Chart and Radar Point ChartPolarDiagramPolar Area Chart,Polar Line Chart and Polar Point Chart3D Diagram TypeCompatible Series View TypesSimpleDiagram3DPie Chart andDoughnut ChartXYDiagram3DArea Chart,Full-Stacked Area Chart, Full-Stacked Bar Chart, Full-Stacked Spline Area Chart, Line Chart, Manhattan Bar Chart, Side-by-Side Bar Chart, Side-by-Side Stacked Bar Chart, Side-by-Side Full-Stacked Bar Chart, Spline Area Chart, Spline Chart, Stacked Area Chart, Stacked Bar Chart, Stacked Spline Area Chart and Step Line ChartFunnelDiagram3DFunnel Chart

For more detailed information on each diagram type, refer to the corresponding document in theDiagram section of this help.

NoteNote

Auto-executable sample projects on combining either 2D or 3D series view types are available in the DevExpress Code Central database, and you can download them atHow to combine several charts on a single 2D XY-diagram andHow to combine several charts on a single 3D XY-diagram.

See Also
Manually Create a Series
How to: Change the View of a Series
How to: Individually Change the View Type of Automatically Created Series