public ChartData AddFun(string name, object fun) { if (Fun == null) { Fun = new Dictionary <string, object>(); } Fun.Add(name, fun); return(this); }