private IContent CreateChartDataPoint(XmlNode node)
{
try
{
ChartDataPoint datapoint = new ChartDataPoint(this.Chart .Document ,node);
//grid.Node = node;
datapoint.Chart = this.Chart ;
ChartStyleProcessor csp = new ChartStyleProcessor (this.Chart );
XmlNode nodeStyle = csp.ReadStyleNode(datapoint.StyleName);
IStyle style = csp.ReadStyle (nodeStyle,"datapoint");
if (style != null)
{
datapoint.Style = style;
this.Chart .Styles .Add (style);
}
return datapoint;
}
catch(Exception ex)
{
throw new AODLException("Exception while creating the chart datapoint!", ex);
}
}