MCPcopy Create free account
hub / github.com/microsoft/SandDance / titleCaption

Function titleCaption

docs/app/js/sanddance-app.js:123973–123975  ·  view source on GitHub ↗
(item)

Source from the content-addressed store, hash-verified

123971 }
123972}
123973function titleCaption(item) {
123974 return (0, _vegaUtil.array)(item.text).join(" ");
123975}
123976function axisCaption(item) {
123977 const datum = item.datum, orient = item.orient, title = datum.title ? extractTitle(item) : null, ctx = item.context, scale1 = ctx.scales[datum.scale].value, locale = ctx.dataflow.locale(), type22 = scale1.type, xy = orient === "left" || orient === "right" ? "Y" : "X";
123978 return `${xy}-axis` + (title ? ` titled '${title}'` : "") + ` for a ${(0, _vegaScale.isDiscrete)(type22) ? "discrete" : type22} scale` + ` with ${(0, _vegaScale.domainCaption)(locale, scale1, item)}`;

Callers 1

sanddance-app.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected