mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
Closes #3676. Fixes issue with legend not properly highlighting chart with numeric labels
This commit is contained in:
parent
94085f9e02
commit
fba3f34c2d
2 changed files with 7 additions and 4 deletions
|
@ -138,14 +138,14 @@ define(function (require) {
|
|||
// legend
|
||||
legendDiv.selectAll('li')
|
||||
.filter(function (d) {
|
||||
return this.getAttribute('data-label') !== label;
|
||||
return this.getAttribute('data-label') !== label.toString();
|
||||
})
|
||||
.classed('blur_shape', true);
|
||||
|
||||
// all data-label attribute
|
||||
charts.selectAll('[data-label]')
|
||||
.filter(function (d) {
|
||||
return this.getAttribute('data-label') !== label;
|
||||
return this.getAttribute('data-label') !== label.toString();
|
||||
})
|
||||
.classed('blur_shape', true);
|
||||
|
||||
|
|
|
@ -5,17 +5,20 @@ define(function (require) {
|
|||
|
||||
var slices = require('vislib_fixtures/mock_data/histogram/_slices');
|
||||
var stackedSeries = require('vislib_fixtures/mock_data/date_histogram/_stacked_series');
|
||||
var histogramSlices = require('vislib_fixtures/mock_data/histogram/_slices');
|
||||
|
||||
var dataArray = [
|
||||
stackedSeries,
|
||||
slices,
|
||||
histogramSlices,
|
||||
stackedSeries,
|
||||
stackedSeries,
|
||||
stackedSeries
|
||||
];
|
||||
|
||||
var chartTypes = [
|
||||
'histogram',
|
||||
'pie',
|
||||
'pie',
|
||||
'area',
|
||||
'line'
|
||||
];
|
||||
|
@ -24,7 +27,7 @@ define(function (require) {
|
|||
histogram: '.chart rect',
|
||||
pie: '.chart path',
|
||||
area: '.chart path',
|
||||
line: '.chart circle',
|
||||
line: '.chart circle'
|
||||
};
|
||||
|
||||
angular.module('LegendFactory', ['kibana']);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue