[Plots] Zooming on plot causes console errors - Duplicates in a repeater are not allowed #2473 (#2474)

This commit is contained in:
Nikhil
2019-09-24 16:33:16 -07:00
committed by Deep Tailor
parent 69b6f8afa9
commit c054914a9c

View File

@ -132,7 +132,7 @@
<mct-ticks axis="yAxis"> <mct-ticks axis="yAxis">
<div ng-repeat="tick in ticks track by tick.text" <div ng-repeat="tick in ticks track by tick.value"
class="gl-plot-tick gl-plot-y-tick-label" class="gl-plot-tick gl-plot-y-tick-label"
ng-style="{ top: (100 * (max - tick.value) / interval) + '%' }" ng-style="{ top: (100 * (max - tick.value) / interval) + '%' }"
title="{{:: tick.fullText || tick.text }}" title="{{:: tick.fullText || tick.text }}"
@ -213,7 +213,7 @@
}"> }">
<mct-ticks axis="xAxis"> <mct-ticks axis="xAxis">
<div ng-repeat="tick in ticks track by tick.text" <div ng-repeat="tick in ticks track by tick.value"
class="gl-plot-tick gl-plot-x-tick-label" class="gl-plot-tick gl-plot-x-tick-label"
ng-style="{ ng-style="{
left: (100 * (tick.value - min) / interval) + '%' left: (100 * (tick.value - min) / interval) + '%'