Nevron .NET Vision
Nevron.Chart Namespace / NSeries Class / Labels Property
Example


In This Topic
    Labels Property (NSeries)
    In This Topic
    Gets or sets the labels data series.
    Syntax
    'Declaration
     
    
    <System.ComponentModel.CategoryAttribute("Data Series")>
    <System.ComponentModel.DescriptionAttribute("Labels Data Series")>
    <System.Xml.Serialization.XmlIgnoreAttribute()>
    Public Property Labels As NDataSeriesString
    'Usage
     
    
    Dim instance As NSeries
    Dim value As NDataSeriesString
     
    instance.Labels = value
     
    value = instance.Labels
    [System.ComponentModel.Category("Data Series")]
    [System.ComponentModel.Description("Labels Data Series")]
    [System.Xml.Serialization.XmlIgnore()]
    public NDataSeriesString Labels {get; set;}
    Remarks
    The labels data series is of type string and is used to strore the labels of the data points. The labels can be visualized in the data point labels, the chart legend and the data point tooltips.
    Example
    The following code creates a bar chart with label strings displayed in the data labels and the legend.
    Dim bar As NBarSeries = Chart.Series.Add(SeriesType.Bar)
    bar.AddDataPoint(New NDataPoint(12, "Bar1"))
    bar.AddDataPoint(New NDataPoint(23, "Bar2"))
    bar.AddDataPoint(New NDataPoint(14, "Bar3"))
    bar.DataLabelStyle.Format = "<label>"
    bar.Legend.Mode = SeriesLegendMode.DataPoints
    bar.Legend.Format = "<label>"
    NBarSeries bar = Chart.Series.Add(SeriesType.Bar);
    bar.AddDataPoint(new NDataPoint(12, "Bar1"));
    bar.AddDataPoint(new NDataPoint(23, "Bar2"));
    bar.AddDataPoint(new NDataPoint(14, "Bar3"));
    bar.DataLabelStyle.Format = "<label>";
    bar.Legend.Mode = SeriesLegendMode.DataPoints;
    bar.Legend.Format = "<label>";
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also