|
| 1 | +<div class="editor-row"> |
| 2 | + <div class="section gf-form-group"> |
| 3 | + <h5 class="section-heading">General</h5> |
| 4 | + <div class="gf-form"> |
| 5 | + <span class="gf-form-label width-8">Type</span> |
| 6 | + <div class="gf-form-select-wrapper max-width-10"> |
| 7 | + <select class="gf-form-input" ng-model="ctrl.panel.pieType" ng-options="t for t in ['pie', 'donut']" ng-change="ctrl.render()"></select> |
| 8 | + </div> |
| 9 | + </div> |
| 10 | + <div class="gf-form"> |
| 11 | + <span class="gf-form-label width-8">Unit</span> |
| 12 | + <div class="gf-form-dropdown-typeahead width-10" ng-model="ctrl.panel.format" dropdown-typeahead="ctrl.unitFormats" dropdown-typeahead-on-select="ctrl.setUnitFormat($subItem)"> |
| 13 | + </div> |
| 14 | + </div> |
| 15 | + <div class="gf-form"> |
| 16 | + <span class="gf-form-label width-8">Value</span> |
| 17 | + <div class="gf-form-select-wrapper max-width-10"> |
| 18 | + <select class="gf-form-input" ng-model="ctrl.panel.valueName" ng-options="v for v in ['min','max','avg', 'current', 'total']" |
| 19 | + ng-change="ctrl.render()"></select> |
| 20 | + </div> |
| 21 | + </div> |
| 22 | + <div class="gf-form"> |
| 23 | + <span class="gf-form-label width-8">Divider width</span> |
| 24 | + <input type="text" class="gf-form-input max-width-10" ng-model="ctrl.panel.strokeWidth" ng-change="ctrl.render()"> |
| 25 | + </div> |
| 26 | + </div> |
| 27 | + |
| 28 | + <div class="section gf-form-group"> |
| 29 | + <h5 class="section-heading">Legend</h5> |
| 30 | + <gf-form-switch class="gf-form" label="Show Legend" label-class="width-11" checked="ctrl.panel.legend.show" on-change="ctrl.refresh()"></gf-form-switch> |
| 31 | + <div class="gf-form"> |
| 32 | + <span class="gf-form-label width-11">Position</span> |
| 33 | + <div class="gf-form-select-wrapper width-9"> |
| 34 | + <select class="gf-form-input" ng-model="ctrl.panel.legendType" ng-options="t for t in ['On graph', 'Under graph', 'Right side']" |
| 35 | + ng-change="ctrl.onLegendTypeChanged()"></select> |
| 36 | + </div> |
| 37 | + </div> |
| 38 | + <div ng-if="ctrl.panel.legendType == 'Right side'" class="gf-form"> |
| 39 | + <label class="gf-form-label width-11">Width</label> |
| 40 | + <input type="number" class="gf-form-input max-width-5" placeholder="150" bs-tooltip="'Set a min-width for the legend side table/block'" |
| 41 | + data-placement="right" ng-model="ctrl.panel.legend.sideWidth" ng-change="ctrl.render()" ng-model-onblur> |
| 42 | + </div> |
| 43 | + <div ng-if="ctrl.panel.legendType == 'Under graph'" class="gf-form"> |
| 44 | + <span class="gf-form-label width-11">Legend Breakpoint</span> |
| 45 | + <div class="gf-form-select-wrapper width-9"> |
| 46 | + <select class="gf-form-input" ng-model="ctrl.panel.breakPoint" ng-options="t for t in ['25%', '50%', '75%', '100%']" |
| 47 | + ng-change="ctrl.render()"></select> |
| 48 | + </div> |
| 49 | + </div> |
| 50 | + <div class="gf-form" ng-if="ctrl.panel.legendType === 'On graph'"> |
| 51 | + <span class="gf-form-label width-11">Font size</span> |
| 52 | + <div class="gf-form-select-wrapper width-9"> |
| 53 | + <select class="gf-form-input" ng-model="ctrl.panel.fontSize" ng-options="s for s in ['50%', '60%', '70%', '80%', '100%', '110%', '120%', '150%', '175%']" |
| 54 | + ng-change="ctrl.render()"></select> |
| 55 | + </div> |
| 56 | + </div> |
| 57 | + <gf-form-switch class="gf-form" label="Legend Values" label-class="width-11" checked="ctrl.panel.legend.values" on-change="ctrl.refresh()"></gf-form-switch> |
| 58 | + <div class="gf-form" ng-show="ctrl.panel.legend.values"> |
| 59 | + <span class="gf-form-label width-11">Values Header</span> |
| 60 | + <input type="text" class="gf-form-input width-9" ng-model="ctrl.panel.legend.header" ng-change="ctrl.render()" ng-model-onblur |
| 61 | + placeholder="override"> |
| 62 | + </div> |
| 63 | + <div class="gf-form" ng-show="ctrl.panel.legend.values"> |
| 64 | + <span class="gf-form-label width-11">Values Decimals</span> |
| 65 | + <input type="number" class="gf-form-input width-9" ng-model="ctrl.panel.decimals" ng-change="ctrl.render()" ng-model-onblur |
| 66 | + placeholder="auto"> |
| 67 | + </div> |
| 68 | + <gf-form-switch class="gf-form" label="Show Percentage" label-class="width-11" checked="ctrl.panel.legend.percentage" on-change="ctrl.refresh()"></gf-form-switch> |
| 69 | + <div class="gf-form" ng-show="ctrl.panel.legend.percentage"> |
| 70 | + <span class="gf-form-label width-11">Percentage Decimals</span> |
| 71 | + <input type="number" class="gf-form-input width-9" ng-model="ctrl.panel.legend.percentageDecimals" ng-change="ctrl.render()" ng-model-onblur placeholder="0"> |
| 72 | + </div> |
| 73 | + </div> |
| 74 | + |
| 75 | + <div class="section gf-form-group"> |
| 76 | + <h5 class="section-heading">Combine</h5> |
| 77 | + <div class="gf-form"> |
| 78 | + <span class="gf-form-label width-8">Threshold:</span> |
| 79 | + <input type="text" class="gf-form-input max-width-10" ng-model="ctrl.panel.combine.threshold" ng-change="ctrl.render()"> |
| 80 | + <info-popover mode="right-absolute">Combines all slices that are smaller than the specified percentage (ranging from 0 to 1) i.e. a value of '0.03' will |
| 81 | + combine all slices 3% or less into one slice).</info-popover> |
| 82 | + </div> |
| 83 | + <div class="gf-form"> |
| 84 | + <span class="gf-form-label width-8">Label</span> |
| 85 | + <input type="text" class="gf-form-input max-width-10" ng-model="ctrl.panel.combine.label" ng-change="ctrl.render()"> |
| 86 | + <info-popover mode="right-absolute">Label text for the combined slice.</info-popover> |
| 87 | + </div> |
| 88 | + </div> |
| 89 | +</div> |
0 commit comments