This repository has been archived by the owner on Aug 21, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from azavea/feature/GraphControls
Feature/graph controls
- Loading branch information
Showing
9 changed files
with
99 additions
and
17 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -3,4 +3,6 @@ | |
|
||
# Node | ||
npm-debug.log | ||
node_modules/ | ||
node_modules/ | ||
|
||
coverage/ |
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
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 |
---|---|---|
@@ -1,13 +1,45 @@ | ||
<div class="chart-heading"> | ||
<h2 class="chart-label"> | ||
<h2 class="chart-label"> | ||
{{indicator}} | ||
</h2> | ||
<div class="chart-actions"> | ||
<button class="button button-link" data-toggle="tooltip" data-placement="bottom" data-delay="300" title="" data-original-title="Export"><i class="icon icon-export"></i></button> | ||
<button class="button button-link" data-toggle="tooltip" data-placement="bottom" data-delay="300" title="" data-original-title="Options"><i class="icon icon-cog"></i></button> | ||
</div> | ||
</h2> | ||
<div class="chart-actions"> | ||
<button class="button button-link" data-toggle="tooltip" data-placement="bottom" data-delay="300" title="" data-original-title="Export"><i class="icon icon-export"></i></button> | ||
<button class="button button-link" data-toggle="tooltip" data-placement="bottom" data-delay="300" title="" data-original-title="Options"><i class="icon icon-cog"></i></button> | ||
</div> | ||
</div> | ||
<div class="chart-body"> | ||
<line-graph [data]="chartData" [indicator]="indicator" [trendline]="trendline"></line-graph> | ||
<button (click)="toggleTrendline()">Trendline</button> | ||
<line-graph | ||
[data]="chartData" | ||
[indicator]="indicator" | ||
[trendline]="trendline" | ||
[min]="min" | ||
[max]="max" | ||
[minVal]="minVal" | ||
[maxVal]="maxVal"> | ||
</line-graph> | ||
</div> | ||
<div class="chart-controls"> | ||
<div class="controls-header"> | ||
<h5 class="controls-label">Options</h5> | ||
<div class="options-icon" (click)="isCollapsed = !isCollapsed"> | ||
<i class="icon-minus" *ngIf="!isCollapsed"></i> | ||
<i class="icon-plus" *ngIf="isCollapsed"></i> | ||
</div> | ||
|
||
</div> | ||
<div class="controls-body" [collapse]="isCollapsed"> | ||
<ui-switch (change)="toggleTrendline()" size="small"></ui-switch>Show Trendline | ||
<ui-switch (change)="toggleMin()" size="small"></ui-switch>Show Min | ||
<input | ||
type="number" | ||
step="any" | ||
placeholder="0" | ||
[(ngModel)]="minVal"> | ||
<ui-switch (change)="toggleMax()" size="small"></ui-switch>Show Max | ||
<input | ||
type="number" | ||
step="any" | ||
placeholder="0" | ||
[(ngModel)]="maxVal"> | ||
</div> | ||
</div> |
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
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
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