Search results

Print and Export

Print

The rendered Smith Chart can be printed directly from the browser by calling the public method Print using Smith Chart object.

@using Syncfusion.EJ2.Blazor.Charts

<button @onclick="PrintChart">Print</button>
<EjsSmithchart @ref="smithchart" @ref:suppressField>
    <SmithchartSeriesCollection>
        <SmithchartSeries Name="Transmission1"
                          Points="@firstTransmissionSeries">
        </SmithchartSeries>
    </SmithchartSeriesCollection>
</EjsSmithchart>

@code {
    EjsSmithchart smithchart;
    void PrintChart()
    {
        smithchart.Print();
    }
    public class SmithDataSource
    {
        public double resistance;
        public double reactance;
    };
    private List<SmithDataSource> firstTransmissionSeries = new List<SmithDataSource> {
        new SmithDataSource { resistance= 10, reactance= 25 },
        new SmithDataSource { resistance= 8, reactance= 6 },
        new SmithDataSource { resistance= 6, reactance= 4.5 },
        new SmithDataSource { resistance= 4.5, reactance= 2 },
        new SmithDataSource { resistance= 3.5, reactance= 1.6 },
        new SmithDataSource { resistance= 2.5, reactance= 1.3 },
        new SmithDataSource { resistance= 2, reactance= 1.2 },
        new SmithDataSource { resistance= 1.5, reactance= 1 },
        new SmithDataSource { resistance= 1, reactance= 0.8 },
        new SmithDataSource { resistance= 0.5, reactance= 0.4 },
        new SmithDataSource { resistance= 0.3, reactance= 0.2 },
        new SmithDataSource { resistance= 0.001, reactance= 0.15 }
    };
}

print option in Smith Chart

Export

The rendered Smith Chart can be exported to JPEG , PNG, SVG or PDF formats by using Export method in Smith Chart. Input parameters for this method are export type and file name.

@using Syncfusion.EJ2.Blazor.Charts

<button @onclick="ExportChart">Export</button>
<EjsSmithchart @ref="smithchart" @ref:suppressField>
    <SmithchartSeriesCollection>
        <SmithchartSeries Name="Transmission1"
                          Points="@firstTransmissionSeries">
        </SmithchartSeries>
    </SmithchartSeriesCollection>
</EjsSmithchart>

@code {
    EjsSmithchart smithchart;
    void ExportChart()
    {
        smithchart.Export(SmithchartExportType.PDF, "Smith chart");
    }
    public class SmithDataSource
    {
        public double resistance;
        public double reactance;
    };
    private List<SmithDataSource> firstTransmissionSeries = new List<SmithDataSource> {
        new SmithDataSource { resistance= 10, reactance= 25 },
        new SmithDataSource { resistance= 8, reactance= 6 },
        new SmithDataSource { resistance= 6, reactance= 4.5 },
        new SmithDataSource { resistance= 4.5, reactance= 2 },
        new SmithDataSource { resistance= 3.5, reactance= 1.6 },
        new SmithDataSource { resistance= 2.5, reactance= 1.3 },
        new SmithDataSource { resistance= 2, reactance= 1.2 },
        new SmithDataSource { resistance= 1.5, reactance= 1 },
        new SmithDataSource { resistance= 1, reactance= 0.8 },
        new SmithDataSource { resistance= 0.5, reactance= 0.4 },
        new SmithDataSource { resistance= 0.3, reactance= 0.2 },
        new SmithDataSource { resistance= 0.001, reactance= 0.15 }
    };
}

export option in Smith Chart

Contents
Contents