The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
I am using the syncfusion version 4.4.0.51 and my previuos version is 4.4.0.50
I am using the chart control layoutcompleted event for Setting the series location and series scale max and min value in previous version 4.4.0.50
Now i am updated syncfusion version 4.4.0.50 with 4.4.0.51 ,In that layoutcompleted event calling so may times and program throwing Stackoverflow exception
Below is the code i am calling in layoutcompleted event
"series.ChartSeries.YAxis.Location = new PointF(this.Chart.PrimaryYAxis.Location.X - offset, this.Chart.PrimaryYAxis.Location.Y); series.ChartSeries.YAxis.Size = new SizeF(0, this.Chart.ChartArea.RenderBounds.Height); series.ChartSeries.YAxis.Title = series.ChartSeries.Text; offset += 60;
SetYAxisRange(series); "
private void SetYAxisRange(chartseries series) {
ChartSeries chartSeries = series.ChartSeries;
if (series.YAxisMinValue == 0 && series.YAxisMaxValue == 0 && series.YAxisMinorScaleValue == 0 && series.YAxisMajorScaleValue == 0) { double max = double.MinValue, min = double.MaxValue; for (int i = 0; i < chartSeries.Points.Count; i++) { ChartPoint cp = chartSeries.Points[i]; if (cp.YValues[0] > max) max = cp.YValues[0];