AODL.Document.Content.Charts.ChartImporter.CreateChartDataPoint C# (CSharp) Method

CreateChartDataPoint() private method

create the chart data point
private CreateChartDataPoint ( XmlNode node ) : IContent
node System.Xml.XmlNode
return IContent
		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);
			}
		}