Custom Legends

There are 2 ways to customize tooltips, styling and templating.

Styling a legend

The code above would result in the following legend:

custom

Templating a legend

custom tooltip