Exemple #1
0
 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);
 }
Exemple #2
0
 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);
 }
Exemple #3
0
 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;
 }
Exemple #4
0
 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;
 }