The HTML ImageMapper NG exports the legend to the browser exactly the way you’ve designed it in ArcMap.
Access the legend with the button in the navigation bar below the map.