Esempio n. 1
0
        internal static EChartTimePoint ConvertToEChartTimePoint(TimePointModel point)
        {
            EChartTimePoint pt = new EChartTimePoint();

            pt.X    = point.Time;
            pt.Text = point.Value;

            double number;

            if (double.TryParse(point.Value, out number))
            {
                pt.Y = number;
            }
            pt.Y = number;

            return(pt);
        }
Esempio n. 2
0
        public IModel Create(IDataProvider provider, IModelFactoryContainer modelFactoryContainer)
        {
            var model = new TimePointModel(provider, modelFactoryContainer);

            return(model);
        }