private async Task updateChartCurves(ModelCurveChart curveChart, IReadOnlyList <Curve> snapshotCurves, SimulationAnalysisContext simulationAnalysisContext) { var curves = await _curveMapper.MapToModels(snapshotCurves, simulationAnalysisContext); curves?.Each(x => curveChart.AddCurve(x, useAxisDefault: false)); }
private async Task updateChartAxes(ModelCurveChart curveChart, IReadOnlyList <Axis> snapshotAxes, SnapshotContext snapshotContext) { var axes = await _axisMapper.MapToModels(snapshotAxes, snapshotContext); axes?.Each(curveChart.AddAxis); }