lib/kibana/assets/app/panels/histogram/module.html in kibana-sinatra-0.0.3 vs lib/kibana/assets/app/panels/histogram/module.html in kibana-sinatra-0.0.4
- old
+ new
@@ -43,13 +43,17 @@
<!--<a class='small' ng-click='zoom(0.5)'><i class='icon-zoom-in'></i> Zoom In</a>-->
<a class='small' ng-click='zoom(2)'><i class='icon-zoom-out'></i> Zoom Out</a> | 
</span>
<span ng-show="panel.legend" ng-repeat='series in data' class="histogram-legend">
<i class='icon-circle' ng-style="{color: series.info.color}"></i>
- <span class='small histogram-legend-item'>{{series.info.alias}} ({{series.hits}})</span>
+ <span class='small histogram-legend-item'>
+ <span ng-if="panel.show_query">{{series.info.alias || series.info.query}}</span>
+ <span ng-if="!panel.show_query">{{series.info.alias}}</span>
+ <span ng-show="panel.legend_counts"> ({{series.hits}})</span>
+ </span>
</span>
- <span ng-show="panel.legend" class="small"><span ng-show="panel.value_field && panel.mode != 'count'">{{panel.value_field}}</span> {{panel.mode}} per <strong>{{panel.interval}}</strong> | (<strong>{{hits}}</strong> hits)</span>
+ <span ng-show="panel.legend" class="small"><span ng-show="panel.derivative">change in </span><span class="strong" ng-show="panel.value_field && panel.mode != 'count'">{{panel.value_field}}</span> {{panel.mode}} per <strong>{{panel.interval}}</strong> | (<strong>{{hits}}</strong> hits)</span>
</div>
<form class="form-inline bordered histogram-options" ng-show="options">
<span>
<div class="checkbox">
<label class="small">
@@ -63,25 +67,27 @@
Lines
</label>
</div>
<div class="checkbox">
<label class="small">
- <input type="checkbox" ng-model="panel.points" ng-checked="panel.points" ng-change="render()">
- Points
- </label>
- </div>
- <div class="checkbox">
- <label class="small">
<input type="checkbox" ng-model="panel.stack" ng-checked="panel.stack" ng-change="render()">
Stack
</label>
</div>
</span>
<span ng-show="panel.stack">
<div class="checkbox">
<label style="white-space:nowrap" class="small">
<input type="checkbox" ng-model="panel.percentage" ng-checked="panel.percentage" ng-change="render()">
Percent
+ </label>
+ </div>
+ </span>
+ <span>
+ <div class="checkbox">
+ <label class="small">
+ <input type="checkbox" ng-model="panel.legend" ng-checked="panel.legend" ng-change="render()">
+ Legend
</label>
</div>
</span>
<span>
<label class="small">Interval</label> <select ng-change="set_interval(panel.interval);get_data();" class="input-small" ng-model="panel.interval" ng-options="interval_label(time) for time in _.union([panel.interval],panel.intervals)"></select>
\ No newline at end of file