internal object GetYJson(JQChart chart) { if (this.YDate.HasValue) { string text = string.Format("Date.UTC({0},{1},{2})", this.YDate.Value.Year, this.YDate.Value.Month - 1, this.YDate.Value.Day); chart.AddJsonReplacement(string.Format("\"{0}\"", text), text); return(text); } return(this.Y); }
internal object GetXJson(JQChart chart) { if (this.XDate.HasValue) { string text = string.Format("Date.UTC({0},{1},{2})", this.XDate.Value.Year, this.XDate.Value.Month - 1, this.XDate.Value.Day); chart.AddJsonReplacement(string.Format("\"{0}\"", text), text); return(text); } if (!string.IsNullOrEmpty(this.Text)) { return(this.Text); } return(this.X); }
internal object GetYJson(JQChart chart) { if (this.YDate.HasValue) { string text = string.Format("Date.UTC({0},{1},{2})", this.YDate.Value.Year, this.YDate.Value.Month - 1, this.YDate.Value.Day); chart.AddJsonReplacement(string.Format("\"{0}\"", text), text); return text; } return this.Y; }
internal object GetXJson(JQChart chart) { if (this.XDate.HasValue) { string text = string.Format("Date.UTC({0},{1},{2})", this.XDate.Value.Year, this.XDate.Value.Month - 1, this.XDate.Value.Day); chart.AddJsonReplacement(string.Format("\"{0}\"", text), text); return text; } if (!string.IsNullOrEmpty(this.Text)) { return this.Text; } return this.X; }