Skip to content

Colorlegend

Daniel Santillan edited this page Oct 7, 2024 · 1 revision

Possibility to define how to render a colorlegend on the dashboard. Based on color-legend-element.

Element Type Description
title string Text added to legend as title
range [string] List of hex colors strings which will be interpolated or used for categories
domain [number | string] List of domain entries, usually minimum and maximum value of domain, list of strings when using categorical scaletype
tickFormat string Expression of how numbers should be formatted, e.g. ".0f"
tickValues [number] List of numbers for which tick values should be shown
scaletype string Can be continuous, discrete, threshold, categorical
marktype string Can be rect, circle, line: When using categorical type allows to define symbol to be used
Clone this wiki locally