diff --git a/platform/features/plot/res/templates/plot.html b/platform/features/plot/res/templates/plot.html index 4ad14c7f5b..aef04ce9ca 100644 --- a/platform/features/plot/res/templates/plot.html +++ b/platform/features/plot/res/templates/plot.html @@ -153,7 +153,7 @@ class="gl-plot-tick gl-plot-x-tick-label" ng-show="$index > 0 && $index < (subplot.getDomainTicks().length - 1)" ng-style="{ left: (100 * $index / (subplot.getDomainTicks().length - 1)) + '%' }"> - {{tick.label}} + {{tick.label | reverse}}
diff --git a/platform/features/plot/src/elements/PlotTickGenerator.js b/platform/features/plot/src/elements/PlotTickGenerator.js index d916e8cf36..8fa957fae7 100644 --- a/platform/features/plot/src/elements/PlotTickGenerator.js +++ b/platform/features/plot/src/elements/PlotTickGenerator.js @@ -57,19 +57,12 @@ define( PlotTickGenerator.prototype.generateTicks = function (start, span, count, format) { var step = span / (count - 1), result = [], - tickVal = '', i; for (i = 0; i < count; i += 1) { - tickVal = format(i * step + start); - if (tickVal !== undefined) { - // Make the tick value have its ellipsis on the least significant left side by reversing it here, - // and then reversing it again via CSS. - tickVal = tickVal.toString().split('').reverse().join(''); - } result.push({ //If data to show, display label for each tick line, otherwise show lines but suppress labels. - label: span > 0 ? tickVal : '' + label: span > 0 ? format(i * step + start) : '' }); }