Search results

Series customization

Using the following options in SmithchartSeries, you can customize each series in the Smith Chart:

  • Fill - Customizes the fill color for the series.
  • EnableSmartLabels - Places the data labels on the Smith Chart without overlapping with each other.
  • Visibility - Handles the visibility of the series.
  • Opacity - Controls the opacity of the series line.
  • Width - Customizes the width of the series line.
@using Syncfusion.EJ2.Blazor.Charts

<EjsSmithchart>
    <SmithchartSeriesCollection>
        <SmithchartSeries
            Points='@firstTransmissionData'
            Fill="#009933"
            Visibility="visible"
            Opacity="0.75"
            Width="2.5">
            <SmithchartSeriesMarker Visible="true">
                <SmithchartSeriesDataLabel Visible="true"></SmithchartSeriesDataLabel>
            </SmithchartSeriesMarker>
        </SmithchartSeries>
    </SmithchartSeriesCollection>
</EjsSmithchart>

@code {
    public class SmithDataSource
    {
        public double? resistance;
        public double? reactance;
    };
    private List<SmithDataSource> firstTransmissionData = new List<SmithDataSource> {
        new SmithDataSource { resistance= 10, reactance= 25 },
        new SmithDataSource { resistance= 6, reactance= 4.5 },
        new SmithDataSource { resistance= 3.5, reactance= 1.6 },
        new SmithDataSource { resistance= 2, reactance= 1.2 },
        new SmithDataSource { resistance= 1, reactance= 0.8 },
        new SmithDataSource { resistance= 0, reactance= 0.2 }
    };
}

Smith chart with series customization