| 123971 | } |
| 123972 | } |
| 123973 | function titleCaption(item) { |
| 123974 | return (0, _vegaUtil.array)(item.text).join(" "); |
| 123975 | } |
| 123976 | function 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)}`; |