add template support for minor/major labels (#2493)
add template support for minor/major labels (#2493)

* Fix redraw order

* Fix error when option is not defined

* Allow template labels

Tooa/vis,marcortw/vis,yotamberk/vis,yotamberk/vis,marcortw/vis,Tooa/vis