public CurveChart(ValueRow source, ChartBrush brush) { if (source == null) { throw new ArgumentNullException("source"); } this._source = source; _source.Change += _source_Change; this._brush = brush != null ? brush : new ChartBrush(0, 0, 0); }
/// <summary> /// Add prices object to chart /// </summary> /// <param name="bars">Price bars</param> /// <param name="brush">Brush</param> /// <param name="isLeftAxis">Left or right Y-axis</param> public void AddPrices(BarRow bars, ChartBrush brush, bool isLeftAxis = false) { if (bars.Dates != _timeline) { throw new Exception("Timeline incorrect."); } PriceChart vis = new PriceChart(bars, brush); vis.Changed += vis_Changed; if (isLeftAxis) { _leftVisuals.Add(_visualKey++, vis); } else { _rightVisuals.Add(_visualKey++, vis); } }
public SeriesChart(SeriesRow row, ChartBrush brush) { _row = row; _brush = brush; }
public PriceChart(BarRow bars, ChartBrush brush) { this._bars = bars; this._bars.OnChangeBar += bars_OnChangeBar; this._brush = brush; }