MCPcopy Create free account
hub / github.com/Rello/analytics / renderAdd

Function renderAdd

js/filter.js:2554–2562  ·  view source on GitHub ↗
(select, placeholder)

Source from the content-addressed store, hash-verified

2552 }
2553
2554 function renderAdd(select, placeholder) {
2555 select.replaceChildren(new Option(placeholder, ''));
2556 columns.filter(column => column.id !== mapping.category
2557 && !mapping.measures.includes(column.id)
2558 && (dataModel !== 'kpiModel' || !mapping.series.includes(column.id)))
2559 .forEach(column => select.add(new Option(sampleLabels.get(column.id), chartOptions.encodeColumnId(column.id))));
2560 select.disabled = select.options.length === 1;
2561 select.hidden = select.disabled;
2562 }
2563
2564 function renderSummary() {
2565 const values = listFormatter.format(mapping.measures.map(labelFor));

Callers 1

updateFunction · 0.85

Calls 3

filterMethod · 0.80
addMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected