Add adjustable zIndex to legend and itemMarginRight + Left
Add an adjustable zIndex to legend:
(add on line 8087): zIndex = options.zIndex || 10;
(change on line 8403): .attr({ zIndex: zIndex })
Add itemMarginLeft and itemMarginRight:
(change on line 8377):
if (horizontal) {
itemX += itemMarginLeft + itemWidth + itemMarginRight;
} else {
itemY += itemMarginTop + itemHeight + itemMarginBottom;
}
7
votes
Paul
shared this idea
-
Paul commented
ofcourse you should also add this around 8080:
itemMarginLeft = options.itemMarginLeft || 0,
itemMarginRight = options.itemMarginRight || 0,