private IContent CreateChartAxes(XmlNode node)
{
try
{
ChartAxis axes = new ChartAxis (this.Chart .Document ,node);
axes.Chart = this.Chart ;
//axes.Node = node;
ChartStyleProcessor csp = new ChartStyleProcessor (this.Chart );
XmlNode nodeStyle = csp.ReadStyleNode(axes.StyleName);
IStyle style = csp.ReadStyle (nodeStyle,"axes");
ContentCollection iColl = new ContentCollection ();
if (style !=null)
{
axes.Style = style;
this.Chart .Styles .Add (style);
}
foreach(XmlNode nodeChild in axes.Node .ChildNodes )
{
IContent icontent = CreateContent(nodeChild);
if (icontent!= null)
AddToCollection(icontent,iColl);
}
axes.Node.InnerXml ="";
foreach(IContent icontent in iColl)
{
AddToCollection(icontent,axes.Content );
}
return axes;
}
catch(Exception ex)
{
throw new AODLException("Exception while creating the chart axes!", ex);
}
}