add option to hide the label

This commit is contained in:
Thomas Neirynck 2016-11-20 23:08:45 -05:00
parent dba79b87ad
commit 7f32544fa0
2 changed files with 10 additions and 1 deletions

View file

@ -1,5 +1,5 @@
<div ng-controller="KbnTagCloudController" class="tagcloud-vis">
<div class="tagcloud-custom-label"></div>
<div ng-show="vis.params.hideLabel" class="tagcloud-custom-label"></div>
<div class="tagcloud-notifications">
<div class="tagcloud-truncated-message">The number of tags has been truncated to avoid long draw times.</div>
<div class="tagcloud-incomplete-message">The container is too small to display the entire cloud. Tags may appear cropped or be ommitted.</div>

View file

@ -10,11 +10,20 @@
<select class="form-control" ng-model="vis.params.orientation" ng-options="mode for mode in vis.type.params.orientations"></select>
</div>
<label>Minimum Font Size - {{ vis.params.minFontSize }}px</label>
<input type="range" ng-model="vis.params.minFontSize" class="form-control" min="12" max="120">
<label>Maximum Font Size - {{ vis.params.maxFontSize }}px</label>
<input type="range" ng-model="vis.params.maxFontSize" class="form-control" min="12" max="120">
<div>
<label>
<input type="checkbox" value="{{hideLabel}}" ng-model="vis.params.hideLabel" name="hideLabel"
ng-checked="vis.params.hideLabel">
Show label
</label>
</div>
</div>