Files
redash/client/app/visualizations/choropleth/choropleth.html
Levko Kravets 5918253022 Add option to align legend text
Remove Leaflet attribution
2018-03-06 21:24:39 +02:00

12 lines
577 B
HTML

<div class="map-visualization-container">
<div resize-event="handleResize()" ng-style="{ background: options.colors.background }"></div>
<div ng-if="options.legend.visible && (legendItems.length > 0)"
class="leaflet-bar map-custom-control" ng-class="options.legend.position"
>
<div ng-repeat="item in legendItems" class="d-flex align-items-center">
<color-box color="item.color" class="m-0" style="line-height: 1px"></color-box>
<div class="flex-fill text-{{ options.legend.alignText }}">{{ formatValue(item.limit) }}</div>
</div>
</div>
</div>