Chart.RenderType Property

.NET Framework (current version)
 

Gets or sets the rendering method used to display a chart image.

Namespace:   System.Web.UI.DataVisualization.Charting
Assembly:  System.Web.DataVisualization (in System.Web.DataVisualization.dll)

[BindableAttribute(true)]
[PersistenceModeAttribute(PersistenceMode.Attribute)]
public RenderType RenderType { get; set; }

Property Value

Type: System.Web.UI.DataVisualization.Charting.RenderType

A RenderType enumeration value that represents the rendering method used to display a chart image.

The following list describes the three ways in which a chart image can be rendered:

  • The ImageTag render type causes a temporary file to be saved to disk at the server. The chart is displayed at the client side using an <IMG> tag, with its SRC attribute set to the URL specified by the ImageLocationproperty.

  • If the BinaryStreaming render type is specified, there are no temporary image files at the server. Instead, the chart image is sent as a binary stream, and is displayed using an <IMG> tag with its SRC attribute set to another .aspx page that is responsible for generating the chart image.

  • A render type of ImageMap causes an image map to be created, but does not result in the display of an actual chart image. This option should only be taken when using an image map that has a render type of BinaryStreaming.

Note that you can control how temporary image files are saved to disk using the ImageLocationproperty.

.NET Framework
Available since 4.0
Return to top
Show: