MCPcopy
hub / github.com/JoelOtter/kajero / getLabels

Function getLabels

src/js/reducers/notebookReducer.js:183–192  ·  view source on GitHub ↗
(block)

Source from the content-addressed store, hash-verified

181}
182
183function getLabels(block) {
184 if (block.get('graphType') === 'pieChart') {
185 return '';
186 }
187 const labels = block.get('labels');
188 return ', ' +
189 [labels.get('x'), labels.get('y')].map(
190 (label) => "'" + label + "'"
191 ).join(', ');
192}
193
194function getNewId(content) {
195 var id = 0;

Callers 1

generateCodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected