(colorBinType: ColorBin, colorColumn: Column, legend: VegaDeckGl.types.Legend, language: Language)
| 87 | } |
| 88 | |
| 89 | export function finalizeLegend(colorBinType: ColorBin, colorColumn: Column, legend: VegaDeckGl.types.Legend, language: Language) { |
| 90 | const rowTexts: string[] = []; |
| 91 | for (const i in legend.rows) { |
| 92 | const row = legend.rows[i] as LegendRowWithSearch; |
| 93 | row.search = legendRange(colorBinType, colorColumn, legend, +i); |
| 94 | if (row.value === Other) { |
| 95 | row.label = language.legendOther; |
| 96 | } else { |
| 97 | rowTexts.push(row.value); |
| 98 | } |
| 99 | } |
| 100 | } |
no test coverage detected