Series.ChartArea Proprietà

Definizione

Ottiene o imposta il nome dell'oggetto ChartArea utilizzato per tracciare la serie di dati, se presente.

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

Valore della proprietà

Valore string che rappresenta un ChartArea oggetto utilizzato per tracciare la serie.

Attributi

Esempio

' 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";

}

Commenti

Quando una serie viene aggiunta sia in fase di progettazione che in fase di esecuzione, viene assegnata automaticamente all'oggetto "Default" ChartArea o alla prima area del grafico disponibile in ChartAreaCollection se "Default" non esiste.

Impostare questa proprietà su una stringa di lunghezza zero se non si vuole tracciare la serie.

Si applica a