Beispiel #1
0
 public CandleValue(double open, double high, double low, double close, DateTime start, TimeSpan duration)
 {
     Open     = open;
     High     = high;
     Low      = low;
     Close    = close;
     Start    = ChartDateUtility.DateToValue(start);
     Duration = ChartDateUtility.TimeSpanToValue(duration);
 }
Beispiel #2
0
 public void SetCurveInitialPoint(string category, double x, DateTime y, double pointSize = -1f)
 {
     SetCurveInitialPoint(category, x, ChartDateUtility.DateToValue(y), pointSize);
 }
Beispiel #3
0
        public void AddPointToCategoryRealtime(string category, double x, DateTime y, double slideTime = 0f, double pointSize = -1f)
        {
            double yVal = ChartDateUtility.DateToValue(y);

            AddPointToCategoryRealtime(category, x, (double)yVal, slideTime, pointSize);
        }
Beispiel #4
0
        /// <summary>
        /// adds a point to the category. having the point y value as date
        /// </summary>
        /// <param name="category"></param>
        /// <param name="x"></param>
        /// <param name="y"></param>
        public void AddPointToCategory(string category, double x, DateTime y, double pointSize = -1f)
        {
            double yVal = ChartDateUtility.DateToValue(y);

            AddPointToCategory(category, x, (double)yVal, pointSize);
        }
Beispiel #5
0
        /// <summary>
        /// adds a point to the category. having the point x value as date
        /// <param name="category"></param>
        /// <param name="x"></param>
        /// <param name="y"></param>
        public void AddPointToCategory(string category, DateTime x, double y, double pointSize = -1f)
        {
            double xVal = ChartDateUtility.DateToValue(x);

            AddPointToCategory(category, (double)xVal, y, pointSize);
        }
Beispiel #6
0
 /// <summary>
 /// transform a point from axis units into world space. returns true on success and false on failure (failure should never happen for this implementation)
 /// </summary>
 /// <param name="result"> the resulting world space point</param>
 /// <param name="x">x coordinate in axis units</param>
 /// <param name="y">y coodinate in axis units</param>
 /// <param name="category">for 3d chart specifing a catgory will return a point with the proper depth setting</param>
 /// <returns></returns>
 public bool PointToWorldSpace(out Vector3 result, DateTime x, DateTime y, string category = null)
 {
     return(PointToWorldSpace(out result, ChartDateUtility.DateToValue(x), ChartDateUtility.DateToValue(y), category));
 }
Beispiel #7
0
 public static void AddPointToCategoryWithLabel(GraphChartBase chart, string category, DateTime x, DateTime y, double pointSize = -1, string xLabel = null, string yLabel = null)
 {
     AddPointToCategoryWithLabel(chart, category, ChartDateUtility.DateToValue(x), ChartDateUtility.DateToValue(y), pointSize, xLabel, yLabel);
 }
 public static void AddPointToCategoryWithLabelRealtime(GraphChartBase chart, string category, double x, DateTime y, double slideTime = 0, double pointSize = -1, string xLabel = null, string yLabel = null)
 {
     AddPointToCategoryWithLabelRealtime(chart, category, x, ChartDateUtility.DateToValue(y), slideTime, pointSize, xLabel, yLabel);
 }