mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Added relative checkbox
This commit is contained in:
@@ -117,7 +117,7 @@ function ($) {
|
|||||||
var seriesHoverInfo = self.getMultiSeriesPlotHoverInfo(plotData, pos);
|
var seriesHoverInfo = self.getMultiSeriesPlotHoverInfo(plotData, pos);
|
||||||
|
|
||||||
seriesHtml = '';
|
seriesHtml = '';
|
||||||
timestamp = dashboard.formatDate(seriesHoverInfo.time);
|
timestamp = dashboard.formatDate(seriesHoverInfo.time,scope.panel.tooltip.relativeTimestamp);
|
||||||
|
|
||||||
for (i = 0; i < seriesHoverInfo.length; i++) {
|
for (i = 0; i < seriesHoverInfo.length; i++) {
|
||||||
hoverInfo = seriesHoverInfo[i];
|
hoverInfo = seriesHoverInfo[i];
|
||||||
|
|||||||
@@ -52,6 +52,10 @@
|
|||||||
text="All series" model="panel.tooltip.shared" change="render()"
|
text="All series" model="panel.tooltip.shared" change="render()"
|
||||||
tip="Show all series on same tooltip and a x croshair to help follow all series">
|
tip="Show all series on same tooltip and a x croshair to help follow all series">
|
||||||
</editor-opt-bool>
|
</editor-opt-bool>
|
||||||
|
<editor-opt-bool
|
||||||
|
text="Relative timestamp" model="panel.tooltip.relativeTimestamp" change="render()"
|
||||||
|
tip="Shows elapsed time in relatively from the current timestamp. For example, 45 mins ago, 1 day 2 hours ago, etc.">
|
||||||
|
</editor-opt-bool>
|
||||||
<div class="editor-option" ng-show="panel.stack">
|
<div class="editor-option" ng-show="panel.stack">
|
||||||
<label class="small">Stacked Values <tip>How should the values in stacked charts to be calculated?</tip></label>
|
<label class="small">Stacked Values <tip>How should the values in stacked charts to be calculated?</tip></label>
|
||||||
<select class="input-small" ng-model="panel.tooltip.value_type" ng-options="f for f in ['cumulative','individual']" ng-change="render()"></select>
|
<select class="input-small" ng-model="panel.tooltip.value_type" ng-options="f for f in ['cumulative','individual']" ng-change="render()"></select>
|
||||||
|
|||||||
Reference in New Issue
Block a user