File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -1883,7 +1883,7 @@ methods.addLegend = function (options) {
1883
1883
} ) ;
1884
1884
1885
1885
if ( options . na_color && _jquery2 . default . inArray ( options . na_label , labels ) < 0 ) {
1886
- ( 0 , _jquery2 . default ) ( div ) . append ( "<div><i style=\"background:" + options . na_color + ";opacity:" + options . opacity + ";\"></i> " + options . na_label + "</div>" ) ;
1886
+ ( 0 , _jquery2 . default ) ( div ) . append ( "<div><i style=\"" + " background:" + options . na_color + ";opacity:" + options . opacity + ";margin-right:" + labelPadding + "px" + "; \"></i>" + options . na_label + "</div>" ) ;
1887
1887
}
1888
1888
} ) ( ) ;
1889
1889
} else {
Original file line number Diff line number Diff line change @@ -789,9 +789,11 @@ methods.addLegend = function(options) {
789
789
} ) ;
790
790
791
791
if ( options . na_color && ( $ . inArray ( options . na_label , labels ) < 0 ) ) {
792
- $ ( div ) . append ( "<div><i style=\"background:" + options . na_color +
792
+ $ ( div ) . append ( "<div><i style=\"" +
793
+ "background:" + options . na_color +
793
794
";opacity:" + options . opacity +
794
- ";\"></i> " + options . na_label + "</div>" ) ;
795
+ ";margin-right:" + labelPadding + "px" +
796
+ ";\"></i>" + options . na_label + "</div>" ) ;
795
797
}
796
798
} else {
797
799
if ( options . na_color && ( $ . inArray ( options . na_label , labels ) < 0 ) ) {
You can’t perform that action at this time.
0 commit comments