2014-12-01 17:41:39 +00:00
|
|
|
<div class="gl-plot"
|
|
|
|
ng-controller="TelemetryController as telemetry">
|
|
|
|
<span ng-controller="PlotController as plot"
|
|
|
|
ng-mouseleave="representation.showControls = false">
|
|
|
|
|
|
|
|
<div class="gl-plot-legend">
|
|
|
|
<span class='plot-legend-item'
|
|
|
|
ng-repeat="telemetryObject in telemetry.getTelemetryObjects() track by $index">
|
|
|
|
<span class='plot-color-swatch' ng-style="{ 'background-color': plot.getColor($index) }"></span>
|
|
|
|
<span class='title-label'>{{telemetryObject.getModel().name}}</span>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="gl-plot-coords"
|
|
|
|
ng-if="representation.showControls">
|
|
|
|
{{plot.getHoverCoordinates().join(', ')}}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="gl-plot-axis-area gl-plot-y">
|
|
|
|
|
|
|
|
<div class="gl-plot-label gl-plot-y-label"
|
|
|
|
ng-show="!representation.showControls">
|
|
|
|
{{axes[1].active.name}}
|
|
|
|
</div>
|
|
|
|
|
2014-12-02 00:35:38 +00:00
|
|
|
<div ng-repeat="tick in rangeTicks"
|
2014-12-01 17:41:39 +00:00
|
|
|
class="gl-plot-tick gl-plot-y-tick-label"
|
2014-12-02 00:35:38 +00:00
|
|
|
ng-style="{ bottom: (100 * $index / (rangeTicks.length - 1)) + '%' }">
|
2014-12-01 17:41:39 +00:00
|
|
|
{{tick.label}}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="gl-plot-y-options gl-plot-local-controls"
|
|
|
|
ng-show="representation.showControls"
|
|
|
|
ng-if="axes[1].options.length > 0">
|
|
|
|
<div class='form-control shell select'>
|
|
|
|
<select class="form-control input shell select"
|
|
|
|
ng-model="axes[1].active"
|
|
|
|
ng-options="option.name for option in axes[1].options">
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="gl-plot-display-area"
|
|
|
|
ng-mouseenter="representation.showControls = true">
|
|
|
|
|
|
|
|
|
|
|
|
<div class="gl-plot-hash hash-v"
|
2014-12-02 00:35:38 +00:00
|
|
|
ng-repeat="tick in domainTicks"
|
|
|
|
ng-style="{ left: (100 * $index / (domainTicks.length - 1)) + '%', height: '100%' }"
|
|
|
|
ng-show="$index > 0 && $index < (domainTicks.length - 1)">
|
2014-12-01 17:41:39 +00:00
|
|
|
</div>
|
|
|
|
<div class="gl-plot-hash hash-h"
|
2014-12-02 00:35:38 +00:00
|
|
|
ng-repeat="tick in rangeTicks"
|
|
|
|
ng-style="{ bottom: (100 * $index / (rangeTicks.length - 1)) + '%', width: '100%' }"
|
|
|
|
ng-show="$index > 0 && $index < (rangeTicks.length - 1)">
|
2014-12-01 17:41:39 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<mct-chart draw="draw"
|
|
|
|
ng-mousemove="plot.hover($event)"
|
|
|
|
ng-mousedown="plot.startMarquee($event)"
|
|
|
|
ng-mouseup="plot.endMarquee($event)">
|
|
|
|
</mct-chart>
|
|
|
|
|
|
|
|
<!-- TODO: Move into correct position; make part of group; infer from set of actions -->
|
|
|
|
<div class="gl-plot-local-controls"
|
|
|
|
style="position: absolute; top: 8px; right: 8px;">
|
|
|
|
|
|
|
|
<a href=""
|
|
|
|
class="t-btn l-btn s-btn s-icon-btn s-very-subtle"
|
|
|
|
ng-click="plot.stepBackPanZoom()"
|
|
|
|
ng-show="plot.isZoomed()"
|
|
|
|
title="Restore previous pan/zoom">
|
2014-12-01 21:04:24 +00:00
|
|
|
<span class="ui-symbol icon"><</span>
|
2014-12-01 17:41:39 +00:00
|
|
|
</a>
|
|
|
|
|
|
|
|
<a href=""
|
|
|
|
class="t-btn l-btn s-btn s-icon-btn s-very-subtle"
|
|
|
|
ng-click="plot.unzoom()"
|
|
|
|
ng-show="plot.isZoomed()"
|
|
|
|
title="Reset pan/zoom">
|
2014-12-01 21:04:24 +00:00
|
|
|
<span class="ui-symbol icon">I</span>
|
2014-12-01 17:41:39 +00:00
|
|
|
</a>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<span class="t-wait-spinner loading" ng-show="telemetry.isRequestPending()">
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="gl-plot-axis-area gl-plot-x">
|
|
|
|
|
2014-12-02 00:35:38 +00:00
|
|
|
<div ng-repeat="tick in domainTicks"
|
2014-12-01 17:41:39 +00:00
|
|
|
class="gl-plot-tick gl-plot-x-tick-label"
|
2014-12-02 00:35:38 +00:00
|
|
|
ng-show="$index > 0 && $index < (domainTicks.length - 1)"
|
|
|
|
ng-style="{ left: (100 * $index / (domainTicks.length - 1)) + '%' }">
|
2014-12-01 17:41:39 +00:00
|
|
|
{{tick.label}}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="gl-plot-label gl-plot-x-label">
|
|
|
|
{{axes[0].active.name}}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="gl-plot-x-options gl-plot-local-controls"
|
|
|
|
ng-show="representation.showControls"
|
|
|
|
ng-if="axes[0].options.length > 0">
|
|
|
|
<div class='form-control shell select'>
|
|
|
|
<select class="form-control input shell select"
|
|
|
|
ng-model="axes[0].active"
|
|
|
|
ng-options="option.name for option in axes[0].options">
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
|