Chart Class
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.
Displays data in the form of a graphical chart.
public class Chart
type Chart = class
Public Class Chart
- Inheritance
-
Chart
Constructors
Chart(Int32, Int32, String, String) |
Initializes a new instance of the Chart class. |
Properties
FileName |
Gets or sets the name of the file that contains the chart image. |
Height |
Gets or sets the height, in pixels, of the chart image. |
Width |
Gets or set the width, in pixels, of the chart image. |
Methods
AddLegend(String, String) |
Adds a legend to the chart. |
AddSeries(String, String, String, String, String, Int32, IEnumerable, String, IEnumerable, String) |
Provides data points and series attributes for the chart. |
AddTitle(String, String) |
Adds a title to the chart. |
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) |
Creates and binds series data to the specified data table, and optionally populates multiple x-values. |
GetBytes(String) |
Returns a chart image as a byte array. |
GetFromCache(String) |
Retrieves the specified chart from the cache. |
Save(String, String) |
Saves a chart image to the specified file. |
SaveToCache(String, Int32, Boolean) |
Saves a chart in the system cache. |
SaveXml(String) |
Saves a chart as an XML file. |
SetXAxis(String, Double, Double) |
Sets values for the horizontal axis. |
SetYAxis(String, Double, Double) |
Sets values for the vertical axis. |
ToWebImage(String) |
Creates a WebImage object based on the current Chart object. |
Write(String) |
Renders the output of the Chart object as an image. |
WriteFromCache(String, String) |
Renders the output of a Chart object that has been cached as an image. |