public double GetValue(DevExpress.XamarinForms.Charts.ValueType valueType, int index) { switch (valueType) { case DevExpress.XamarinForms.Charts.ValueType.Value: return(stockPrices[index].Volume); case DevExpress.XamarinForms.Charts.ValueType.High: return(stockPrices[index].High); case DevExpress.XamarinForms.Charts.ValueType.Low: return(stockPrices[index].Low); case DevExpress.XamarinForms.Charts.ValueType.Open: return(stockPrices[index].Open); case DevExpress.XamarinForms.Charts.ValueType.Close: return(stockPrices[index].Close); } return(0); }
public double GetValue(DevExpress.XamarinForms.Charts.ValueType valueType, int index) { return(lastPointValue = lastPointValue + random.NextDouble() - 0.5 + delta); }
public double GetValue(DevExpress.XamarinForms.Charts.ValueType valueType, int index) => values[index];