public Chart(Table table,string StyleName):base(table.Document)
{
this.TableData .table = table;
this.Document = table.Document ;
this.Styles = new StyleCollection ();
this.ChartStyles = new ChartStyles (this);
this.ChartDoc = new XmlDocument ();
this.NewXmlNode (StyleName);
this.ObjectType = "chart";
this.Document .DocumentMetadata .ObjectCount +=1;
this.ObjectName ="Object "+this.Document .DocumentMetadata .ObjectCount .ToString ();
this.New ();
this.Document .EmbedObjects .Add (this);
}