Commit 0331a197d79293727692d31ae062c9d5b05ce1d8
1 parent
8c0f5138ea
Exists in
master
add axis selector
Showing 1 changed file with 21 additions and 2 deletions Side-by-side Diff
src/app/component/graph/graph.component.html
View file @
0331a19
| 1 | -<plotly-plot [data]="graph.data" [layout]="graph.layout" [style]="{position: 'relative', width: '100%' , height:'100%'}"> | |
| 2 | - | |
| 3 | -</plotly-plot> | |
| 1 | +<div class="sticky-top" style=" margin-top: -80px;margin-left: 50px;"> | |
| 2 | + <div class="form-row"> | |
| 3 | + <div class="form-group col-md-2 "> | |
| 4 | + <label for="xaxis"></label> | |
| 5 | + <select id="xaxis" class="form-control"> | |
| 6 | + <option selected>Choose x axis</option> | |
| 7 | + <option>...</option> | |
| 8 | + </select> | |
| 9 | + </div> | |
| 10 | + <div class="form-group col-md-2 "> | |
| 11 | + <label for="yaxis"></label> | |
| 12 | + <select id="yaxis" class="form-control"> | |
| 13 | + <option selected>Choose y axis</option> | |
| 14 | + <option>...</option> | |
| 15 | + </select> | |
| 16 | + </div> | |
| 17 | + </div> | |
| 18 | +</div> | |
| 19 | +<plotly-plot [data]="graph.data" [layout]="graph.layout" | |
| 20 | + [style]="{position: 'relative', width: '100%' , height:'100%'}"></plotly-plot> |