ChartSerializer.Save Method (TextWriter)
Saves chart data and properties with non-default values to the given object that is derived from the TextWriter class.
Assembly: System.Web.DataVisualization (in System.Web.DataVisualization.dll)
By default, all chart properties with non-default values, which includes data points, will be serialized when this method is called. To control which chart characteristics are serialized, use the Content, SerializableContent and NonSerializableContent properties.
When you use this definition, the format must be XML; the format can be set with the Format property.
If the ViewStateData property of the Chart control is used to persist state, this method can be used to save the serialized data to an object derived from TextWriter, which is then used to write the data to the ViewStateDataproperty.
Available since 4.0