-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set up the Blazor plot graph to start building the graph for the Rama…
…n spectrometer
- Loading branch information
Showing
7 changed files
with
44 additions
and
7 deletions.
There are no files selected for viewing
Binary file not shown.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
@using ScottPlot | ||
@using ScottPlot.Blazor | ||
|
||
<div class="card full-height"> | ||
<div class="card-header"> | ||
<div class="row"> | ||
<div class="col-6 d-flex align-self-center"> | ||
<h5>RamanGraph</h5> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
|
||
@code { | ||
|
||
BlazorPlot BlazorPlot { get; set; } = new(); | ||
|
||
protected override void OnAfterRender(bool firstRender) | ||
{ | ||
BlazorPlot.Plot.Add.Signal(Generate.Sin()); | ||
BlazorPlot.Plot.Add.Signal(Generate.Cos()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
Basestation_Software.Web/Core/Services/RamanGraphService.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
using ScottPlot.Blazor; | ||
using ScottPlot; | ||
|
||
namespace Basestation_Software.Web.Core.Services | ||
{ | ||
public class RamanGraphService | ||
{ | ||
BlazorPlot BlazorPlot { get; set; } = new(); | ||
|
||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters