Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
PowerPanel-Frontend/src/app/visualize-all/visualize-all.component.html
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
70 lines (69 sloc)
2.75 KB
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
<div class="container "> | |
<div class="row"> | |
<div class="col-md-12 mx-auto mt-4"> | |
<h4 class="text-center mb-3">Visualization</h4> | |
<p class="text-center">{{laymanDataVal$}} Graph</p> | |
<canvas id="canvas">{{chart}}</canvas> | |
<p id="graphInfo" class="text-left"> | |
Dates: {{startTime$}} - {{endTime$}}<br> | |
Units: {{unit$}}<br> | |
Function: {{function$}}<br> | |
Range: {{range$}}<br> | |
</p> | |
<form id="visToolbar"> | |
<div class="text-center mb3" style="background-color: black; color: white"> | |
<br> | |
<p id="visMessage">Ctrl/Comm+Click to select multiple generators <br> Please select a maximum of 5 generators | |
</p> | |
<select id="gen_select" name="generatorSelect" multiple> | |
<option *ngFor="let generator of generators$" value="{{generator.gen_id}},{{generator.gen_name}}" selected> | |
{{generator.gen_name}}</option> | |
</select> | |
<br><br> | |
<select id="data_select" name="dataSelect"> | |
<option *ngFor="let names of dataNames$" value="{{names}}" selected>{{names}}</option> | |
</select> | |
<br><br> | |
<form style="color:white" action="/action_page.php"> | |
Start Time: | |
<input #start_time type="date" value={{today$}} max={{today$}}> | |
<br><br> | |
End Time: | |
<input #end_time type="date" value={{today$}} max={{today$}}> | |
</form> | |
<br> | |
Downsampling (Optional) | |
<br><br> | |
Function: | |
<select id="func_select" name="functionSelect"> | |
<option value="none" selected>None</option> | |
<option value="sum">Summation</option> | |
<option value="min">Minimum</option> | |
<option value="avg">Average</option> | |
<option value="max">Maximum</option> | |
<option value="count">Count</option> | |
<option value="dev">Deviation</option> | |
</select> | |
<br><br> | |
Range: | |
<select id="func_time_select" name="functionTimeSelect"> | |
<option value="none" selected>None</option> | |
<option value="1h">1 hour</option> | |
<option value="1d">1 day</option> | |
<option value="1w">1 week</option> | |
<option value="1n">1 month</option> | |
<option value="6n">6 months</option> | |
<option value="1y">1 year</option> | |
<option value="5y">5 years</option> | |
</select> | |
<br><br> | |
<p class="text-center mb3" style="color:red" *ngIf="signal">{{errorMessage$}}<br></p> | |
<a class="btn btn-primary" style="color:white" (click)="resetAndRemakeChart()">Visualize</a> | |
<br> | |
<br> | |
</div> | |
<br><br> | |
</form> | |
</div> | |
</div> | |
</div> |