LiveCharts.SeriesAlgorithms.VerticalStackedAreaAlgorithm.GetStackedPoint C# (CSharp) Method

GetStackedPoint() protected method

Gets the stacked point.
protected GetStackedPoint ( ChartPoint chartPoint ) : CorePoint
chartPoint ChartPoint The chart point.
return LiveCharts.Dtos.CorePoint
        protected override CorePoint GetStackedPoint(ChartPoint chartPoint)
        {
            if (_stackModelable.StackMode == StackMode.Values)
                return new CorePoint(
                    ChartFunctions.ToDrawMargin(chartPoint.To, AxisOrientation.X, Chart, View.ScalesXAt),
                    ChartFunctions.ToDrawMargin(chartPoint.Y, AxisOrientation.Y, Chart, View.ScalesYAt));

            return new CorePoint(
                ChartFunctions.ToDrawMargin(chartPoint.StackedParticipation, AxisOrientation.X, Chart, View.ScalesXAt),
                ChartFunctions.ToDrawMargin(chartPoint.Y, AxisOrientation.Y, Chart, View.ScalesYAt));
        }