removing legend from Discover page, also removing functional tests for the legend on discover

This commit is contained in:
Shelby Sturgis 2016-02-10 14:18:42 -08:00
parent da2725d6c7
commit 400a31cc1e
3 changed files with 2 additions and 20 deletions

View file

@ -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) {

View file

@ -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>

View file

@ -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')