Series.ChartArea Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the name of the ChartArea object used to plot the data series, if any.
public:
property System::String ^ ChartArea { System::String ^ get(); void set(System::String ^ value); };
[System.ComponentModel.Bindable(true)]
[System.ComponentModel.TypeConverter(typeof(System.Web.UI.DataVisualization.Charting.SeriesAreaNameConverter))]
public string ChartArea { get; set; }
[<System.ComponentModel.Bindable(true)>]
[<System.ComponentModel.TypeConverter(typeof(System.Web.UI.DataVisualization.Charting.SeriesAreaNameConverter))>]
member this.ChartArea : string with get, set
Public Property ChartArea As String
Property Value
A string
value that represents a ChartArea object, which is used to plot the series.
- Attributes
Examples
' Create a new legend and associate three series with the legend.
Public Sub CreateSecondLegend()
' Attach the first series to a chart area.
Chart1.Series["Series1"].ChartArea = "Chart Area 1";
' Attach the second series to a chart area.
Chart1.Series["Series2"].ChartArea = "Chart Area 2";
End Sub 'CreateSecondLegend
// Create a new legend and associate three series with the legend.
public void CreateSecondLegend()
{
// Attach the first series to a chart area.
Chart1.Series["Series1"].ChartArea = "Chart Area 1";
// Attach the second series to a chart area.
Chart1.Series["Series2"].ChartArea = "Chart Area 2";
}
Remarks
When a series is added at both design time and run time, it is automatically assigned to the "Default" ChartArea object, or the first available chart area in the ChartAreaCollection if "Default" does not exist.
Set this property to a zero-length string if you do not want the series to be plotted.
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기