Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
RenderType Property

Chart.RenderType Property

.NET Framework 4.6 and 4.5

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 ImageLocation property.

  • 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 ImageLocation property.

.NET Framework

Supported in: 4.6, 4.5, 4
Show:
© 2015 Microsoft