|
| 1 | +@page "/" |
| 2 | + |
| 3 | +<SfSmithchart> |
| 4 | + <SmithchartTitle Text="Impedance Transmission"></SmithchartTitle> |
| 5 | + <SmithchartLegendSettings Visible="true"> |
| 6 | + </SmithchartLegendSettings> |
| 7 | + <SmithchartSeriesCollection> |
| 8 | + <SmithchartSeries Points="PointSeries" Fill="#0F94C4" Name="Tranmission 1"> |
| 9 | + <SmithchartSeriesMarker Visible="true"> |
| 10 | + <SmithchartSeriesDatalabel Visible="true"> |
| 11 | + </SmithchartSeriesDatalabel> |
| 12 | + </SmithchartSeriesMarker> |
| 13 | + <SmithchartSeriesTooltip Visible="true"> |
| 14 | + </SmithchartSeriesTooltip> |
| 15 | + </SmithchartSeries> |
| 16 | + <SmithchartSeries DataSource="@TransmissionSeries" Name="Tranmission 2" |
| 17 | + Resistance="Resistancevalue" Reactance="Reactancevalue" Fill="#EE0C88"> |
| 18 | + <SmithchartSeriesMarker Visible="true"> |
| 19 | + </SmithchartSeriesMarker> |
| 20 | + <SmithchartSeriesTooltip Visible="true"> |
| 21 | + </SmithchartSeriesTooltip> |
| 22 | + </SmithchartSeries> |
| 23 | + </SmithchartSeriesCollection> |
| 24 | +</SfSmithchart> |
| 25 | + |
| 26 | +@code { |
| 27 | + |
| 28 | + public class ChartData |
| 29 | + { |
| 30 | + public double Resistancevalue { get; set; } |
| 31 | + public double Reactancevalue { get; set; } |
| 32 | + } |
| 33 | + |
| 34 | + public List<ChartData> TransmissionSeries = new List<ChartData> |
| 35 | + { |
| 36 | + new ChartData { Resistancevalue= 10, Reactancevalue= 25 }, |
| 37 | + new ChartData { Resistancevalue= 8, Reactancevalue= 6 }, |
| 38 | + new ChartData { Resistancevalue= 6, Reactancevalue= 4.5 }, |
| 39 | + new ChartData { Resistancevalue= 4.5, Reactancevalue= 2 }, |
| 40 | + new ChartData { Resistancevalue= 3.5, Reactancevalue= 1.6 }, |
| 41 | + new ChartData { Resistancevalue= 2.5, Reactancevalue= 1.3 }, |
| 42 | + new ChartData { Resistancevalue= 2, Reactancevalue= 1.2 }, |
| 43 | + new ChartData { Resistancevalue= 1.5, Reactancevalue= 1 }, |
| 44 | + new ChartData { Resistancevalue= 1, Reactancevalue= 0.8 }, |
| 45 | + new ChartData { Resistancevalue= 0.5, Reactancevalue= 0.4 }, |
| 46 | + new ChartData { Resistancevalue= 0.3, Reactancevalue= 0.2 }, |
| 47 | + new ChartData { Resistancevalue= 0.001, Reactancevalue= 0.15 } |
| 48 | + }; |
| 49 | + |
| 50 | + public List<ISmithChartPoint> PointSeries = new List<ISmithChartPoint> |
| 51 | + { |
| 52 | + new ISmithChartPoint { Resistance= 20, Reactance= -50 }, |
| 53 | + new ISmithChartPoint { Resistance= 10, Reactance= -10 }, |
| 54 | + new ISmithChartPoint { Resistance= 9, Reactance= -4.5 }, |
| 55 | + new ISmithChartPoint { Resistance= 8, Reactance= -3.5 }, |
| 56 | + new ISmithChartPoint { Resistance= 7, Reactance= -2.5 }, |
| 57 | + new ISmithChartPoint { Resistance= 6, Reactance= -1.5 }, |
| 58 | + new ISmithChartPoint { Resistance= 5, Reactance= -1 }, |
| 59 | + new ISmithChartPoint { Resistance= 4.5, Reactance= -0.5 }, |
| 60 | + new ISmithChartPoint { Resistance= 2, Reactance= 0.5 }, |
| 61 | + new ISmithChartPoint { Resistance= 1.5, Reactance= 0.4 }, |
| 62 | + new ISmithChartPoint { Resistance= 1, Reactance= 0.4 }, |
| 63 | + new ISmithChartPoint { Resistance= 0.5, Reactance= 0.2 }, |
| 64 | + new ISmithChartPoint { Resistance= 0.3, Reactance= 0.1 }, |
| 65 | + new ISmithChartPoint { Resistance= 0.001, Reactance= 0.05 } |
| 66 | + }; |
| 67 | + |
| 68 | +} |
| 69 | + |
| 70 | + |
0 commit comments