private void UpdateChartData(Instrument instrument, TimeFrame timeFrame) { // Get the data for the chart from the datasource var priceData = _dataManager.GetPriceData(instrument.Symbol, timeFrame); UpdatePriceChart(priceData); UpdateVolumeChart(priceData); _priceSeries.InvalidateParentSurface(RangeMode.ZoomToFit); _volumeSeries.InvalidateParentSurface(RangeMode.ZoomToFit); }
private void ZoomExtents() { _dataSeries.InvalidateParentSurface(RangeMode.ZoomToFitY); }