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); }
public IModel Create(IDataProvider provider, IModelFactoryContainer modelFactoryContainer) { var model = new TimePointModel(provider, modelFactoryContainer); return(model); }