mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
moving the zoom to data bounds option to the correct chart types
This commit is contained in:
parent
40dd93cacb
commit
1bff8de258
7 changed files with 25 additions and 6 deletions
|
@ -0,0 +1,8 @@
|
|||
<div>
|
||||
<div class="vis-option-item">
|
||||
<label>
|
||||
<input type="checkbox" ng-model="vis.params.defaultYExtents" ng-checked="vis.params.defaultYExtents">
|
||||
Scale Y-Axis to Data Bounds
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
|
@ -0,0 +1,13 @@
|
|||
define(function (require) {
|
||||
var _ = require('lodash');
|
||||
var $ = require('jquery');
|
||||
var module = require('modules').get('kibana');
|
||||
|
||||
module.directive('pointSeriesOptions', function ($parse, $compile) {
|
||||
return {
|
||||
restrict: 'E',
|
||||
template: require('text!plugins/vis_types/controls/point_series_options.html'),
|
||||
replace: true
|
||||
};
|
||||
});
|
||||
});
|
|
@ -11,10 +11,4 @@
|
|||
Show Legend
|
||||
</label>
|
||||
</div>
|
||||
<div class="vis-option-item">
|
||||
<label>
|
||||
<input type="checkbox" ng-model="vis.params.defaultYExtents" ng-checked="vis.params.defaultYExtents">
|
||||
Scale Y-Axis to Data Bounds
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -9,6 +9,7 @@ define(function (require) {
|
|||
|
||||
require('plugins/vis_types/controls/vislib_basic_options');
|
||||
require('plugins/vis_types/controls/line_interpolation_option');
|
||||
require('plugins/vis_types/controls/point_series_options');
|
||||
|
||||
_(VislibVisType).inherits(VisType);
|
||||
function VislibVisType(opts) {
|
||||
|
|
|
@ -8,3 +8,4 @@
|
|||
</div>
|
||||
<line-interpolation-option></line-interpolation-option>
|
||||
<vislib-basic-options></vislib-basic-options>
|
||||
<point-series-options></point-series-options>
|
||||
|
|
|
@ -6,3 +6,4 @@
|
|||
<select class="form-control" ng-model="vis.params.mode" ng-options="mode for mode in vis.type.params.modes"></select>
|
||||
</div>
|
||||
<vislib-basic-options></vislib-basic-options>
|
||||
<point-series-options></point-series-options>
|
||||
|
|
|
@ -20,3 +20,4 @@
|
|||
</div>
|
||||
</div>
|
||||
<vislib-basic-options></vislib-basic-options>
|
||||
<point-series-options></point-series-options>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue