public override async Task <SnapshotCurveChart> MapToSnapshot(TCurveChart curveChart) { var snapshot = await SnapshotFrom(curveChart); await _chartMapper.MapToSnapshot(curveChart, snapshot); snapshot.Axes = await _axisMapper.MapToSnapshots(curveChart.Axes); snapshot.Curves = await _curveMapper.MapToSnapshots(curveChart.Curves); return(snapshot); }
public override async Task <SnapshotPopulationAnalysisChart> MapToSnapshot(ModelPopulationAnalysisChart populationAnalysisChart) { var snapshot = await SnapshotFrom(populationAnalysisChart, x => { x.Type = populationAnalysisChart.AnalysisType; x.XAxisSettings = populationAnalysisChart.PrimaryXAxisSettings; x.YAxisSettings = populationAnalysisChart.PrimaryYAxisSettings; x.SecondaryYAxisSettings = populationAnalysisChart.SecondaryYAxisSettings.ToArray(); }); await _chartMapper.MapToSnapshot(populationAnalysisChart, snapshot); snapshot.Analysis = await _populationAnalysisMapper.MapToSnapshot(populationAnalysisChart.BasePopulationAnalysis); snapshot.ObservedDataCollection = await _observedDataCollectionMappper.MapToSnapshot(populationAnalysisChart.ObservedDataCollection); return(snapshot); }