mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
removing legend from Discover page, also removing functional tests for the legend on discover
This commit is contained in:
parent
da2725d6c7
commit
400a31cc1e
3 changed files with 2 additions and 20 deletions
|
@ -17,7 +17,7 @@ uiModules
|
|||
const init = function () {
|
||||
// This elem should already have a height/width
|
||||
const myChart = new vislib.Chart(elem[0], {
|
||||
|
||||
addLegend: false
|
||||
});
|
||||
|
||||
$scope.$watch('data', function (data) {
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
ng-style="loadingStyle"
|
||||
ng-class="{ loading: vis.type.requiresSearch && searchSource.activeFetchCount > 0 }"
|
||||
class="visualize-chart"></div>
|
||||
<visualize-legend></visualize-legend>
|
||||
<visualize-legend ng-show="vis.params.addLegend"></visualize-legend>
|
||||
</div>
|
||||
<!-- <pre>{{chartData | json}}</pre> -->
|
||||
<visualize-spy ng-if="vis.type.requiresSearch && showSpyPanel"></visualize-spy>
|
||||
|
|
|
@ -213,24 +213,6 @@ define(function (require) {
|
|||
.getProperty('value');
|
||||
},
|
||||
|
||||
clickLegendExpand: function clickLegendExpand() {
|
||||
return thisTime
|
||||
.findByCssSelector('.fa-chevron-circle-left')
|
||||
.click();
|
||||
},
|
||||
|
||||
clickLegendCollapse: function clickLegendCollapse() {
|
||||
return thisTime
|
||||
.findByCssSelector('div.legend-toggle > i.fa-chevron-circle-right')
|
||||
.click();
|
||||
},
|
||||
|
||||
getLegendWidth: function getLegendWidth() {
|
||||
return thisTime
|
||||
.findByCssSelector('.legend-col-wrapper')
|
||||
.getProperty('clientWidth');
|
||||
},
|
||||
|
||||
clickSidebarExpand: function clickSidebarExpand() {
|
||||
return thisTime
|
||||
.findByCssSelector('.chevron-cont')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue