IChart.LoadFromXml

Syntax

LoadFromXml(Xml: String);

Parameters

Xml. The string for loading XML markup.

Description

The LoadFromXml method loads XML markup from a string variable.

Example

Executing the example requires a form, a button named Button1 on the form, the ChartBox and UiChart components and the UiErAnalyzer component named UiErAnalyzer1 that is used as a data source.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    chart: IChart;
Begin
    chart := ChartBox2.Source.GetChart;
    chart.LoadFromXml(ChartBox1.Source.GetChart.SaveToXml);
End Sub Button1OnClick;

Clicking the Button1 button loads settings from the chart displayed in ChartBox1.

See also:

IChart