Chart Chart Chart Class

Definition

Displays data in the form of a graphical chart.

public class Chart
type Chart = class
Public Class Chart
Inheritance
ChartChartChart

Constructors

Chart(Int32, Int32, String, String) Chart(Int32, Int32, String, String) Chart(Int32, Int32, String, String)

Initializes a new instance of the Chart class.

Properties

FileName FileName FileName

Gets or sets the name of the file that contains the chart image.

Height Height Height

Gets or sets the height, in pixels, of the chart image.

Width Width Width

Gets or set the width, in pixels, of the chart image.

Methods

AddLegend(String, String) AddLegend(String, String) AddLegend(String, String)

Adds a legend to the chart.

AddSeries(String, String, String, String, String, Int32, IEnumerable, String, IEnumerable, String) AddSeries(String, String, String, String, String, Int32, IEnumerable, String, IEnumerable, String) AddSeries(String, String, String, String, String, Int32, IEnumerable, String, IEnumerable, String)

Provides data points and series attributes for the chart.

AddTitle(String, String) AddTitle(String, String) AddTitle(String, String)

Adds a title to the chart.

DataBindCrossTable(IEnumerable, String, String, String, String, String) DataBindCrossTable(IEnumerable, String, String, String, String, String) DataBindCrossTable(IEnumerable, String, String, String, String, String)

Binds a chart to a data table, where one series is created for each unique value in a column.

DataBindTable(IEnumerable, String) DataBindTable(IEnumerable, String) DataBindTable(IEnumerable, String)

Creates and binds series data to the specified data table, and optionally populates multiple x-values.

GetBytes(String) GetBytes(String) GetBytes(String)

Returns a chart image as a byte array.

GetFromCache(String) GetFromCache(String) GetFromCache(String)

Retrieves the specified chart from the cache.

Save(String, String) Save(String, String) Save(String, String)

Saves a chart image to the specified file.

SaveToCache(String, Int32, Boolean) SaveToCache(String, Int32, Boolean) SaveToCache(String, Int32, Boolean)

Saves a chart in the system cache.

SaveXml(String) SaveXml(String) SaveXml(String)

Saves a chart as an XML file.

SetXAxis(String, Double, Double) SetXAxis(String, Double, Double) SetXAxis(String, Double, Double)

Sets values for the horizontal axis.

SetYAxis(String, Double, Double) SetYAxis(String, Double, Double) SetYAxis(String, Double, Double)

Sets values for the vertical axis.

ToWebImage(String) ToWebImage(String) ToWebImage(String)

Creates a WebImage object based on the current Chart object.

Write(String) Write(String) Write(String)

Renders the output of the Chart object as an image.

WriteFromCache(String, String) WriteFromCache(String, String) WriteFromCache(String, String)

Renders the output of a Chart object that has been cached as an image.

Applies to